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.

TSW1400 - Saving binary files with Matlab

I am using the example MatLab code that works with the Automation DLL.  I see that there is a function to save the data as .csv.  Does this support saving the binary data (.bin)?  Also, I am interested modifying this MatLab code for my purposes and wanted to know if there are other functions that can be controlled via MatLab?  Where can I find all of the functions supported by the HSDCProAutomation?   Thanks,
Chris

  • Hi Chris,

    I do not think the current DLL supports saving the binary file. Note that the binary file is the same data as that saved in the CSV, just a different format. Is there a reason you need the binary file instead of the CSV? It's certainly something that could be added in the next release.

    There is a document that describes the automation DLL and the various functions. It should be located at the location below and is titled "HSDCPro Automation DLL Manual.doc". All of the functions listed in here can be controlled in Matlab, or any other programming language.

    64-bit windows:
    C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples

    32-bit windows:
    C:\Program Files\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples

    Please let us know if you have any problems using the Automation DLL.

    Regards,
    Matt Guibord 

  • Matt, I appreciate the quick response.  I have a related question.  The MatLab example also saves a screenshot of the fft as a .png, Is there a way to save a screenshot (of each channel) of the time domain (bins) as a .png (or.jpg)?  This would be very useful for me as I am interested in the time domain and not the fft.

     

    Thanks,

    Chris

  • Hi Chris,

    The function "ADC_Test_Selection" will allow you to choose the "Time Domain" view by passing a 0. See ADC function 6 in the Automation DLL manual. Alternatively, you can set it up manually in HSDCPro and select "Time Domain" and then run the automation functions you need. To cycle through the channels, you can use the function "Select_ADC_Channel" which is ADC function 10 in the Automation DLL manual.

    Regards,
    Matt Guibord