Python and NI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why Does Python Script Run Before I Execute The Python Step In TestStand

Hi There,

 

I am confused by the way the Python Steps are behaving in TestStand. I have a module called example.py that imports some library's and defines a function to be called inside teststand. However what I notice is that teststand is for some reason decideing to call the script before I run the sequence file. This then causes my script to work totally differently to how it would work when I call it from a different IDE such as PyCharm.

 

Can anyone explain this behavior and does anyone know how to use these steps correctly so I can run a module that contains a function from TestStand?

 

I also notice that I need to close teststand and reopen it if I make any changes to the scripts. This is really annoying but maybe something I am doing wrong or misunderstanding? 

 

Thanks

0 Kudos
Message 1 of 1
(1,501 Views)