NI TestStand

Showing results for 
Search instead for 
Did you mean: 

TestStand call python function, change some strings in python function, but TestStand's result is the old string, not update

Go to solution

Have a python function, be called by TestStand, and change the string in the python, run the TestStand, but TestStand's result is the old string, not update the new string.

Except close the TestStand software and restart it, the result will update to the new string.

Is there any other way to update changes in python functions in real time?

0 Kudos
Message 1 of 3
Accepted by topic author Jmknode77

Any changes to the python file require TestStand to reload it. Typically, you can force it to unload by selecting File -> Unload all modules or use the Reload module option in Step Settings




Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3

Thank you for your reply.

By selecting [File -> Unload all modules] this method is solved this problem.



The method in the picture you replied has also been tried, but the new string has not been updated, this method may not work.

0 Kudos
Message 3 of 3