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 DAC mode External Trigger Mode, Trigger on/off

Other Parts Discussed in Thread: TSW3084EVM, DAC34SH84

Hi My name is Bowei Liu

I am using TSW1400EVM and TSW3084EVM let them function as customed signal generator. 

I am using DLL provided by TSW1400 High speed Data Converter Pro. IDE is VS2010

Signal file is loaded into memory of TSW1400, and board is in "external trigger mode".

When the TSW1400 receives an external trigger, the board starts to give data to DAC 3484. That is what I want.

But I am wondering how can I realize the action that when TSW1400 receives trigger for next time, it ceases sending data to DAC 3484.

Namely, how can I use external trigger to switch off sending data from TSW1400.

Thank you

regards

Bowei Liu

  • Bowei,

    We are looking into this and will get back to you as soon as possible.

    Regards,

    Jim

  • Bowei,

    Currently it is only possible through a software command to turn off the Data generation from TSW1400. When it gets rearmed for next trigger it stops sending data - this is commanded by HSDC Pro.

    As a workaround, you could toggle the FPGA hardware reset (reset button on the board) using an external signal to stop the generation (needs blue wire added to the reset switch, which we have done in the past).

    Regards,

    Jim

  • Thank you Jim

    I will go back and test the workaround method you've mentioned. 

    Thank you

    Regards,

    Bowei 

  • Bowei,

    You can also turn off the DAC output by using the TXENABLE pin or the sif_texanble register bit via the DAC SPI register map.  This will physically shut down the DAC analot output regardless of the pattern generator.

    Ken.

  • Hello Jim

    Regarding to the "FPGA hardware reset" button, are you talking about the "The CPU_RESET (SW6) pushbutton" located at the top-right direction of FPGA? (circled in a solid green ring)

    Also, I would like to know, what is the blue wire you have mentioned? thanks

  • Hello there,

    I have a very similar problem, need to turn off DAC output automatically. Is there any easy to follow solutions now? I just want to output my pattern once, rather than continuously.

    Thanks

    Hongwei
  • Hongwei,

    The firmware currently does not support this feature.

    Regards,

    Jim

  • Hi Jim,

    Thanks for you response. In there case, is it possible to get the source code, like verilog files, that we can modify ourselves?

    Also is there any detailed documets about HSDCPro Automation DLL? Some of the command cann't be figured out easily, like read/write register etc

    Thanks

    Hongwei
  • Hongwei,

    Information regarding automation DLL can be found under the directory ‘HSDC Pro automation DLL’ available in the following HSDC pro installation folder,

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

    We recommend using the methods in these documents over directly using the DLLs that you mention below which involves lot of coding – has to do what HSDC Pro is doing internally.

    To answer your questions,

    • The two dlls are corresponding to two different kinds of the FPGA FWs we have for 1400. For this devie “DAC34SH84” the right dll to use is “TSW1400Board_CLib.dll”.
    • The error looks like an undefined error so it could be due to various reasons. We may need to look at your LabVIEW top level VI (with all sub VIs), HSDC Pro version and INI used to find out what is cause of the problem.
    • Documentation on the TSW1400Board_CLib.dll is not present since it is HSDC Pro internal and we recommend the other Automation DLL mentioned above which has good documentation.

     

    What kind of automation are you trying to build? Does it involve transferring of huge data?

    Regards,

    Jim

  • Hi Jim,

    Thanks for your reply. I have tested with TSW1400Board_CLib.dll again, still the same error at the same place. I am using windows 7 64 bit, but labview is 2011 SP1 32 bit. Please find attched files I am using to see if you can help to identify any problem.

    The original exapmles was downloaded in one of the previous thread. The load firmware vi works fine. Example VI.zipDAC34SH84.ini

  • I forgot to mention that the HSDC Pro version is v3.00.10 . The main v3.00 was from slwc107k.zip, and the 10 (version) was from a patch, slwc106h.zip. Both these two files are recently downloaded from the supporting webpage.

    Regards

    Hongwei
  • I forgot to mention that the HSDC Pro version is v3.00.10 . The main v3.00 was from slwc107k.zip, and the 10 (version) was from a patch, slwc106h.zip. Both these two files are recently downloaded from the supporting webpage.

    What I am trying to do is automatically load a pattern file and send it to DAC under a software trigger. Ideally the process can be repeated every second or less, and the pattern only go to DAC once (this is still a problem for me at the moment). The length of the pattern files is not critical, but the update speed need to be as soon as possible. therefore I would like a function to read the status of the TSW1400 to monitor the data transfer from computer to TSW1400 etc.

    Regards

    Hongwei
  • Hongwei,

    Here is some more info:

    We downloaded the LabVIEW files uploaded by you, regarding the 1097 error that you face in 1400_DAC_Write.vi and explored the Labview files. We see that there are two parameters to be passed to both the functions, Offset binary and 2's complement function, are missing. After adding those parameters to the functions, we tried executing the VI in LV2010 and did not face the 1097 error.

     

    The two parameters are like Key and Value which are used to pass the Scaling factor and Number of Bits to the DLL. These two parameters were recently added and the updated TSW1400_API.h file was not present in the HSDC Pro v3.00. Hence you would have missed adding these parameters. We will make sure to update the header file in the next HSDC Pro release.

     Please find the updated 1400_DAC Write.vi file attached(along with its subvis). We have saved it in LV2010 version since we don't have LV2011 installed.

     If you provide a personal email, we can send a pasted image which shows the code that we have added in 1400_DAC_Write.vi,

    Regards,

    Jim

     

     4604.Example VI.zip

  • Hi Jim,

    Thanks very much for your information and modified examples. All works now. my email address, hongwei.3.li at nokia.com.

    Regards

    Hongwei
  • HI Jim,

    Another question about the dll, how to use software/hardware trigger in DAC mode with the dll? I haven't found the command in the headfile and the document I have. There is only one trigger function in Start_ADC_to_DDR. It doesn't working with DAC.

    Regards

    Hongwei