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: HSDCPro Automation DLL with MATLAB

Part Number: TSW14J56EVM

Regarding your suggestion to add the couple of lines before loading the automation dll, could you please re-enter it so that the lines do not get cut off. I am not able to read through completely due to a formatting issue it seems

  • I have completed the mingw.mlpkginstall as suggested 

    Also these are the first four lines I have added so far

    addpath(genpath('C:\Users\arven\Documents\MATLAB\64Bit Matlab_HSDCPro_automation'));

    % Load the Automation DLL
    if ~libisloaded('HSDCProAutomation_64Bit')
    [notfound,warnings]=loadlibrary('C:\Users\arven\Documents\MATLAB\64Bit Matlab_HSDCPro_automation\HSDCProAutomation_64Bit.dll', @HSDCProAutomationHeader);
    end

    BoardSerialNumber="T827D8un-TSW14J56";
    FirmwareFilePath="C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\14J56revD Details\Firmware\TSW14J56REVD_FIRMWARE";

    With the above four done, when I do run the double Automation_DLL_Version(void) command, I get a vector of numbers which I think is an error. 

  • If not can someone else from TI respond to my query. The original thread is the one below

    e2e.ti.com/.../tsw14j56evm-hsdcpro-automation-dll-with-matlab

  • Aravind,

    Please run the following script, which loads the Automation DLL and gets the version number, and let us know if you are facing any issues. This code snippet is working without any errors in the remote setup we have. Also, please don’t change the path of the DLL, instead load it from the HSDC Pro installation location itself as it has all the necessary Thunk files present, and see if the issues exist. In case of any issues, please send a snippet of the error the customer.  Also attached is the sample code Matlab file in this mail.

     

    Matlab code:

     

    addpath('C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples\Automation DLL Matlab Example\64Bit Matlab'); %for the MATLAB to use the Additional dependency files like Thunk files, header files etc..

    if ~libisloaded('HSDCProAutomation_64Bit')

        [notfound,warnings]=loadlibrary('C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\64Bit DLL\HSDCProAutomation_64Bit.dll', @HSDCProAutomationHeader);

    end

     

    fprintf('\nAutomation DLL Version...');

    [Automation_Version] = calllib('HSDCProAutomation_64Bit','Automation_DLL_Version'); % Waiting to check if HSDCPro has completed all its operations.

    fprintf('\nError Status = %d',Automation_Version);

    Regards,

    Jim

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/73/Sample_5F00_Code.m

  • Thank you Jim!

    Attached is the screenshot of the MATLAB command window after I run the sample code. 

  • Aravind,

    This from our software team:

    "The customer is getting the version number of the Automation DLL without any error i.e. 3.2 is the version number here. By mistake, in the fprintf statement, it is mentioned Error_Status instead of Automation_Version. But the script is executing without any issues on the customer PC. Kindly ask the customer to edit the ADC Example available at the following location according to the use case and try it without changing the directory. The example should work without any issues".

    "C:\Program Files (x86)\Texas Instruments\High Speed Data Converter Pro\HSDCPro Automation DLL\Manual and Examples\Automation DLL Matlab Example\64Bit Matlab\HSDCPro_Automation_DLL_ADC_Example_64bit.m"

    Regards,

    Jim

  • Thank you Jim! That worked and I was able to run a few other commands without any error message as well. Thanks for resolving the issue. 

    To add, the TSW14J56EVM I have is a RevE board. I see that under the firmware directory, there is a 14J56 folder and a 14J56RevD folder separately. I assume I have to use the files in the folder 14J56 alone, right?

  • Aravind,

    You should be using the files under the "14J56revD Details" folder . The both Rev D and Rev E boards use this same location.

    Regards,

    Jim