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.

  • TI Thinks Resolved

ADS58J89: How to export data real-time to Matlab

Prodigy 120 points

Replies: 13

Views: 1711

Part Number: ADS58J89

Dear Sir/Madam,

I am working with a ADS58J89 as my ADC and a TSW14J56 as the capture card.

I was wondering how to export real-time data of all the 4 channels from HSDCpro to Matlab for processing. Do I need to install any interface?

Thanks

Farshid

  • In reply to Farshid Tamjid:

    Hi Farshid,

    Can you post the output of the matlab command window when you use the new ini file I sent?

    Thanks,
    Eben.
  • In reply to Ebenezer Dwobeng:

    Hi Eben,

    Finally I found out how to do it. Here are the steps:

    1- Loading the firmware manually in HSDC Pro

    2- Running the codes, and pressing Enter in Matlab command window

    3- Loading the firmware again manually in HSDC pro

    4- Press capture in HSDC Pro

    5- In Matlab after seeing "Start normal capture", press Enter again

    SO, it captures data and save it in a CSV file.

    Now, I have three questions. First, it seems when I run the codes, it captures data only once and it does not update the CVS file over time. Is that what it is? What if I want to sample data continuously?

    Second, what type of data is saved in the CSV file? It doesnt look like to be in dBFS unit as it's plotted in HSDC Pro window.

    Third, it took 2.6 second for me to sample and write in CSV file which is slow. Does the time I reported make sense? Or something is wrong? Also, how can I make it faster? Here are my parameters.

    ADCOutputDataRate = 250e6;
    ADCInputTargetFrequency = 169.994354248e6;
    NumberOfSamplesPerChannel = 65536;

    NumberOfSamplesForAnalysis = 65536/2;

    I appreciate your help.

  • In reply to Farshid Tamjid:

    Hi Farshid,

    Looking at your Matlab workspace again, your firmware filepath is incorrect. Change the back slash to a forward slash after 14j56 RevD Details\firmware\

    Alternatively, you can comment out line 86 and manually download the firmware before running the matlab code.
    %[Error_Status] = calllib('HSDCProAutomation_64Bit','Download_Firmware',FirmwareFilePath,WaitToCheck,60000);

    If you confirm this fix works for you, I will want to close this thread. Please start a new one if you have more questions.

    Thanks,
    Eben.

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.