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: Automation

Part Number: TSW1400EVM

Hi,

I want to automate the process of data capture from MATLAB, without using HSDC pro GUI.

We have done this for previous version Board from TI.

Can you please help me with this version How to control the TSW1400 from MATLAB?

Regards,

Amit

  • Amit,

    Go to the "Manual and Examples" folder shown below for assistance with this request.

    Regards,

    Jim

  • Can we automate the csv file export in GUI from python?

  • Hi Amit, yes please see my code below.

    Regards, Chase

  • Sorry Amit,

    The code did not copy the first time. Please find it attached here: saving_adc_codes_from_HSDC_Pro.zip

    main.py
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    # -*- coding: utf-8 -*-
    """
    Created on Mon Apr 11 10:30:34 2022
    @author: CW
    """
    def loadDLL():
    """This function loads the HSDC Pro 64-bit DLL.
    \nArgs: {None}
    \nReturn: None
    """
    if not 'HSDCProDLL' in locals():
    loadedDLL = cdll.LoadLibrary("C:/Program Files (x86)/Texas Instruments/High Speed Data Converter Pro/HSDCPro Automation DLL/64Bit DLL/HSDCProAutomation_64Bit.dll")
    return loadedDLL
    else:
    pass
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     

    Regards, Chase