LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating variable increments for numeric control

Solved!
Go to solution

Hello,

 

I have a numeric control, in which I would like to be able to change the increment value at any time. I know that you can set the increments in Data Entry but for my VI, the increments will be need to be changed situationally. I would prefer if there was a way I could input the increments for the numeric control (and display what the increments are) without having to change it in Data Entry every time. I'm sure there's a simple way to do this but I'm a bit stuck. 

 

Thank you! 

0 Kudos
Message 1 of 7
(1,565 Views)

Create a property node for the control and set the increment programmatically. 



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 7
(1,544 Views)

Do you mind being more specific? I tried using Property Node > Data Entry Limits > Increment but when I run the program, the control still only goes by the increments that are set in Data Entry. Sorry if I sound repetitive but I'm not too familiar with property nodes. 

0 Kudos
Message 3 of 7
(1,484 Views)

Most likely, you haven't yet configured the response to a non-incremental value. Add a property node for the Response to Value Outside Limits > Increment, and you can set that programmatically as well if needed (using the Detailed Help for that property to set the desired response).

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 4 of 7
(1,479 Views)

I tried it, and I am running into the same issue as before. I'll attach my VI so someone can see if there's something odd going on. The part with the property node is toward the bottom. 

0 Kudos
Message 5 of 7
(1,472 Views)
Solution
Accepted by topic author tjhanks

I haven't taken a look at your VI, but you should just be able to set the Data Entry Limit > Increment property of the numeric control at run-time. See the attached VI. Remember to set the increment to "Coerce to xxx" in stead of "Ignore".

Message 6 of 7
(1,454 Views)

I tried this and it worked wonderfully. Thanks everyone for the help!

0 Kudos
Message 7 of 7
(1,432 Views)