Running files

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #9269
    jyoteesh
    Participant

    Error while running following file in the example folder
    Comparison_CodingSchemes_AWGN_BPSK.m
    error repoted
    Error using Coding.ChannelCodingComponents.TBConvCoding/TBConvCodingDecode (line 127)
    Undefined variable “Coding” or class “Coding.ChannelCodingComponents.TBConvDecodeMEX”.

    Error in Coding.ChannelCodingComponents.TBConvCoding/Decode (line 107)
    DecodedBlockBits = obj.TBConvCodingDecode(RateDematchedLLRs, Block.InitialState);

    Error in Coding.ChannelCoding/decode (line 251)
    DecodedBlockBits = obj.TBConvCoding.Decode(ChannelLLRsBlock,
    obj.Blocks(CBi));

    Error in Comparison_CodingSchemes_AWGN_BPSK (line 92)
    parfor Simulation = 1:NrRepetitions

    similarly while running main.m

    Undefined variable “Coding” or class “Coding.ChannelCodingComponents.turboDecodeMEX”.

    Error in Coding.ChannelCodingComponents.TurboCoding/SISODecode (line 214)
    outputLLRs = Coding.ChannelCodingComponents.turboDecodeMEX(varargin{2},
    varargin{3}, varargin{4}, varargin{5}, obj.TurboCodingCurrStates,
    obj.TurboCodingNextStates, obj.TurboCodingTransitionOut, 1);

    Error in Coding.ChannelCodingComponents.TurboCoding/Decode (line 186)
    L12 = obj.SISODecode(d0, d1, [L21_inter 0 0 0], 1);

    Error in Coding.ChannelCoding/decode (line 253)
    DecodedBlockBits = obj.TurboCoding.Decode(ChannelLLRsBlock,
    obj.Blocks(CBi));

    Error in Elements.Link/decode (line 188)
    obj.DecodedBits(:,iStream) = obj.ChannelCoder.decode(-obj.LLRs(:,iStream));

    Error in Elements.User/processReceiveSignal (line 117)
    Links{obj.TransmitBS(1), obj.ID}.decode;

    Error in main (line 104)
    UE{iUE}.processReceiveSignal(UETotalSignal, LinksParFor, simParams);

    #9274
    Bashar Tahir
    Participant

    Dear jyoteesh,

    Thanks for reporting the issues you faced. Assuming you are running the example as it is, it seems that there is a problem with locating/processing the MEX decoding functions.
    What operating system do you have and what is your MATLAB version?

    Cheers

    #9278
    Bashar Tahir
    Participant

    Also, can you please check the size of the turboDecodeMEX.mexw64 file, is it larger than 100kB or less?

    Best Regards

    #9628
    Faris Mismar
    Participant

    Hello,

    I am having the same exact errors running main.m. I am using Matlab 2016b. The size of turboDecodeMEX.mexw64 is 132 KB.

    Please help.

    Thanks,
    Faris

    #9775
    Bashar Tahir
    Participant

    Dear All,

    The best solution to this issue is to compile the MEX files at your own computer. This will guarantee that the produced MEX files are compatible with your MATLAB and Windows versions. Please follow this step-by-step guide: Guide for Installing C/C++ MEX Compiler for MATLAB.

    Let me know if you encounter further problems.

    Best Regards,
    Bashar

    • This reply was modified 2 years, 11 months ago by Bashar Tahir.
    #11135
    Ayotunde
    Participant

    Hi,
    I have similar issues. But I use a mac operating system and matlab version is 2018a.

    #11157

    Hi,

    the MEX files included with the simulator download are for windows only. Unfortunately we do not offer a step-by-step manual for compiling mex files on Mac but the principle should be the same.

    Make sure that you installed a C compiler that is working with Matlab on your system and compile the MEX files from the source code which is included with the simulator download. Once you have a working C compiler running on your Matlab, this should be able by running +Coding/compileMEX.m

    best
    Stefan

    #11286
    Fam
    Participant

    Dear Stefan,

    I have installed the MEX Compiler by following the step-by-step guide provided above.
    Provided the screenshot:
    Coding.compileMEX.PNG

    But when I run the main.m, the error still exists.

    Error using Coding.ChannelCodingComponents.PolarCoding/PolarDecode (line 134)
    The decoding algorithm is not supported.
    
    Error in Coding.ChannelCodingComponents.PolarCoding/Decode (line 91)
                DecodedBlockBits = obj.PolarDecode([RateDematchedLLRs  (INF +
                100*randn(1,Block.Power2Size-Block.CodedBlockSize))], Block);
    
    Error in Coding.ChannelCoding/decode (line 257)
                        DecodedBlockBits = obj.PolarCoding.Decode(ChannelLLRsBlock,
                        obj.Blocks(CBi));
    
    Error in Elements.Link/decode (line 188)
                    obj.DecodedBits(:,iStream) =
                    obj.ChannelCoder.decode(-obj.LLRs(:,iStream));
    
    Error in Elements.User/processReceiveSignal (line 114)
                Links{obj.TransmitBS(1), obj.ID}.decode;
    
    Error in main (line 104)
                        UE{iUE}.processReceiveSignal(UETotalSignal, LinksParFor,
                        simParams);

    Please help.

    Best Regards,
    Fam

    • This reply was modified 2 years, 5 months ago by Fam. Reason: image not uploaded
    #11459

    Dear Fam,

    unfortunately the screenshot seems to be not working.

    Did you make sure to re-compile the MEX files with your C compiler?

    best
    Stefan Pratschner

    #11503
    Fam
    Participant

    Dear Stefan,

    I have solved the problem. This was due to I input wrong scStr.coding.decoding.
    Thanks for the help.

    Best Regards,
    Fam

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.