ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
06-25-2012 05:55 AM
06-25-2012 06:11 AM
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
Hth,
Wolfgang
06-25-2012 07:37 AM
oh ok i thought i was missing a simpler way to do it.. Thank you wolfgang!
06-25-2012 08:05 AM
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.