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.

AFE58JD28: Automate with python? (Quick Setup and other parameters)

Part Number: AFE58JD28

Is there currently an API to automate selecting the parameters in AFE58JD28 EVM? HSDC Pro has automation functionality, but I don't see anything to automate the ADC GUI.

Essentially I want to have python functionality to 'click' Initialize Device button, and 'check' the checkboxes as shown below. Is this possible?

Thank you

  • Hi Jacob,

    Sorry for the delay in response. Could you please follow the below steps?
    1. Go to "script" in the File Menu and select "Launch Macro Window". A python window will launch.
    2. Select "Start Macro Recording" from the same menu and perform all the operations that you need on the GUI. For example, clicking on initialize device, choosing output format, ADC format etc. For all the actions, the corresponding register values will be recorded.
    3. Once you are finished, you can select "Stop Recording" from the same menu.
    4. Save the Python script as the .py file. You can either execute this script independently or add the contents of it to an another script that you have.

    Note:
    1. Do not edit the header and footer of the script that's recorded.
    2. Make sure AFE58JD28 GUI is open when you are executing this script.
    3. In case you get any error in using the above feature, please Install Labview 10 Runtime engine from the below link. ftp.ni.com/.../LVRTE2010_SP1f5std.exe

    Please let me know if that helps.

    Thanks,
    Srinivas
  • Hi Jacob,

    I'm going to close this thread, as it seems to be resolved. If you have further questions please start a new thread. Thanks!