Hello,
I’m using DataCaptureDemo_sWR.lua file on mmWaveStduio.
As you can see in below code snippet, RSTD.Sleep() funciton is called after calling ar1 APIs to wait for the completion of each processing.
================================
--Start Record ADC data
ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
RSTD.Sleep(1000) -----------------------(1)
--Trigger frame
ar1.StartFrame()
RSTD.Sleep(5000) -----------------------(2)
--Post process the Capture RAW ADC data
ar1.StartMatlabPostProc(adc_data_path)
WriteToLog("Please wait for a few seconds for matlab post processing .....!!!! \n", "green")
RSTD.Sleep(10000) -----------------------(3)
================================
I would like to reduce these sleep time as much as possible to reduce total processing time.
So are there any good way to know when the processing for following APIs will actually finish?
ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
ar1.StartFrame()
ar1.StartMatlabPostProc(adc_data_path)
Thanks & Regards,
-Shibata