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-RF-EVM: Running "cascade_MIMO_signalProcessing.m"

Part Number: MMWCAS-RF-EVM

Greetings,

I want to analyze raw data with MATLAB.

I am trying to run “cascade_MIMO_signalProcessing.m” on a windows PC, referring to https://e2e.ti.com/support/sensors/f/1023/p/877407/3247024?tisearch=e2e-sitesearch&keymatch=cascade_MIMO_signalProcessing.m#3247024 .

But an error occurs as follows;

> Error using feof

> Invalid file identifier. Use fopen to generate a valid file identifier.

> Error in cascade_MIMO_signalProcessing (line 60)

> while ~feof(fidList)

How can I run this script?

By the way, I put MATLAB scripts and adc data in the folders as follows;

MATLB scripts; C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\MatlabExamples\4chip_cascade_MIMO_example\main\cascade

adc data;

C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\PostProc\adc_data\

Are there any folders recommended?

Thank you.

 

  • Hi,

    Which version of matlab are you using?

    thank you

    Cesar

  • Hi Cesar,

    I'm using MATLAB R2019a.

    thank you

    Hisa

  • Hi Cesar,

    I would be grateful if you could let us have your answer concerning this matter.

    thank you

    Hisa

  • Hi Hisa,

    Thankyou for your patience. 

    Can you please check if the path of the "testList.txt" file is correct in your script? Line 54 takes the path of the file in the script.

    The error you're getting is mainly because MATLAB is not able to open this file.

    Regards,

    Ishita

  • Hi Ishita,

    Thank you for your reply.

     

    Setting pro path as ‘C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\MatlabExamples\4chip_cascade_MIMO_example\main\cascade\input\’, the error disappeared.

    But another error occurs as follows.

    How can I run the script?

     

    For your information, my testList.txt and data directory are as follows;

     

    Regards,

    hisa

  • Hi Hisa,

    Can you check whether the below directory has "parameter_file_gen_json.m" :

    C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\MatlabExamples\4chip_cascade_MIMO_example\main\cascade\paramGen

    Regards,

    Ishita

  • Hi Ishita,

    Thank you for your reply.

    I found the  "parameter_file_gen_json.m" in the directory.

    Regards,

    hisa

  • Hi Hisa,

    I recommend you to follow the exact step by step procedure given in section 8.3.2 of the mmwave studio cascade userguide

    Looks like you have not run "add_paths.m" previously to add all the folders to the MATLAB path.

    Regards,

    Ishita

  • Hi Ishita,

    Thank you for your reply.

     

    Now I read section 8.3.2 of the mmwave studio cascade userguide and try to run scripts. Then another errors occur. Detailed steps are as follows;

     

    1)     Add the Environment variable “CASCADE_SIGNAL_PROCESSING_CHAIN_MIMO” as per the below capture.

    2)     Run “add_paths.m” and some warning occur as per the below capture.

    3)     Capture calibration data using Cascade_Configuration_MIMO.lua and Cascade_Capture.lua. Then move them to “C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\PostProc\Cascade_Capture_cal\”.

    4)      Update the “dataFolder_calib_data” in “cascade_MIMO_antennaCalib.m” to “C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\PostProc\Cascade_Capture_cal\”.

    5)     Run “cascade_MIMO_antennaCalib.m” and some errors occur as per the below capture.

    Regards,

    Hisa

  • Hi Hisa,

    Can you check whether there is a folder name "utils" in the following directory: C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\MatlabExamples\4chip_cascade_MIMO_example

    And if yes, it has all the below folders as well 

    Regards,

    Ishita

  • Hi Ishita,

    Thank you for reply.

    I confirmed that there is "C:\ti\mmwave_studio_02_01_00_00\mmWaveStudio\MatlabExamples\4chip_cascade_MIMO_example\utils\" and the folder has 4 folders as follows;

    Regards, 

    hisa

  • Hi Hisa,

    The error screenshot that you had sent previously shows that it's looking for the "utils" folder in the wrong directory.

    The correct directory is already identified by you in your previous reply. It might be possible that your environment variable is not created successfully. Can you update the Home directory in the add_paths.m script and try again.

    Regards,

    Ishita

  • Hi Ishita,

    Thank you for your reply.

    Now I can run cascade_MIMO_antennaCalib.m successfully, referring to your advise.

    I'm trying to run cascade_MIMO_signalProcessing.m, and  an error occures;


    The values of parameters are as follows;

    It seems testList contains two paths. Is this correct state?

    Regards,

    hisa

  • Hi Hisa,

    Yes you're right, follow the user guide and make sure the path of the testList.txt file is correct.

    Regards,

    Ishita

  • Hi Ishita,

    Thank you for your reply.

    Now I have read testList, and another error occurs;

    I believe I have set  '/main' and its sub-folders to the MATLAB path, using "add_paths.m".

    Regards,

    hisa

  • Hi Hisa,

    I believe all the errors you're getting is because of wrong directory. You have to follow the user guide very closely and ensure at this point that the current directory is ./main/cascade. 

    Regards,

    Ishita

  • Hi Ishita,

    Thank you for your reply.

    Now, I can run "cascade_MIMO_signalProcessing.m"!

    Regards,

    Hisa