LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to run VI in new thread

How can I run my labVIEW VI in a new thread without having to restart LabVIEW every time before I run?
0 Kudos
Message 1 of 5
(3,468 Views)
I am not sure what you are trying to accomplish, but if you go to VI Properties >> Execution >> Preferred Execution System, you have several options. I think this is also available through a property node.

Lynn
0 Kudos
Message 2 of 5
(3,460 Views)
You can also load the VI through the VI Server. Since the data flow is avoided, and the VI is essentially loaded as external code, it gets it's own thread as far as I know.

When doing this, setting the Property "Wait until finished" to false is quite useful too.

Hope this helps.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 5
(3,451 Views)
Thanks - I am going to try this now. I have a library of VIs that interface to a 3rd party DLL through an ActiveX DLL. When I try to run their disconnect function, and then try to re-connect - it returns the error (A handle is already open for this thread)...
0 Kudos
Message 4 of 5
(3,428 Views)
Ah, this sounds very different.

I would hazard a guess that the problem is with the DLL.

Normally LabVIEW doesn't return such errors. At least I've never come across it.....

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 5 of 5
(3,421 Views)