SLAU858A november 2021 – june 2023
The AFE881H1EVM software provides a scripting tool to automate register reads and writes for reuse. To use the scripting tool, the Python™ programming environment must be installed. Download the latest x86 version of Python 2.7 at https://www.python.org/downloads/. To launch the scripting tool, click Script > Launch Window, as shown in Figure 4-7.
The scripting tool launches a Python IDLE window. This window lists any register interaction when recording a macro. To record a macro, find the Launch Window function in the Scripting tab. Figure 4-8 shows the scripting tool recording a macro. After the actions are recorded, use the Stop button to end the script. This script can be saved and reused as desired.
If the python IDLE window does not appear, check the settings for application execution aliases. To do so, open the Windows Settings, and then select Apps. In the resulting Apps window, select Apps & features, and then click on the Manage app execution aliases link. The next page loads a list of apps. Deselect both application installers for python.exe and python3.exe. Figure 4-9 shows the windows settings for managing application execution aliases.