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!

Other Parts Discussed in Thread: ADS4229

    Hi ,

       recently  i hace got  the source code of  TSW1400 with ADS4229 ,the file contains many congfigure code ,but i don't know how to use matlab to connect with the TSW1400 EVM using USB .Is there any users'  guide to show me how to connect it。  thanks a lot !  appreciate your quick reply!

                                                                                                                                                                                                                                                          wangpeng 

  • Hi WangPeng,

    I would first confirm that the HSDC Pro works ok with the TSW1400 and the ADS4229 EVM.  This will ensure that the USB drivers are installed properly and the hardware/software is working ok.

    Although this is not an officially supported mode of operation we have received enough requests for this to provide some examples of the how to use the API and DLLs from Matlab.  I have attached a zip file which outlines this approach.  For details on the API you can refer to the 1400 Details folder in the HSDC Pro install directory.

    8814.TSW1400_Matlab_Code.zip

    Ken

  • HI ken,

    Can I use TSW1400_5F00_Matlab_5F00_Code.zip with 64-bit OS?

     

    Regards, 

    Fathima

  • Hi Fathima,

    A few months ago we made some API and DLL additions to the HSDC Pro software which allow for user automation and control of HSDC Pro.  We would recommend looking at these examples in the latest HSDC Pro install directory.  It has examples of how to use the API for 32b and 64b labview, matlab and C.

    C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL

    Ken

  • This demo is perfect! Do you have similar code that allows TSW1400 working with DAC (such as TSW30SH84)?.

  • Hi Yang,

    Yes, there is example code included in the HSDCPro directory for DAC automation under the "HSDCPro Automation DLL" folder.

    Regards,
    Matt Guibord

  • Thanks for the reply.

    I did try the demo on that folder, but I think what I am asking for is a similar code as 8814.TSW1400_Matlab_Code.zip, which is able to control the TSW1400 without opening HSDCPro GUI.

  • Hi Yang,

    We are not supporting direct access to the TSW1400 moving forward and an example of this was not made for the DAC. I would suggest using the APIs included with HSDCPro going forward. I think you'll find them suitable.

    Regards,
    Matt Guibord

  • Hi, Ken,

    Could you provide similar VC++ code example of TSW1400 API?
    I'm having a difficulty for embedding TSW1400 API to my MFC project which is generating and editing waveform.

    Thank you very much for your support in advance!

    Y.K.Choi
  • Y.K.

    The TSW14xx family is controlled by HSDC Pro GUI and we have provided some example code for this automation in the HSDC Pro installer.  You can find the manual and examples in this installation directory after you install HSDC Pro.  This automation DLL is intended to replicate the operation of the HSDC Pro and the TSW14xxx EVM as if you were operating them from the PC.  You should familiarize yourself with the HSDC Pro + TSW14xxx EVM operation first so that you know the operational flow of this system, then you can look at the code contained in this directory to see how the equivalent functions are called within C or Matlab.  I would not suggest working with the code without understanding how to operate the HSDC Pro + TSW14xxx EVM first.

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

    Both the ADC and DAC panels are covered in these examples for Matlab and C.

    We provide these working examples (they were tested on our lab PCs) as is and do not make any guarantees that they will work for your particular project.  Please use this as code reference examples only.  These code examples are not something that is officially supported by the apps team, and is only provided as a courtesy to our customers that may want to automate some measurements in their evaluation bench.

    If you are having some issues and would like to obtain help from our contractors I can get you in touch with them.

    Ken.

  • Ken,

    Thank you for your reply!

    The example code is working fine, but it requires open HSDC Pro GUI before runnig the code.

    I want to control TSW1400 directly from my singnal generation application software without opening HSDC Pro GUI.

    So, it would be good if I could use TSW1400 API described in the path below.

     C:\Program Files\Texas Instruments\High Speed Data Converter Pro\1400 Details\

    That is why I asked you VC++ example as Matlab example code which uses the API instead of the Automation.

    Could you provide me VC++ example code that shows me how to use TSW1400 API documented in \\1400 Details\?

    Thank you!

    Y.K.Choi

  • YK,

    The TSW1400 API is no longer supported on the latest HSDC Pro - that API document was accidentally left in place during the last few releases but is no longer valid for HSDC Pro releases as of late 2012. Only HSDC Pro automation DLL is supported.

    Ken.