LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increment/Decrement buttons

Solved!
Go to solution

Hello.

 

I have a question here.

How can I use a single Increment/Decrement buttons to control multiple numeric controls? 

I may use different cases to define which particular numeric control is under controlled. Each numeric control has its private pair. Can I use a single pair to control multiple?

 

Thanks for help!

 

 

0 Kudos
Message 1 of 6
(4,330 Views)
Solution
Accepted by phyyu

You can use boolean buttons as the increment and decrement buttons for a group of numerics.  Then use (carefully) local variables to update all the numerics.  I say carefully because depending on how and when you read the numerics in your code, you may read in the middle of updating the values and read some that have been incremented/decremented and some that are still the previous value.

0 Kudos
Message 2 of 6
(4,324 Views)

Thank you!  I was thinking use the value property node, but the local variables are much better.

 

Actually, I were trying to make an alarm system, the user could setup the time and alarming when the setting time is arrived (could be daily or single time in a specific day),similar like the alarm app on the phone.  The VIs in Timing palette look like don't have one work in this way. Any good suggestion?

 

Thanks again!

0 Kudos
Message 3 of 6
(4,317 Views)

More specifically,how could we setup a certain time spot to compare with the current time?

0 Kudos
Message 4 of 6
(4,307 Views)

I figured out myself Smiley Tongue

use timestamp const (could setup a time spot) and compare with current time, just like the number..

 

Thanks anyway.

 

 

0 Kudos
Message 5 of 6
(4,304 Views)

Are the operators allowed to type numeric values into any of the controls?  If so, do all the other controls need to change at the same time?

 

If you will only be using increment/decrement and never direct data entry, you can change your numeric controls to indicators and get rid fo the local variables.

 

Lynn

0 Kudos
Message 6 of 6
(4,266 Views)