Other Parts Discussed in Thread: AWR1243
Hi all,
****************************************************************************************************************************************************************************************
Software settings: DFP mmwave_dfp_00_09_01_06, SDK mmwave_sdk_01_01_00_02, Uniflash uniflash_4.2.1, Radar Studio v1.9.1.0 and HSDC Pro v4.80.
Hardware settings: AWR1243BOOST + DevPack + TSW1400 + PC.
****************************************************************************************************************************************************************************************
Currently, I tried to program in C under Visual Studio to capture RAW data through AWR1243 and TSW1400 instead of using Radar Ssudio.
For AWR1243 control, I used the VS project under folder C:\ti\mmwave_dfp_00_09_01_06\ti\example\mmwavelink_example.
For HSDC Pro(which connect the TSW1400) control, I used the VS project under folder C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples\Automation DLL C Example\ADC.
****************************************************************************************************************************************************************************************
For now, I can capture RAW data in this way below:
1. Run mmwavelin_example to config AWR1243. But stop at function MMWL_sensorStart
retVal = MMWL_sensorStart(deviceMap); if (retVal != RL_RET_CODE_OK) { printf("Sensor Start failed for deviceMap %u with error code %d \n\n", deviceMap, retVal); return -1; } else { printf("Sensor Start successful for deviceMap %u \n\n", deviceMap); }
2. Then run HSDCPro example and set it as software trigger mode. Then HSDCPro waits for the trigger in 10 secs.
else if (TriggerModeEnable==1 && SoftwareTriggerEnable==1) //Software Trigger { printf("\n\nGenerate Software Trigger. Press any key to continue..."); getch(); printf("\nGenerating Software Trigger..."); Error_Status = Generate_Software_Trigger(WaitToCheckTrigger,TimeoutInMs); printf("\nError Status = %d",Error_Status); }
3. Resume mmwavelin_example to start the sensor. And then it generates the trigger to HSDCPro
4. Then HSDCPro exmaple can be triggered and capture the data and save as .bin file.
****************************************************************************************************************************************************************************************
However, The way above is not automatically, it still needs button operations....by setting break points, clicking resume button...
****************************************************************************************************************************************************************************************
I just want to implement the loop in C, which is "capture one frame data -> save as .bin->call Matlab runtime engine to process", automatically.
I merged these two projects together.
The only way it works in I found is the way I described above.
That is to set HSDCPro as "Software Trigger" mode and start to wait for the trigger.
And then start the AWR1243. And then HSDCPro can be triggered then capture RAW data and save as .bin.
It still needs button operations. It's not automatically.
Because when HSDCPro is waiting for trigger, the thread got stuck for 10 secs, just waiting for the trigger coming.
I must start AWR1243 in another program(maybe another thread) to generate the trigger in 10 secs. Otherwise, HSDCPro will output no trigger in 10 secs.
Multi-thread programming is too difficult to me....
I tried the "Normal Capture" mode in HSDCPro example, but it didn't capture any data.
Do you have some suggestions?
Can TI engineers share the source codes of Radar Studio? Or parts of the codes, such as button click function of "Trigger Frame" under "SensorConfig" tab?
Thanks,
Feng