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.

Matlab for TSW1200 and ADS4229EVM

Other Parts Discussed in Thread: ADS4229EVM, ADS4229, DAC34H84, DAC3482, ADS4145, ADS4249, AFE5809EVM

Hello,

Is there a Matlab interface for the TSW1200 and ADS4229EVM?  Could you advise me where can I download the Matlab code to interface to this ADC?
Another question, How many data can I capture in each channnel ?

Thanks,
Best Regards,
Guan Qing

  • Hi,

    Yes, there is a Matlab interface to control the TSW1200 to set up and get a data capture from the ADS4229 EVM.  Please see atttached zip file.

    The Matlab code is not as polished and automated as the GUI that comes with the TSW1200.  The TSW1200 GUI will automatically locate which com port that Windows assigned to the TSW1200 when the GUI is launched.  The Matlab code does not do that.   You will need to use hardware device manager to see which com port umber the TSW1200 has, and manually edit that com port into the initSerial.m file in *two* locations in that file for the Matlab code to be able to talk to the hardware.  If the com port number changes later, then the initSerial.m file will need to be edited again.

    The Matlab code will set up the FPGA registers for a capture, and get the captured data.  Then the captured data is processed and a popup window displays the FFT along with SNR, SFDR and some other performance metrics.  But the Matlab code is really meant for a user who wants to develop their own processing functions and needs to have the code for setting up the FPGA already written - since we can't expect end users to know how to control the FPGA register space.  We provide that - and you can thendo the rest.

    The TSW1200 can capture as much as 65536 samples, total.  If you capture from one of the two channels of the ADS4229 then you can get 65536 samples for that channel.  If you choose to capture data simultaneously from both channels of the ADS4229, then you can get 32768 samples per channel.

    Regards,

    Richard P.

     

    TSW1200_ADS42xx_MATLAB.zip
  • Thanks Richard.

    I found another device TSW1400 in TI's website. It has more capture buffer. But it's user's guide doesn't mention the matlab interface. Does TSW1400 also have the Matlab code like TSW1200? I just want to capture data simultaneously from both channels of the ADS4229 or ADS 5263, then I will process them by myself. Yes, I know , the TSW1400 also has GUI application which can save capture data into BIN or CSV file , then I can read this files in MATLAB and process them. But it is not convenient.

    Thanks,

    Best Regards,

    Guan Qing 

  • Hi Guan,

    I have successfully used the TSW1400 with matlab. The TSW1400 has a DLL written to allow any language to interface with it, for instance High Speed Data Converter Pro is written in LabView but makes calls to the DLL to interface with the TSW1400. I did run into a few problems when using it with Matlab, such as having to modify the header files of the DLL to compile with Matlab and having to use 32-bit Matlab instead of 64-bit. Note that I have only tried this on one computer, so I cannot guarantee operation on any others. Unfortunately, it seems that the TSW1400 is currently out of stock.

    We do have a TSW1405 which also makes use of a DLL. I have not tried to interface it with Matlab, however the DLL should be very similar between the two, since they were written by the same team. I would expect to have to make similiar modifications to the header files. The TSW1405 is functionally equivalent to the TSW1200.

    Regards,
    Matt Guibord

  • Thanks  Matt.

    Is the matlab interface for TSW1400 same as TSW1200? Where can I download the matlab interface for TSW1400  with ADS4229EVM? I want to order TSW1400 for our Lab.

    Best Regards,

    Guan Qing

  • Guan,

    The Matlab is not available for download online. It has mostly been a tool for my own work. I can send what I have through e-mail but note that it is not free of bugs. I have had cases where Matlab has crashed and I had trouble getting the DLL to compile originally. There will be very limited support for the Matlab code.

    If you want to send me your e-mail through private message, I can forward what I have.

    Regards,
    Matt Guibord

  • hi Guan.

    im using the the same mentioned HW (TSW1200&ADS4229).

    is there any VHDL code you created to inteface the ADC and the FPGA?

    thanks, Dotan

  • Hi,

    We (TI) provide the Verilog source code for the TSW1200 when requested.  I would need an email address to send the zip file to.  The TSW1200 code will be more complicated than it would need to be since the TSW1200 has to interface to so many different types of EVM, so you would have to sort through the code to find and keep the sections that you are looking for.

    Regards,

    Richard P.

     

  • Hi Richard

    I'm using the tsw1200 and the ADS4229EVM

    I need HDL code to interface  thos components

    Is there any description file included to the mentioned code?

    Thanks A lot!

    Dotan

    My email: dotan712@gmail.com

  • Hi,

    Sent to the address provided.

    Regards,

    Richard P.

  • Hi Richard

    Would you give me the HDL code for 1200EVM to interface the ADS4229EVM? 

     My email: a1394@foxmail.com

    Thanks A lot! 

    Guan Qing

  • Sent to the address provided.

    Regards,

    Richard P.

  • Hello Sir,
    I was requiring the VHDL code for interfacing ADS4229.

     My email: shreyas.nitk@gmail.com

    Kindly send

    Thank you.

  • Matt Guibord said:

    We do have a TSW1405 which also makes use of a DLL. I have not tried to interface it with Matlab, however the DLL should be very similar between the two, since they were written by the same team. I would expect to have to make similiar modifications to the header files. The TSW1405 is functionally equivalent to the TSW1200.

    ...

    I can send what I have through e-mail but note that it is not free of bugs. I have had cases where Matlab has crashed and I had trouble getting the DLL to compile originally. There will be very limited support for the Matlab code.

    If you want to send me your e-mail through private message, I can forward what I have.

    Hi Matt,
    may I kindly ask you to send me your Matlab interface code for the TSW1400 as well. It would help me a lot.
    Best regards
    Sebastian
  • Hi Sebastian,

    Please send me your e-mail through private message. This code currently only works with 32-bit Matlab.

    Regards,
    Matt Guibord 

  • Hi Richard,

    Do you have any HDL code for DAC34H84 and ADC4145 interfaces. Pls mail if you have any code for silimal interface.

    my Id is neerajsharma341@gmail.com   , neeraj.sharma@logic-fruit.com 

    Thanks and Regards

    Neeraj Sharma

  • Hello Neeraj,

    One useful application note and associated codes can be found in the link below:

    http://www.ti.com/analog/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa545&docCategoryId=1&familyId=2023

    The app note covers the DAC3482 16-bit word wide interface format, which is similar to the DAC34H84 2x 16-bit word wide bus. Also, on the ADC side, the ADS4249 interface is described, and the interface is similar to the ADS4145. 

    -KH

  • Hi,

    You haven't said what your target for the HDL code would be, such as what vendor of FPGA you might be using.

    But check the app note and associated quartus project zip file at:

    http://www.ti.com/analog/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa545&docCategoryId=1&familyId=2020

    That shows a working example of code for the TSW1400 (and the Stratix IV that is on the TSW1400) that receives data from an ADC and sends that data back out to a DAC.  The ADC is an ADS4249 which has an interface that looks like 2 channels of the ADS4145 that you are looking at.  And the DAC is a DAC3482 which I am told is two channels of 16b DDR LVDS and the device you asked about is 4 channels of 32b LVDS DDR.  So I would think  you should be able to scale the example code to fit your needs. 

    Regards,

    Richard P.

  • Hi,

    I am using TSW1400 + TSW30SH84 for my project. Can you also send me the Matlab code that allows me to get control of this system. The sample in the installation file does not work well...

    Thanks,

    Zi.

  • Dear Mat,
    I'm using TSW1400EVM with AFE5809EVM. Could you please send me the Matlab code to interface them?
    sajadmaster@gmail.com
    Thank you :)
  • Sajad,

    We can provide the firmware (VHDL) for the TSW1400. Is this what you are asking for? The HSDC Pro GUI is labview based and unfortunately, we are not allowed to provide this.

    Regards,

    Jim

  • Jim,
    Yes, please email me the firmware (VHDL).
    Thank you
  • Hi

    The TSW1200 is an obsolete EVM and we no longer support it.  We do not have a TSW1200 matlab interface.

    I would suggest moving to TSW1400 and HSDC Pro for matlab control.

    Ken