LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How could I do a thread with Labview?

I'm doing a VI with inside a calling to a SubVI. How could the Top-level VI works meanwhile the subVI is working? The top-level VI has to work like a thread because it takes measures from the serial port calling a C DLL, so when I call the SubVI it has to take measures continuously (the VI shows a graph of the measures).

Thanks in advice

Davide
0 Kudos
Message 1 of 3
(2,617 Views)
If you go to the VI Properties, under the Execution menu selection there is a pop-up for setting the Preferred Execution System. This is as close as you can specifying a thread in LV.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,617 Views)
You have to call the subVI dynamically - assigning the subVI to a different thread won't help. Basically, you use Open VI Reference, the property Front Panel.Open, and then the method Run VI and set Wait until done to false. There have been numerous discussions on the subject and examples posted. Do a search for dynamic calls and browse through what you find.
0 Kudos
Message 3 of 3
(2,617 Views)