• TI Thinks Resolved

Matlab for TSW1200 and ADS4229EVM

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
  • In reply to Richard Prentice:

    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 

  • In reply to guan:

    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

  • In reply to 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

  • In reply to guan:

    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

  • In reply to dotan bardugo:

    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.

     

  • In reply to Richard Prentice:

    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

  • In reply to dotan bardugo:

    Hi,

    Sent to the address provided.

    Regards,

    Richard P.

  • In reply to Richard Prentice:

    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