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 matlab code for ADC device

Other Parts Discussed in Thread: ADS52J90

Hello,

SETUP:

hardware used: TSW1400, ADS52J90

software used: HSDC Pro GUI v5.0

                        HMC-DAQ GUI V2.8

Matlab code used: C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples\Automation DLL Matlab Example\64Bit Matlab

PROBLEM:


when I use the provided matlab code, ADC device can be selected and the HMC-DAQ GUI can be launched by HSDC Pro GUI, however, the HMC-DAQ GUI setup cannot be automatically setted, for example, item 3, choose data Format cannot be automatically chosen. I need to manually set them. But if I manually set them up, the configuraton settings in the later code such as 'Passing ADC Output Data Rate', 'Set ADC INput Target Frequency' will not be valid. Is there a way, that the Matlab code can automatically setup the HMC-DAQ GUI as I want?

Best regards,

Yu

  • Hi Yu,

    There is some bug in the 64bit version of the example matlab code. Please use the 32bit version example and I think this should work without any issues.

    C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples\Automation DLL Matlab Example\32Bit Matlab

    Regards,

    Neeraj

  • Hi Neeraj,

    My OS is 64bit, I cannot use the 32Bit code. I have tried but failed at the very beginning. Is there any other way I can deal with this problem?

    Best regards,

    Yu

  • Hi Yu,

    We are in process of fixing the matlab 64 BIT code.

    But as a work around here is what I have seen to work if you switch the ADCOutputDataRate parameter and TimeoutInMs parameter and use the following command it seems to solve the issue. 

    [Error_Status] = calllib('HSDCProAutomation_64Bit','Pass_ADC_Output_Data_Rate',TimeoutInMs,ADCOutputDataRate);

    Similarly if you switch the ADCInputTargetFrequency parameter and TimeoutInMs parameter and use the following command it seems to solve the issue.  

     

    [Error_Status] = calllib('HSDCProAutomation_64Bit','Set_ADC_Input_Target_Frequency',TimeoutInMs,ADCInputTargetFrequency);

    Regards,

    Neeraj

  • Hi Neeraj,

    Thanks a lot!

    But my main problem is: the matlab code 'Select_ADC_Device' cannot automatically set up the HMC-DAQ GUI.

    What's more, when I use the external trigger option, can I somehow directly get the measured data without saving raw data as csv? That means, can I use other program to deal with the measured data after the matlab code 'Read_DDR_Memory'?

     

    Best regards,

    Yu