LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

in range and coerced problem

Solved!
Go to solution

Good day,

 

I'm using labview 2009 and I have a problem using in range and coerced VI. The problem is that I want to map one analog value that goes from 0 to 12 to a scale of 0 to 20 and the VI in range and coerced but this VI is ignoring the numbers after the point. I already set the diferent values for the lower and higher limits but it keeps happening.

 

I posted my VI so you can see the trouble I'm having.

 

Best regards.

Esteban Gonzalez

 

P.D. The error is easy to see when the numeric indicator with the label "Current" have a value of 9.

0 Kudos
Message 1 of 3
(2,225 Views)
Solution
Accepted by esteban.marro

First of all, you probably would need much less code, maybe the size of a postage stamp. 😉 (hint: threshold array)

 

You have overlapping conditions, for example between 11 and 11.1, two LED will be lit.

You have gaps where it fails right between two LEDs.

 

 

 

Message 2 of 3
(2,220 Views)

Thanks for the hint! Very usefull

0 Kudos
Message 3 of 3
(2,209 Views)