LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in vertical slide control? (LV 7)

Try this: Create a vertical slide control with text labels (say 5 values). Uncheck 'sequential values'. Change the values to some higher numbers (say 100-104). Create a numeric indicator and wire it to the slide.

Now the fun part: The indicator will read '0' until you move the slide the first time. After that, it will read the value assigned for that text label.

This problem cost me 2 days trying to determine why a code that had worked for 2 years wouldn't run on a new machine. The slider controls in it were passing the wrong values to the DLL calls. Is it a bug or just the way it has to work?
0 Kudos
Message 1 of 5
(2,915 Views)
This is how it is supposed to work. The value isn't changed when you change your scale on the slider. In this case the slider cannot show you a good indication that the value is off of the scale. If the digital display is shown, you can see that the value of the control will be "<0>" indicating that the value is 0 and it is not a "legal" value on the scale.
0 Kudos
Message 2 of 5
(2,915 Views)
In addition;

If you want the value trunckated, you also have to set the data range.

Regards,

Wiebe.


"jpeters" wrote in message
news:506500000005000000D0BA0100-1079395200000@exchange.ni.com...
> This is how it is supposed to work. The value isn't changed when you
> change your scale on the slider. In this case the slider cannot show
> you a good indication that the value is off of the scale. If the
> digital display is shown, you can see that the value of the control
> will be "<0>" indicating that the value is 0 and it is not a "legal"
> value on the scale.
0 Kudos
Message 3 of 5
(2,915 Views)
I observed that behavior with the <0> on the digital display. However, I can't think of a reason why I wouldn't want the value to update if I change the scale.
0 Kudos
Message 4 of 5
(2,915 Views)
This way, you have a choice, if was done automatically, you whouldn't have
that choise.

Regards,

Wiebe.


"AeroSC" wrote in message
news:50650000000500000049BB0100-1079395200000@exchange.ni.com...
> I observed that behavior with the <0> on the digital display. However,
> I can't think of a reason why I wouldn't want the value to update if I
> change the scale.
0 Kudos
Message 5 of 5
(2,915 Views)