LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i execute once

i build up small vi to check value from dll file and i want to play sound as it become 0

 

so as i press Run continuously the sound repeted and dosn't stop until i abort execution

 

 

now how can i force labview to play sound once as i in Run continuously mode

 

i'm waiting u r help

 

 

0 Kudos
Message 1 of 16
(4,163 Views)

Don't use run continuously...use a 'while loop' with a stop condition...

 

Search the LabVIEW Help for 'While Loop' for more information.

 

-B

0 Kudos
Message 2 of 16
(4,158 Views)
As noted, don't use Run Continuously. That mode is intended for debugging, not for normal operation. It's equivalent to you pressing the Run button all the time, so your VI starts from the beginning each time.
0 Kudos
Message 3 of 16
(4,138 Views)
I would think the name "Run continuously" would be enough of a clue to tell someone who wants to run something only once not to use that button.Smiley Surprised
0 Kudos
Message 4 of 16
(4,133 Views)

okay people i think i get your point

 

but still one question as i build this VI it's gonna to be excute once or continuosly ?????

0 Kudos
Message 5 of 16
(4,116 Views)
As noted, a while loop will do that. If you have not already done so, it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
0 Kudos
Message 6 of 16
(4,106 Views)

well a while loop will run untill you terminate it or it reaches the conditions you set

 

if you want to run it once and only once than you don't need a while loop, you could also use a while loop with an event structure 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 7 of 16
(4,089 Views)
You could also do something as trivial as this:
0 Kudos
Message 8 of 16
(4,082 Views)

smercurio_fc wrote:
You could also do something as trivial as this:

yea this is gonna to work if i run once but continously it will still repet and repet

0 Kudos
Message 9 of 16
(4,060 Views)

Harold Timmis wrote:

well a while loop will run untill you terminate it or it reaches the conditions you set

 

if you want to run it once and only once than you don't need a while loop, you could also use a while loop with an event structure 


i can't open your VI i use Labview v8.5  

0 Kudos
Message 10 of 16
(4,058 Views)