01-26-2021 02:42 AM
Hi
In my Teststand sequences I am calling python modules that are located on a network drive, that I have mounted on my Windows 10 computer. When I select the step with the python module and press the "Module" tab, where you selected the path of the python script and the name of the function to call, Teststand freezes up and gets extremely slow. Everything works fine when the python script is located locally on the C drive on my Windows computer.
Anyone have an idea what is causing this? Are there any settings that can prevent Teststand freezing up?
01-27-2021 08:58 AM
What method do you use to call Python script? Is it a LV? If yes, then which version do you use? I found that there is an error in calling Python script located on network drive.
01-29-2021 01:14 AM
Hi
Thank you for your reply. I use the built in Python-adapter in Teststand 2019 when I call my Python script/function. It seems like Teststand is checking for changes in the *.py files every time I select the step and look at the "Module" tab, when the file is on the network drive Teststand freezes/gets very slow during this process.
Is there a way to turn off this constant scanning of the file?
02-02-2021 07:14 AM
I think there should not be the "scanning". BTW, have you followed this instructions while executing your script? If not, I suggest to do so.
Also, I'll check again and keep you updated.
02-03-2021 01:26 AM
Hi
I have the same exact parameters for the step I just copy the *.py files to a network drive and change the path, then Teststand get really slow when trying to edit/look at the module tab for the step. There is no problem running the python code from the command line on the network drive.
My python files have quite a lot of libraries that is being used (and maybe also checked/loaded by Teststand?).
There is definitely some automatic checking/scanning of the python files by Teststand. If you have a syntax error in your file the Python-adapter discovers this and reports it under the module tab for the python step. So the question is if it is possible to turn off this check so that Teststand is not constantly reading/checking this file, which seems to be very slow over the network.