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.

AFE4490SPO2EVM: Need help in capturing AFE44x0SPO2EVM's data using python

Part Number: AFE4490SPO2EVM

Hi team,

 I want to capture AFE44x0SPO2EVM's data in real time. Which library or custom commands needs to sent to EVM using python 3?

  • When I tried to run the "Sample Script.py" from this location `C:\Program Files (x86)\Texas Instruments\AFE44x0SPO2EVM GUI\Scripts` I am facing the following error:

  • Hello Aswath,

    Please follow the guidelines mentioned in the Python Scripting  - Automation document located in location "C:\Program Files (x86)\Texas Instruments\AFE44x0SPO2EVM GUI\Documentation"

  • Hi Praveen,

    When I tried to use "Launch Macro Window", I am getting the following issue: 

    Also where can we get the information regarding the registers shown in the AFEGUI?

  • Hi Aswath,

    This issue occurs when the required version of Python might not be installed. 

    Notifier timeout error 5000 occurs

    1. User might have installed 32bit Python v2.7 over 64bit Python v2.7.
    2. How the GUI works is that it checks for the system registry for 32bit Python v2.7 on initialization and uses this information to invoke the Python script upon calling(Clicking "Launch Script" Button in GUI.
    3. The system registry will not get updated when 32bit Python is installed over 64bit Python hence preventing the GUI from launching Python macro.

    Please try the below methods and try relaunching the Python Macro

    1. Install 32bit  Python v2.7
    2. Restart the GUI
    3. Completely uninstall the 32bit Python v2.7 and 64bit Python v2.7 and reinstall 32bit Python v2.7. (64bit Python v2.7 could still be installed in the PC in a different directory not C:\Python27)

    For the registers information, refer to the datasheet.

  • Hi Praveen,

     I have checked the type of python27 I have in my system. Its 64bit. 

    Checked for 32 bit version and the system doesn't have one. Also, specifically I want to capture the ppg data via python without the usage of AFE44X0GUI. A serial communication between python script and the AFE eval kit.

  • Hi Aswath,

    You will need to completely uninstall the 64bit Python v2.7 and reinstall 32bit Python v2.7. To install the 32bit Python v2.7, you could reinstall the GUI.

    • User might have installed 32bit Python v2.7 over 64bit Python v2.7.

    I got confused with this statement and installed 64 bit version. Thanks for clarifying. I installed the python2 32bit version and tried `Launch Macro Window` still I am facing the same issue. Checked the registry of the windows machine, python path is present.

  • Also, specifically I want to capture the ppg data via python without the usage of AFE44X0GUI. A serial communication between python script and the AFE eval kit.

    How can we do this ?