LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically change numeric control increment

Hi! I need to programmatically change the increment to a numeric control.
How would I do this in LV6.02? I tried using custom controls (arrows) and an
indicator and adding/subtracting the increment (separate control) to the
value. This works ok but my loop runs at 250ms so it updates real slow. Any
ideas?

As far as I know LV5 never had the facility but does LV6?

Leon
0 Kudos
Message 1 of 6
(4,755 Views)
Have you tried using an invisible (transparant) control on top of the corresponding indicator?
Takes less time to draw so your UI-loop can be made more quickly.
Or what about a mechanism for detecting that you pressed the up/down button to make the increase-decrease value bigger?
0 Kudos
Message 2 of 6
(4,755 Views)
I've used 2 boolean controls (up/down). When either is clicked, the
increment (standalone numeric control) is added/subtracted to the value, the
result of which is displayed on a numeric indicator placed beside the
up/down arrows (makes it look like its an ordinary numeric control). The
problem is the booleans are read only once every 250ms, causing the
increment to take place at 4 times a second. If, however, it was a standard
numeric control, I could change value regardless of loop time (even though
it would be read only when the loop executed).

I will try your suggestion. If the control is invisible, will I be able to
access the arrows? Thanks.

Leon

"PdB_Serenity_nl" wrote in message
news:5065000000050000003B590000-1007855737000@exchange.ni.
com...
> Have you tried using an invisible (transparant) control on top of the
> corresponding indicator?
> Takes less time to draw so your UI-loop can be made more quickly.
> Or what about a mechanism for detecting that you pressed the up/down
> button to make the increase-decrease value bigger?
0 Kudos
Message 3 of 6
(4,755 Views)
.
Use the property "Data Range.Increment" to set the control increment when using the arrows.


LabVIEW, C'est LabVIEW

Message 4 of 6
(4,755 Views)
....


> As far as I know LV5 never had the facility but does LV6?
>

LV 6 numerics allow you to change the increment amount, the minimum and
maximum allowable values, and the action to take on values that are out
of range. All of these are set via the attribute node.

Greg McKaskle
0 Kudos
Message 5 of 6
(4,755 Views)
Thanks very much. I will try.
"Greg McKaskle" wrote in message
news:3C479482.9060009@austin.rr.com...
> ...
>
>
> > As far as I know LV5 never had the facility but does LV6?
> >
>
> LV 6 numerics allow you to change the increment amount, the minimum and
> maximum allowable values, and the action to take on values that are out
> of range. All of these are set via the attribute node.
>
> Greg McKaskle
>
0 Kudos
Message 6 of 6
(4,755 Views)