LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with "In Range and Coerce" Vi

Solved!
Go to solution

 

I am trying to use, in range and coerce vi to determine if the measured time  was 10 ms within the range. The VI work fine except when the lower limit equal the measure time.  or when the measured time equal the upper limit. 
How do you include the lower limit and upper limit ? 
 

I am trying to use, in range and coerce vi to determine if the measured time  was 10 ms within the range. The VI work fine except when the lower limit equal the measure time.  or when the measured time equal the upper limit. 
How do you include the lower limit and upper limit ?  

 

0 Kudos
Message 1 of 13
(5,368 Views)

right clink on the node and select to include the lower/upper limit


Paul
0 Kudos
Message 2 of 13
(5,366 Views)

This is, of course, explained in the LabVIEW Help for that function. Did you read it?

0 Kudos
Message 3 of 13
(5,353 Views)

While Paul's suggestion above is a good one, you are probably not quite there yet.

 

Because of the inherent limits of the internal DBL representation, you might still get some unexpected results.

 

Where is the data coming from?

0 Kudos
Message 4 of 13
(5,350 Views)

 


@smercurio_fc wrote:

This is, of course, explained in the LabVIEW Help for that function. Did you read it?


 

read help?  who does that? Smiley Wink

 

More to the point.  there are a lot of configuration items that are accessible through the right click context menus.


Paul
0 Kudos
Message 5 of 13
(5,349 Views)

 


@altenbach wrote:

While Paul's suggestion above is a good one, you are probably not quite there yet.

 

Because of the inherent limits of the internal DBL representation, you might still get some unexpected results.

 

Where is the data coming from?


 

To Altenback's point.  Typically when I use this function I will round the number up or down to the next increment of the precision I have the indicator.

For example.  Lower limit of 4.2, actual measurement 4.19998765.  This fails, but when looking at the results in an indicator, typically you would see 4.2 and not understand why it is failing.  So when the function returns a fail AND my indicator is set to show two decimal places, I will round the result down to 4.19 so it is obvious.  But when storing the date to file or a database, I write the full 4.19998765


Paul
0 Kudos
Message 6 of 13
(5,342 Views)