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.

AWR1243BOOST: How to use Matlab generate frame trigger same as Radar Studio does?

Expert 2985 points
Part Number: AWR1243BOOST

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 can capture the ADC data from AWR1243BOOST and get the Range-Doppler after clicking "PostProc" on Radar studio.

Now, I need to implement automation capturing and post processing without clicking button continuously.

Under this folder C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples\Automation DLL Matlab Example\64Bit Matlab, there is Matlab sample for setup TSW1400. So I used this sample code to replace clicking on Radar Studio for TSW1400 setup shown in red rectangular below.

Most of codes are done, unless the "Trigger Frame" function.

In Matlab, these below codes are used to generate Software Trigger.

% Trigger Settings
TriggerModeEnable=1; % Enable Trigger - 1; Disable Trigger - 0
SoftwareTriggerEnable=1; % Hardware Trigger - 0; Software Trigger - 1
ArmOnNextCaptureButtonPress = 0;
TriggerCLKDelays = 0; % The number of clock delays for the trigger
WaitToCheckTrigger = 1; % 0 - Don't Wait, 1 - Wait and check whether trigger has occurred. 

.........
.........

fprintf('\nGenerating %d Software Trigger...', i);
[Error_Status] = calllib('HSDCProAutomation_64Bit','Generate_Software_Trigger',WaitToCheckTrigger,TimeoutInMs);
fprintf('\nError Status = %d (%s)',Error_Status,HSDCPro_Automation_Error_to_String(Error_Status));

I supposed that the 'Generate_Software_Trigger' function in Matlab should do the same things as by clicking "Trigger Frame" button on Radar Studio. Is it correct?

But after I run these Matlab codes, it got stuck like Matlab output below

Generate Software Trigger. Press ENTER to continue...

Generating Software Trigger...

Only if I click "Trigger Frame" button on Radar Studio in 10 secs, then Matlab goes on

Generate Software Trigger. Press ENTER to continue...

Generating Software Trigger...
Error Status = 0 (No Error)

Checking if HSDCPro GUI has completed all its operations...
Error Status = 0 (No Error)

Saving ADC Raw Data as CSV file at C:/HSDCPro Data/adc_data.bin

So my question is how to use Matlab codes to do the same things as by clicking "Trigger Frame" button on Radar Studio.

I tried to use the function 'Generate_Software_Trigger', but failed.

I still need to click "Trigger Frame" button on Radar Studio to generate a trigger even I used  the function 'Generate_Software_Trigger' in Matlab.

Can anyone help me? Appreciate for any replies.

Thanks,

Feng