LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating many events for a dial control

Solved!
Go to solution

I want to fire events when the value of dial control increases to say 10, 20,30 so on. But I can only have one event per control. Is it possible to achieve this

 

Kind Regards

Austin

0 Kudos
Message 1 of 5
(2,729 Views)

Is your dial an integer datatype with increment of ten or a Double with arbitrarily fine increment?  It can make a big difference.

 

You could have a value changed event for the dial and only send the value out if it is near or on one of the specified levels.  Depends on whaty you are really trying to do.

 

Lynn

0 Kudos
Message 2 of 5
(2,724 Views)

Thats exactly what I want to do. Generating events when value is 10, 20, 30, and 40 and I have text labels checked for this dial.

Kind Regards

Austin

0 Kudos
Message 3 of 5
(2,720 Views)

Austin,

 

You did not actually ask a question so I am not sure what you want.

 

What is the data type or numerical representation of your dial?  If it is integer, just set the increment to 10 in Properties.  Then any value changed event will have a new value at the correct intervals.

 

Do you not understand how to set the properties of a control? How are you sending the data out of the event structure?  What are you doin gwith the data?

 

Lynn

0 Kudos
Message 4 of 5
(2,709 Views)
Solution
Accepted by topic author K.Waris

Austin,

 

If I'm interpreting your request correctly I think your best bet is to just use the value changed event and then use a case structure to determine which value the dial has changed to.

 

Something like this:

 

Value Events on a Dial.png

 

Hope this helps.

 

Regards,

 

Simon

Message 5 of 5
(2,707 Views)