LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stopping event structure using local variables

Hello all,

I am having trouble getting an event structure to register a value change when i write the new value to a local variable or property node.
I am waiting on a condition to stop my loop. Once the condition is met, I would like to stop my loop by writing a True value to my Stop button local variable, or alternatively, stop it by using the Stop button.
I have attached a simple vi to demonstrate what I mean.

any help would be appreciated. thanks!
0 Kudos
Message 1 of 5
(2,963 Views)
You can try the value signalling property. I changed your VI to reflect this.
Message 2 of 5
(2,963 Views)
Thanks!
0 Kudos
Message 3 of 5
(2,963 Views)
Maybe I'm missing the point here, but why do you need to trigger the stop button at all? Isn't it sufficient to stop the loop from the timeout event as in the attached modification?
0 Kudos
Message 4 of 5
(2,963 Views)
Hi altenbach, thanks for your response.

The purpose of the example was to demonstrate the problem of not being able to register a 'value change' using the local variable. The stop event was used as an example.
0 Kudos
Message 5 of 5
(2,963 Views)