NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand does not import Python libraries and functions every time the script is called

Hello all,

 

I am quite new to NI TestStand and I would appreciate it if someone could help me out with this issue I'm facing.

I am currently using NI TestStand 2020 for my project which requires me to load a Python script. My Python script has a few modules and functions that I am importing from other Python scripts (used in the format "from abcd import xyz"). However, I notice that TestStand loads all these modules only once when I first load the Python script, or, upon restart of TestStand. It does not import all the modules and functions separately every time the Python script is called from TestStand. To throw more context, I have different steps in a TestStand sequence where I am calling the same Python script. I would like TestStand to import all the Python modules and functions in each step and in every loop (if the same test is performed repeatedly).

Since I am using a newer version of TestStand, I am calling the Python script using the inbuilt Python Adapter.

 

Thanks.

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