I would think a better approach would be to instantiate multiple instances like this.
Have you tried something like this?
lv1 = win32com.client.Dispatch("LabVIEW.Application")
lv2 = win32com.client.Dispatch("LabVIEW.Application")
hi,
anybody has called two VIs in parallel??
somehow like this:
******************************
***********
import win32com.client
import thread
lv = win32com.client.Dispatch("LabVIEW.Application")
def start():
vi2 = lv.GetVIReference("p2.vi")
vi2.Run()
thr = thread.start_new_thread(start, ())
vi1 = lv.GetVIReference("p1.vi")
vi1.Run()
import win32com.client
import thread
lv = win32com.client.Dispatch("LabVIEW.Application")
def start():
vi2 = lv.GetVIReference("p2.vi")
vi2.Run()
thr = thread.start_new_thread(start, ())
vi1 = lv.GetVIReference("p1.vi")
vi1.Run()
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32