LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running two Python Coded simultaneously

Solved!
Go to solution

@cstorey wrote:

TL;DR the python code.  What happens in you just use a batch scripts and call both simultaneously?

 

Again, maybe some explanation of what you are trying to do, how things are connected, etc.. would help get to a solution.  Do both the scripts use the same bus?  (i.e. are they fighting for resources of GPIB/RS232 at teh same time?)  How are you physically connected to both?  Why not just do both calls in python if you are only using LabVIEW for a GUI?

 

 


They use different buses. One is connected by LAN and the other by RS232.  I tried your third suggestion but was instructed to keep separate since they might not have to run together every time.

0 Kudos
Message 11 of 12
(564 Views)

I would do it this way:
1-Select the Python Node then go to the edit/Create SubVI tab. I create a SubVI for each python node.
2- Open each of this SubVI and in the tab File/VI Properties/Category/Preferred Execution System/ (other 1 and other 2 for each one of the subvi)

 

Good luck

roy_ques_0-1602154160146.png

 

0 Kudos
Message 12 of 12
(446 Views)