[python-win32] Python-win32 Digest, Vol 27, Issue 34

Tony C cappy2112 at gmail.com
Tue Jun 28 18:49:13 CEST 2005


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 <http://p2.vi/>")
vi2.Run()

thr = thread.start_new_thread(start, ())

vi1 = lv.GetVIReference("p1.vi <http://p1.vi/>")
vi1.Run()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20050628/237b3d84/attachment.htm


More information about the Python-win32 mailing list