LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control value change

How can I get a boolean signal that tells me when a control value has changed? .. I have a few case structures and would like them to operate when their control changes value, there a lots of different types of control, and I do't want to use the event structure.

0 Kudos
Message 1 of 4
(2,536 Views)

The attached VI will alert you (via boolean) when a U32 changes. Just change the datatype in the VI to match your datatype.

 

edit: I just re-read your post. If you have lots of control types, try the Data Changed VI from Open G. It is polymorphic (wire any data type to it and it adapts).

Personally, I use these VI's for only a few datatypes, so I have a small collection I've made -- U32, DBL, String.

Richard






0 Kudos
Message 2 of 4
(2,528 Views)

An Event Structure is what you should use to operate when a control's value changes.  Why don't you want to?

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 4
(2,513 Views)

Yes, use an Event Structure.  See attached VI.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(2,505 Views)