- This topic has 19 replies, 4 voices, and was last updated 1 year, 2 months ago by Farhan.
-
AuthorPosts
-
20. April 2021 at 20:46 #14935FarhanParticipant
Hi Stefan,
I have now even got the Parallel Computing Toolbox and still getting below error, I am using MATAB R2020b and using Ubuntu 18.04.5 LTS:
> In main (line 48) Error using Coding.ChannelCodingComponents.CRC.Attach (line 48) Unable to resolve the name Coding.ChannelCodingComponents.CRCMEX. Error in Coding.ChannelCoding/encode (line 104) InputBits = Coding.ChannelCodingComponents.CRC.Attach(InputBits, obj.CRCPoly); Error in Elements.User/generateTransmitSignal (line 42) codedBits{iCodeword} = primaryLink.ChannelCoder{iCodeword}.encode(primaryLink.InputBits{iCodeword}); Error in main (line 48) parfor iSweep = 1:length(simParams.simulation.sweepValue) % this may be 'for' or 'parfor' >>
- This reply was modified 1 year, 2 months ago by Farhan.
21. April 2021 at 9:23 #14937Bashar TahirParticipantHi,
As mentioned by Stefan, channel coding is based on C++ files which are compliled to MEX files. Those files are included in the simulator package for Windows. For other OSs, you have to compile them yourself.
We have a script that does that automatically for you. While being in the main directory of the the simulator, enter
Coding.compileMEX
in the command line. This will compile the files. For this to work, a compatible C++ compiler should be available on the system. You can find information about supported compilers here:
https://www.mathworks.com/support/requirements/supported-compilers.htmlBest,
Bashar21. April 2021 at 20:22 #14939FarhanParticipantHi Bashar,
Unfortunately the steps that were provided to you don’t seem to be
working for me.Could you get the exact path location of where I’m supposed to run
“Coding.compileMEX” as I can’t run this command in any of the simulator
directories? Or else request more detailed steps on how to compile the
toolboxes.`$:/usr/local/MATLAB/R2020b/toolbox/parallel$ Coding.compileMEX
Coding.compileMEX: command not found
$:/usr/local/MATLAB/R2020b/toolbox/parallel$ sudo find . -name “MEX*”
$:/usr/local/MATLAB/R2020b/toolbox/parallel$ sudo find . -name
“compileMEX*”
$:/usr/local/MATLAB/R2020b/toolbox/parallel$ cd ..
$:/usr/local/MATLAB/R2020b/toolbox$ cd ..
$:/usr/local/MATLAB/R2020b$ sudo find . -name “MEX*”
./examples/comm/main/MEXGenerationForGSMUplinkWaveformExample.mlx
./examples/comm/main/MEXGenerationForGSMDownlinkWaveformExample.mlx./help/examples/comm/glnxa64/MEXGenerationForGSMDownlinkWaveformExample_02.png
./help/examples/comm/glnxa64/MEXGenerationForGSMDownlinkWaveformExample_01.png
./help/examples/comm/glnxa64/MEXGenerationForGSMUplinkWaveformExample_02.png
./help/examples/comm/glnxa64/MEXGenerationForGSMUplinkWaveformExample_01.png
./toolbox/simulink/core/general/+Simulink/+sfunction/+analyzer/+internal/MEXCompilationCheck.p
./toolbox/simulink/core/general/+Simulink/+sfunction/+analyzer/+internal/MEXSetupCheck.p
$:/usr/local/MATLAB/R2020b$ sudo find . -name “compileMEX*”
$:/usr/local/MATLAB/R2020b$ cd simulink/
$:/usr/local/MATLAB/R2020b/simulink$ Coding.compileMEX
Coding.compileMEX: command not found`We are currently running GCC version 7.3.0 so this should not be in an
issue with compatibility.$:/usr/local/MATLAB/R2020b/simulink/include$ gcc -v
Using built-in specs.
COLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/local/bin/gcc-7.3/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-7.3.0/configure –disable-multilib
–prefix=/usr/local/bin/gcc-7.3 –enable-shared –enable-threads=posix
–enable-__cxa_atexit –enable-clocale=gnu –enable-languages=all
Thread model: posix
gcc version 7.3.0 (GCC)I’ve run the command in the main directory of the simulator and I’m still
getting the same error message:*$:/usr/local/MATLAB/R2020b# Coding.compileMEXCoding.compileMEX: command
not found*GCC 7.3 is a compatible C++ compiler which is installed on the server. Are ther any further steps on how to run this? This command doesn’t appear to be located in the main directory of the simulator on our server.
21. April 2021 at 21:05 #14942FarhanParticipantHi Bashar,
I was able to run it successfully.
Thanks!
24. April 2021 at 11:57 #14959FarhanParticipantHi,
I want to ask, in Massive MIMO Simulation, the channel coding used is Turbo, whereas for 5G NR it is LDPC for data channel and Polar codes for control channel.
These parameter below are used to set data channel or control channel?
%% Channel Coding Parameters
scStr.coding.code
scStr.coding.decoding
scStr.coding.decodingIterations
scStr.coding.LLRsCalculationMethod
scStr.coding.softBufferRatio -
AuthorPosts
- The forum ‘Vienna 5G Link Level Simulator’ is closed to new topics and replies.