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.

TSW14J56EVM: HSDCPro_Automation_DLL_ADC_Example_64bit.m data readout

Part Number: TSW14J56EVM

Hello,

I am starting to use the TSW14J56EVM in combination with an ADC12J1600. 

I aim to process and analyse my data "real-time" via software, using either Matlab or C. I started off with the matlab example provided HSDCPro_Automation_DLL_ADC_Example_64bit.m.

Everything works fine for me, however I cannot quite understand how to read out the data.

Looking into the Matlab code I understand that the data are captured by calling the function

"Error_Status] = calllib('HSDCProAutomation_64Bit','Pass_Capture_Event',TimeoutInMs)".

I see in the example that the data are saved in a CSV file in the line

"fprintf('\n\nSaving ADC Raw Data as CSV file at %s', CSVFilePathWithName);"

However, I would like to store them in a vector within the same code and analyse them straight away.

 

So my question is: how can I get the data stored in a vector to use them later in the same script? Is there any specific function or set of functions to do this?

Many Thanks,

Francesco