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.
I'm using mmWave Studio with the AWR1642BOOST + DCA1000EVM.
I have customized the Automation.lua script to try to make use of the JSON import and configure API. I figure that if I want to use the matlab rawDataReader script, I'd better make sure that I'm configuring the board with the parameters in the json config files. My complete lua script is below.
The problem I'm running into is that after the JsonExecute(0) command, a popup window appears titled "Next Step" with the text "Choose the Raw ADC Output bin file in Sensor Configuration Tab. Click on DCA1000 ARM Configuration and Trigger the frame." I then have to clock OK to clear it.
Once I clear the window, the data collection proceeds normally.
This forced manual interaction defeats the purpose of automation!
Is there a way to bypass this GUI?
---------------------------------- STARTUP -------------------------------------
------------------------ DO NOT MODIFY THIS SECTION ----------------------------
-- mmwavestudio installation path
RSTD_PATH = RSTD.GetRstdPath()
-- Declare the loading function
dofile(RSTD_PATH .. "\\Scripts\\Startup.lua")
------------------------------ CONFIGURATIONS ----------------------------------
-- JSON files
json_setup_path = "C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\JSONSampleFiles\\16xx\\16xx.setup.json"
json_mmwave_path = "C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\JSONSampleFiles\\16xx\\16xx.mmwave.json"
ar1.CaptureImport(json_setup_path)
ar1.ConfigureSetup()
RSTD.Sleep(1000)
------------------------- Other Device Configuration ---------------------------
-- ADD Device Configuration here
ar1.JsonImport(json_mmwave_path)
ar1.JsonLoad(0)
ar1.JsonExecute(0)
RSTD.Sleep(1000)
ar1.EnableTestSource(1)
--Start Record ADC data
print("******* starting to record ADC data *******")
adc_data_path = "C:\\ti\\mmwave_studio_02_01_00_00\\mmWaveStudio\\PostProc\\test_data.bin"
ar1.CaptureCardConfig_StartRecord(adc_data_path, 1)
RSTD.Sleep(1000)
--Trigger frame
ar1.StartFrame()
RSTD.Sleep(5000)
------------------------- Close the Connection ---------------------------------
-- SPI disconnect
----ar1.PowerOff()
-- RS232 disconnect
----ar1.Disconnect()
------------------------- Exit MMwave Studio GUI -----------------------------------
----os.exit()
-- end
Hi,
With DCA1000 our team only supports the capture process as described in the documentation.
Instead of manually configuring it is possible to run a LUA script.
However we don't support automation from matlab.
Thank you
Cesar
Sorry for the confusion. My question is not about Matlab at all.
I am trying to automate using the LUA script, and I started from Automation.lua in the Scripts folder.
I then replaced all the configuration calls with loads from the JSON config files, as you can see in my LUA script above.
This basically works, however it causes the GUI in mmWave Studio to pop up and I have to manually click on it to make it go away.
My approach comes from the mmwave studio users guide section 20.6.2 - mmWave Configuration API's.
Thank you,
chris