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.

TSW1400EVM control via Software application Trigger mode

Other Parts Discussed in Thread: ADS5282, ADS5463

Hi,

I'm using the TSW1400Board_CLib.dll to develop an application for the TSW1400EVM in combination with ads5282 to capture data triggered by an external signal (programming environment is Visual Studio 2010).

First of all after loading the Firmware into the board ("TSW1400BrdCtrl_Load_Firmware") the function returns an error_code of 20 which is not listed in the provided table TSW1400_Error_Codes.csv.

The main problem though, is that the external trigger mode appears not to work. I've set the variable "trigger" for "TSW1400BrdCtrl_Start_ADC_to_DDR" to 1 but the data is captured immediately without waiting for the triggering signal (triggered by pushbutton). If I use that same signal with the HSDCP the triggering option works fine.

Can anybody give me some information how the trigger option whithin a software application should be implemented?

Thanks.

Regards,

Kathrina
 

  • Hi Kathrina,

    First, an error code of 20 indicates that the firmware download WAS successful. So that's a good thing.

    Second, we have developed a new DLL that interfaces with HSDCPro instead of the TSW1400. All interaction with the TSW1400 will be handled by HSDCPro, but they can be triggered using this new DLL. We have asked the software team to add triggering controls to this new DLL. I can send it over when it is finalized. I've added you as a friend on E2E, can you send me your e-mail address?

    The reason we are going this new route is that it will be robust to changes to the hardware or software, including adding new devices and modifying old ones. The interaction with HSDCPro will be simpler to implement than the interaction with the TSW1400 and will allow the user to use the high level functions with only a few simple function calls (such as triggered capturing).

    Regards,
    Matt Guibord 

  • Hi Matt,

    I've sent you my email address.

    Thanks,

    Kathrina

  • Hi Kathrina

     i have problem to use TSW1400Board_clib.dll on visual c++, can you send me example code?

    please send to d_yat02@yahoo.com

    Thanks'

    Dayat

  • Hi Matt,

    I am using TSW1400+TSW30SH84 with Matlab. The example comes with the software do not work. Could you please email your Matlab code to yangzi.1988@hotmail.com?

    Thanks.

    Zi.

  • Hi Zi,

    The examples included with HSDCPro are valid and should work. You WILL need to modify the code to work for your needs, it likely will not run right off the bat (for instance change the board serial number). It is meant to show how to use the code, not to be used exactly as it is.

    Regards,
    Matt Guibord

  • Hi Matt,

    I am developing a software and I need the hardware trigger.

    I use a TSW1400 with a ADS5463 EVM.

    Can you send me your DLL with the trigger implemantation

    Best Regards

    Maurizio

  • Maurizio,

    The .dll file can be found in the HSDC Pro install location given below.

    C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\1400 Details\TSW1400Board_CLib.dll

     

    Regards,

    Jim

  • Hi Jim,

    Have you got any example on the use of Trigger (using Labview)? 

    Thank you so much.

  • Maurizio,

    Not sure what you are asking for. Do you want an example Labview vi module used for triggering?

    Jim

  • Maurizio,

    Have a look at this directory on your PC where you installed HSDC Pro:

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

    C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\Automation Function APIs\Wrappers

    There is a trigger option vi which can be used for triggering.

    Also look here for examples of how to put together a labview flow of how to use it for ADC and DAC.

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

    Ken.

  • Hi JIm 

    I have used the HSDCPro Automation DLL ADC example (LabVIEW), Once I sent the hardware trigger event, I have to wait long time for read DDR memory.

    The situation is the same using directly the HSDC PRO ver.4.10 Software.

    Can you tell me why?

    Thank you.

    Maurizio

  • Maurizio,

    Depending on your sample rate and the capture depth you may have to wait for the samples to transfer from the TSW1400 DDR3 to the PC.  The limit is the data transfer speed of the USB intergace.  The USB interface is using a SPI mode which is fairly slow compared to the capture time of the ADC.

    If you are only capturing the default 64k samples this usually takes a couple of seconds to transfer.  As you get into the 10s of Msamples this will become several minutes, and as you get into the 100s Msamples this will be in the 10s of minutes.

    Ken