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.

DCA1000EVM: How to wait for async event in mmWave Studio

Part Number: DCA1000EVM
Other Parts Discussed in Thread: IWR1443BOOST,

Hello,

I am using IWR1443BOOST with DCA1000EVM and mmWave Studio in order to record and analyze radar data. Based on the script DataCaptureDemo_xWR.lua, I started to increase the number of frames. The recording takes more time and the default code, which just waits for a given time, does not work anymore:

--Start Record ADC data
ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
RSTD.Sleep(1000)

--Trigger frame
ar1.StartFrame()
RSTD.Sleep(2000)

I could just increase the number in the RSTD.Sleep command.

However from the Output window I can that there is some event at the end of the recording.

[13:42:50]  [RadarAPI]: ar1.StartFrame()
[13:42:50]  [RadarAPI]: Status: Passed
[13:42:50]  Frame start async event received!
[13:42:58]  [RadarAPI]: Frame Ended
[13:42:58]  Frame End async event received!
[13:43:00]  [RadarAPI]: STS_RECORD_COMPLETED Async event recieved(8)
[13:43:00]  [RadarAPI]: ar1.CaptureCardConfig_StopRecord()
[13:43:00]  [RadarAPI]: Status: Passed
[13:43:00]  [RadarAPI]: RECORD_STOP_CMD_CODE Async event recieved(6)

How can I wait for the 'Frame End async event' instead of just waiting a fixed amount of time?

Best regards,

Matthias

  • Matthias,

    mmwave studio keeps sending data when number of frames is set to 0. After "Trigger Frame", the button will change and need to be pressed again to stop the recording. Please with mmwave studio that way and follow what the output log. You then can implement into your code.

    Thanks and Regards,
    Michelle
  • Hello Michelle,

    thank you for your reply. Your proposal sounds more like a workaround to me because there seems to be no possibility to wait for an event that already exists. However I will try your proposed method.

    Best regards,
    Matthias