This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MMWCAS-DSP-EVM: Matlab scripts error ”Unable to perform assignment because the left and right sides have a different number of elements.“

Part Number: MMWCAS-DSP-EVM
Other Parts Discussed in Thread: MMWCAS-RF-EVM, AWR2243

Hi

I am experimenting with MMWCAS-DSP-EVM and MMWCAS-RF-EVM (Rev-E),mmwave studio version 02_01_01_00, mmwave dfp version 01_02_05_01
I followed the steps in the user guide to run the test source files "Cascade_Configuration_TestSource.lua" and the default settings in "Cascade_Capture.lua".

After I transfer the obtained data back to the computer, I use the official matlab script for data processing that does not depend on mmwave studio (cascade_MIMO_signalProcessing.m)
But the following error occurs during processing,(Unable to perform assignment because the left and right sides have a different number of elements.)

how should I deal with it?

  • Hi Xiao,

    Kindly follow the instructions in Section 8.3.2.3 of the same document that explains how to run the script for a given data capture and let me know how it goes. Anything beyond that, you will have to debug on MATLAB as to why this is happening (maybe changes to the default Lua scripts or post proc script on your end?)

    Regards,

    Kaushik

  • Hello Kaushik
    I carefully implemented the process in chapter 8.3.2.3 of the manual again and found that this problem still exists.

    After debugging and the error reported at the beginning, it was found that the problem appeared in the parameter_file_gen_json.m file. In this file, the 100th and 101st lines of code,

    the 100th line of code describe the transfer of the tx number enabled in the frame to the channelID, (here [ 1,2,4,5,7,8,10,11]), then assign the channelID value to a corresponding element of TxChannelEnabled. But according to the display of workspace, TxChannelEnabled is a 1x12 array, so there is a problem of unequal elements on both sides.

    I manually changed the call to TxChannelEnabled on line 226 below, and directly gave the following fidparam amplitude (here is 8), Finally, the whole code can run, and the matlab gui can be seen. Is it right for me to do this? How should I change it if the amplitude is not manual?

    The following are the screenshots of the code segment and workspace I just mentioned, thank you for your help

    Regards,

    Xiao

  • Sorry to correct it, the manual modification of TxChannelEnabled is on line 126 instead of line 226, this is a typo

  • Hi Xiao,

    Can you confirm if you are using the latest revision of the RF EVM (AWR2243) or an older one? If so, can you please move to the newest version of the mmwave Studio and the DFP? This will have the latest post processing script for such a capture. Ideally, this issue is not supposed to show up, but if your changes were able to fix the issue, you can go on with that.

    Regards,

    Kaushik

  • After checking, my software version should be the latest, so let's do it for the time being. Thanks