03-09-2023
07:47 PM
- last edited on
10-25-2024
02:20 PM
by
Content Cleaner
I'm trying to run Python scripts using TestStand 2016 32-bit.
I installed the "Python Step Types for TestStand". I now have Python steps available. I added a Python step to a sequence and opened the "Configure Python Step" window. The Version drop down box has a warning indicator, and the drop down menu is empty.
I've installed Python 3.6.3 32-bit from python.org and CPython using "pip install cPython" in the command window. I closed TestStand and restarted my PC after all the installs and still can't select a Python version.
In the webpage "Python Adapter - NI"(https://www.ni.com/docs/en-US/bundle/teststand/page/python-adapter.html) there is a note that reads, "During installation of the CPython interpreter, you must enable the option for adding the Python path to the environment variables." I didn't do this, and I'm thinking that might be the cause of my problem. If it is, I don't know what the solution is.
Any help with getting Python set up in TestStand 2016 32-bit is appreciated.
Solved! Go to Solution.
03-10-2023
07:08 AM
- last edited on
10-25-2024
02:20 PM
by
Content Cleaner
I figured it out. I added a Python step to the Steps pane and selected the step. In the Variables pane, I expanded the Step variable. Python steps have a string type attribute "Python Version." I entered 3.6, and the Version drop down menu in the Python Step Configuration was populated with "3.6." I then made this permanent by adding the value as a custom step type (https://www.ni.com/en/support/documentation/supplemental/08/teststand-custom-step-type-development-b...).