01-31-2023 10:04 PM
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?
Solved! Go to Solution.
02-02-2023 09:59 AM
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
02-02-2023 08:30 PM
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.
01-02-2025 09:56 AM
It is 2 years later and I have the exact same issue with changing python code modules and re-running teststand 2023 Q4 64 bit. The use of the file>unload all modules does seem to force the reload of the python module the question remains as to why the "Reload Module and Prototype" button fails to work. I have spent hours and hours figuring out that it seems not to work. Why not just remove it? Then, make the unload modules function run automatically, every time? IS there something I don't get? Am I setting up my python module incorrectly?
01-02-2025 10:04 AM
Allow me to also add....
When you change the python module to add a new function and save it, then add a TestStand step that references the new code, TestStand pick up the new methods to be used in the step. It is when you execute that sequence that it will say that there is no reference to that method in the class. It is like it knows it is there for editing but not for execution.