LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want pause function like the button near abort excution.

Hi...........................
1) Is there pause function to whole vi like the button near abort excution, of course it has condition to become TRUE or FALSE ?
 
2) I want when the numeric indicator becoms constant in next iteratins in while loop (not increase or decrease) the condition will be TRUE (e.g. the LED will be ON), how to do this?
 Just to explain the purpose : because I connected the volt that coming from load cell on scale (that carry cement then discharge it) to this numeric indicator in the program and if this numeric indicator becomes constant in next iterations that means the scale probably stuck so I must send signal to open the vibrator of the scale.
0 Kudos
Message 1 of 6
(3,117 Views)
1) Easiest would be to implement your program as a state machine. If "pause" is pressed, execute an idle case, doing nothing. In the simplest case, you could just use a inner wait loop as in the attached example.
 
2) Just use a shift register and compare the current value with the value from the previous iteration.
 
The attached VI (LabVIEW 7.0) demonstrates a simple wait loop and the use of a shift register to monitor changes. See if this is clear. 😄

Message Edited by altenbach on 11-23-2005 04:57 PM

0 Kudos
Message 2 of 6
(3,113 Views)
Thank you altenbach ..............................
 
Also, can you put a message appear to the user to notify him that he in PAUSE situation (without any buttons).
0 Kudos
Message 3 of 6
(3,100 Views)
Yes.
 
What kind of message do you want (popup window, string indicator, beep, ...)?
 
The attached VI uses a string indicator.
0 Kudos
Message 4 of 6
(3,092 Views)

Hi altenbach ................

I want it as popup window, without any buttons or sounds, just appear when the puase becomes TRUE and disappeare when it becomes FALSE.

Thanks for helpong every time.

0 Kudos
Message 5 of 6
(3,086 Views)

Hi Rammo,

In regards to your second question about testing to see if a numeric value has stopped increasing or decreasing, you might check out this thread on the discussion forum. It has a nice example you should check out. Hope this helps!

Jarrod S.
National Instruments
0 Kudos
Message 6 of 6
(3,052 Views)