LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous running VIs

Hi All
I don't want to run my VIs continuously as it consumes CPU cycles.
I want that a particular VI from a list of VIs should run in response to an
external event ( the event has info of which VI to run) may be data at TCP
port or some windows event. After doing its work the VI should stop running.
Also I want to send the data from labview to exetrnal program using
sockets/TCP in the same cycle.

Any insights
Regards
Pardeep


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 2/12/03
0 Kudos
Message 1 of 2
(2,694 Views)
Your requirements are contradictory. If a program is not running, there's no way for it to monitor anything. Putting a small delay inside of a while loop usually solves the problem of a VI using too many of a pc's resources. Try this test. Create a shile loop and just a stop button and look at CPU usage when it's running. Then put a Wait (ms) function inside the loop and use a small number like 5 for the input. The difference in CPU usage should be huge.
0 Kudos
Message 2 of 2
(2,694 Views)