LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with function enforce range

Hi,

i just want to use the function above to check my slider control if the
value is inside the selected range. I need that cause i can change the
minimum and maximum with another control. When i use the function i wire
all needed data to the terminals and receive also a result. But it's not
the same, also when the value was inside the range. After any updates i
get differences <0.2.
Here an simple example:

1) before: -20 0 30
after: -10 0.06 40

2) before: -10 0.06 40
after: 0 0.03 50

And when i want's to select 0 again, it changes back automatic to 0.08!?
What happens and where can I prevent this behavior? Or occurs it by
changing the range?

Regards
Henrik
0 Kudos
Message 1 of 5
(3,149 Views)
My question is: which function ?
I cannot find such a function in lv6 !
greetings from the Netherlands
0 Kudos
Message 2 of 5
(3,149 Views)
Ok, it's not that function!
I set the Range from the actual value of a slider. If I type the value
in the digital box, all is ok. But when i take the slider and move it,
the described differences occur? Did somebody know that problem?

Henrik



Henrik Skupin schrieb:
>
> Hi,
>
> i just want to use the function above to check my slider control if the
> value is inside the selected range. I need that cause i can change the
> minimum and maximum with another control. When i use the function i wire
> all needed data to the terminals and receive also a result. But it's not
> the same, also when the value was inside the range. After any updates i
> get differences <0.2.
> Here an simple example:
>
> 1) before: -20 0 30
> after: -10 0.06 40
>

> 2) before: -10 0.06 40
> after: 0 0.03 50
>
> And when i want's to select 0 again, it changes back automatic to 0.08!?
> What happens and where can I prevent this behavior? Or occurs it by
> changing the range?
>
> Regards
> Henrik
0 Kudos
Message 3 of 5
(3,149 Views)
I think it is because when you manipulate the slider, there is
discretization of values introduded by the integer number of pixels on which
you can drop the slider.

Jean-Pierre Drolet
Scientech R&D


"Henrik Skupin" a écrit dans le message news:
3AA7A9E0.11FF0649@web.de...
> Ok, it's not that function!
> I set the Range from the actual value of a slider. If I type the value
> in the digital box, all is ok. But when i take the slider and move it,
> the described differences occur? Did somebody know that problem?
>
> Henrik
>
>
>
> Henrik Skupin schrieb:
> >
> > Hi,
> >
> > i just want to use the function above to check my slider control if the
> > value is inside the selected range. I need that cause i can change the
> > minimum and m
aximum with another control. When i use the function i wire
> > all needed data to the terminals and receive also a result. But it's not
> > the same, also when the value was inside the range. After any updates i
> > get differences <0.2.
> > Here an simple example:
> >
> > 1) before: -20 0 30
> > after: -10 0.06 40
> >
> > 2) before: -10 0.06 40
> > after: 0 0.03 50
> >
> > And when i want's to select 0 again, it changes back automatic to 0.08!?
> > What happens and where can I prevent this behavior? Or occurs it by
> > changing the range?
> >
> > Regards
> > Henrik
0 Kudos
Message 4 of 5
(3,149 Views)
That i also considered. But why the digital indicator shows the right
value? I use the value for the different calculations and perhaps there
should be no differences. Further why does the value of the target
slider also changes even if it isn't outside the range?

Henrik
0 Kudos
Message 5 of 5
(3,149 Views)