ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

increment or decrement arrow clicked on the numeric control?

Solved!
Go to solution

is there a way to tell which arrow has been clicked by the user?

 

thanks

0 Kudos
Message 1 of 4
(3,319 Views)
Solution
Accepted by topic author sinnas

Only indirectly:

 

1) Read the value of the control

2) If the event EVENT_VAL_CHANGED occurred, read the value of the control again

3) The new value should be old_value +/- increment_value; from this change it is possible to derive the sign of the increment, i.e. positive or negative; this you can translate to up or down Smiley Happy

 

Hth,

Wolfgang

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

oh ok i thought i was missing a simpler way to do it.. Thank you wolfgang!

0 Kudos
Message 3 of 4
(3,310 Views)

You're welcome.

 

Note however that the sketch of this indirect method is simplified because it may happen that an event EVENT_VAL_CHANGED is triggered while the numeric value has not changed at all! Hence you might consider supporting my suggestion for an improved behaviour of this event here.

0 Kudos
Message 4 of 4
(3,304 Views)