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.

AWR6843AOPEVM: MMWAVE-STUDIO: lua script error with AWR6843AOPEVM

Part Number: AWR6843AOPEVM
Other Parts Discussed in Thread: AWR6843AOP

Hi,

 

When trying to run DataCaptureDemo_xWR.lua in mmWave Studio 02.01.01.00 with AWR6843AOPEVM, I got following error.

 

[10:31:40]  [RadarAPI]: ar1.ReadRegister(0xffffe214, 0, 31) [10:31:41]  [RadarAPI]: ar1.ReadRegister(0xffffe210, 0, 31) [10:31:41] [10:31:41]  &&&&&&&&&&&&&&&&&&&& [10:31:41]  ***Script FAILED!*** [10:31:41]  &&&&&&&&&&&&&&&&&&&& [10:31:41]  Exception message is:

[10:31:41]  ...1_01_00\mmWaveStudio\Scripts\DataCaptureDemo_xWR.lua:47: attempt to concatenate global 'partId' (a nil value)

 

 

I assume the error is due to not having the partId for AWR6843AOP in the script.

Could you please let me know how to modify the script?

 

Best regards,

-Shibata

 

 

 

  • Hi Shibata,

               the lua scripts are run in lua shell(which is integrated in the mmWave studio). The lua scripts can be updated or edited in notepad or similar too.

    Regards

  • Hi Adhed,

     

    Yes, I know we can modify the lua script by any text editor.

    But what I want to clarify is how to resolve the error I encountered with AWR6843AOP.

    Is it okay to run the script with following configuration or any other changes are required?

     

    >           partId = 6843

    >           ar1.frequencyBandSelection("60G")

     

    Best regards,

    -Shibata

     

  • Hi Shibata,

                      Typically the device should be automatically detected in studio. Or as done in the script you can read the device ID and chip version registers to identify the device. If the device on your hardware is of old version then you would have to manually pass the partid. However that also has been done in the script.

    In general the validity of the API's can be validated by looking at outpu console log also.

    Regards