NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling python scripts on a network drive

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? 

0 Kudos
Message 1 of 5
(3,468 Views)

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. 

0 Kudos
Message 2 of 5
(3,408 Views)

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?

0 Kudos
Message 3 of 5
(3,383 Views)

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. 

0 Kudos
Message 4 of 5
(3,351 Views)

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. 

0 Kudos
Message 5 of 5
(3,328 Views)