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.

TSW14J57EVM: save data format for csv and binary file

Part Number: TSW14J57EVM
Other Parts Discussed in Thread: ADS54J69EVM

I am using the TSW14J57EVM with an ADS54J69EVM. The HSDC Pro GUI software is able to save adc captured data in csv and binary format. I need to have a customer without the TI software or hardware import the binary or csv data into Matlab and process the data.  The J69EVM has 2 ADCs but I am only testing the A1 input, yet the csv file shows 2 columns of I32 data. I think column 1 is the A1 adc and column 2 the B adc. Is that correct.

Is there a document or apnote that describes the binary data format and how one can process the data using other software such as Matlab or Python?

  • Ted,

    See the attached file. This file and other automation files can be found under the following directory:

    C:\Program Files(86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples.

    Regards,

    Jim

    3487.HSDCPro Automation DLL Manual.doc

     

  • hello Jim,

    I had already found the DLL directory from reading and earlier post. What I would like to do is use the GUI software to save the adc raw binary data file. Than I would like to read that file with other software such as LabVIEW or Matlab and process the data without connecting to the EVM data capture board board or the HSDCPro software. The DLL libraries provide a means to connect to the EVM and read the process data but that is not what I need. I have not read the whole manual so I may have missed reading the key information that I need.

    I am assuming that the raw data file is saved as 16 bits per sample (2 bytes),  2 ADC channels, and the 65K samples saves contain 4 bytes (2 bytes per ADC). I am only testing ADC #1 so can discard half the data.

    is the data saved as ADC1( high byte, low byte) , ADC2(high byte, low byte)? Any other data added to the adc raw data file?

  • Ted,

    The data format for the exported CSV and BIN files from the HSDC Pro Export functions are as given below.

     

    CSV File Data Format: The samples of the channels are arranged Column wise where the first column data corresponds to samples of first channel, the second column data corresponds to samples of second channel and so on. The Samples in the Exported CSV File will be in 2’s Complement format with range of -2^(N-1) to 2(N-1)-1, where N is the Sample Resolution.

     

    BIN File Data Format: The samples of the channels are arranged in an interleaved fashion, like Channel1Sample1, Channel2 Sample1,Channel1 Sample2,Channel2 Sample2, Channel1 Sample3,Channel2 Sample3 and so on.

    Note: Size of Each Sample in bin files are 2 Bytes for the Sample Resolution less than or equal to 16 bits and 4 Bytes for the Sample Resolution greater than 16 bits.

    Regards,

    Jim

  • Thank you for your response: I do have a followup question:  The BIN file format, what is the byte order of the CHx Sample data. Is the high byte first or second for a 16Bit sample?

  • Ted,

    In BIN File, the high byte is second and the low byte is first for 16Bit Samples.

    For example: Consider a 16Bit Sample = 0x5B27, the byte order in BIN File will be =  0x27(Lower Byte) 0x5B(Higher Byte).

    Regards,

    Jim