NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Python ni_teststand_helper import issues

Solved!
Go to solution

Hi all,

 

I installed the Python Step Types plug-in for the TestStand 2017 dev application. I followed the steps in the NIPythonStepType.pdf and proceeded to load up the Computer Motherboard Test Sequence.seq file from the Examples' Python folder.  Running that triggered an error: "

 

 

0 Kudos
Message 1 of 3
(3,621 Views)

Adding another screenshot.  This is of the Initialize Computer Test step in the Computer Motherboard Test Sequence example file. There's an exclamation mark saying that the ni_teststand_helper module isn't found.  Per the NIPythonStepType.pdf documentation, the

option for adding the Python path to the environment variables during installation needs to be checked.  I checked with the path variables and Python 2.7 is in the path. (we're going to migrate to the latest sometime this year).  All teststand related variables all have the correct path info. Is there a specific path I need to look at for this python+TestStand interaction to work properly?

 

 

0 Kudos
Message 2 of 3
(2,224 Views)
Solution
Accepted by topic author ChevyVolt1

After some figuring out, I have the solution.  It's simple that I am smacking myself in the head for not checking this step first. The Python Computer Motherboard Test Sequence did not come with a ReadMe doc. The python example script imports from ni_teststand_helper.py which is located elsewhere -- specifically here: %teststandpublic%\Components\StepTypes\NIPython\.  The solution was to add that path to the Configure -> Search Directories.

 

The errors I was getting no longer appear. I have a different error that I'm looking into, but the conclusion is now: "Test Failed" rather than a "Test Sequence Error" containing a "Error executing substep 'Post'" detail message.

 

Marking this as the solution for others who may run into this.

Message 3 of 3
(2,209 Views)