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.

TSW14J56EVM: Software interface to communicate with TSW14J56EVM

Part Number: TSW14J56EVM

Hello,

Would it be possible to get sources/documentation for TSW14J56EVM software interface (USBFX3)? I'm having trouble with UI automation it unexpectedly and randomly crashes when I capture 100+ times it would be nice if I would be able to interface with FPGA directly using my own software that I'm currently writing. 

Thank you,

Vold.

  • Hi Vold
    We're looking into your request.
    Someone will respond shortly.
    Best regards,
    Jim B
  • Thanks Jim!

    Regarding the crash HSDC UI crashes with error 0xC0000417 STATUS_INVALID_CRUNTIME_PARAMETER blogs.msdn.microsoft.com/.../

    I don't have a call stack right now but it is crashing somewhere inside libview libraries and crash indicates that error occurs during parameter validation in safe CRT functions (_s).
  • Vold,

    Can you answer these to provide us with more info on what might be causing this issue?

    1. Can we get at full screen snapshot of HSDC Pro when this error happens.

    2. Which programming environment (Matlab or C or LabVIEW) is used to run the automation?

    Regards,

    Jim

  • Hi Jim,

    1) What exactly you want to see it is just standard Windows application crash report which report error that I mentioned above ( e.g.  )

    https://stackoverflow.com/questions/38135608/how-do-identify-status-invalid-cruntime-parameter-exception 

    2) I used c:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples\Automation DLL C Example\ADC\

    Thank you,

    Vold

  • Vold,

    1. Can we get the '.cpp' file with which you are seeing the error?

    2. Can we get the following information,

      • Board used
      • ADC ini file being used
      • ADC Output Data Rate
      • HSDC Pro Version being used

    Regards,

    Jim

  • Hi,

    1) For my automation I use not just cpp but also python script to communicate with other hardware and cpp is simply used to reload a trigger.
    2)

    TSW14J56EVM RevD + ADC12J4000EVM
    ADC12J4000_BYPASS
    4000
    HSDC Pro v4.7


    I believe I found the problem with HSDC Pro when capture happens 14J56revD Details\TSW14J56revDBoard_CLib_1.0.dll calls TSW14J56BrdCtrl_Read_DDR_to_File function which accepts path where to store samples by default it is ..HSDCPro Data\ADC Temp0.bin

    After each capture my automation app copies this file using Windows CopyFile API because of this I believe there are some handles open to ADC Temp0.bin by other software anti-virus or OS itself which causes HSDC Pro to crash.

    I can see HSDC Pro crashing with exact same error if ADC Temp0.bin is locked because TSW14J56BrdCtrl_Read_DDR_to_File does next:

    f = fopen( filepath, "wb" )

    fclose( f ) /// Notice how it assumes fopen succeeds and provides correct file handle
    /// if fopen fails and handle is invalid fclose will crash with STATUS_INVALID_CRUNTIME_PARAMETER

    f = fopen( filepath, "ab" )


    I started to use TSW14J56revDBoard_CLib_1.0.dll and USB3FX.dll to program FPGA and communicate with TSW14J56EVM and ADC directly but there are several things that are not clear since there is no documentation or source code for these just exported functions.

    I would like to feed data from USB3FX!Read_From_FPGA directly to my software making it almost real-time streaming and displaying it in my UI also I already implemented converter for data that is coming from Read_From_FPGA function which should be data from from interleaved ADC converters per ADC12J4000 datasheet and also mentioned here e2e.ti.com/.../478831

    I would really appreciate if you could provide source code for TSW14J56revDBoard_CLib_1.0.dll and USB3FX.dll then I would not have to engineer something incorrectly especially because there is FPGA source code available.

    Thank you,
    Vold.
  • Oh and one important thing HSDC Pro is 32bit only and so all the DLLs having source code would allow to integrate them into modern 64bit applications.
  • Volodymyr,

    Please find the source code you requested in the attached file.

    This also includes a link to the Rapid Capture Utility, which was built to capture directly from J56revD using the board dll without having to run HSDC Pro.

    Regards,

    Jim

    GUI.zip

  • Amazing! Thank you so much this will save me a lot of time! I made a small demo last week my software continuously triggers ADC capture and displays it in real-time. https://youtu.be/1yYmdxQIEBQ performance is pretty good.
  • Hi Jim,

    Actually zip contains only message about RapidCapture Utility but doesn't contain the code or utility itself also TSW14J56_USBJTAG folder is missing which has Rapid Capture Utility and code that is referenced by TSW14J56Board_CLib_V1.0 would you be able to provide that one as well?

    Thank you!
  • Volodymyr,

    The zipped file was to contain an address that would take you to a site so you could download the Rapid Capture Utility.

    Regards,

    Jim

  • Volodymr,

    The attached zip file now contains the following:

     

    1. J56revD & USBFX3 Source Code for HSDC Pro v4.70

    2. Installer for the Rapid Capture Utility source code and a ReadMe.txt file with a few instructions.

     

    Hope this helps.

    Regards,

    Jim

    J56revD Source and Rapid Capture Utility.zip