LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indicate value out of limits

Solved!
Go to solution

I want to indicate if a numeric indicator value is out of limits, could someone give me suggestions or a link what common ways there are to show if a value is above an upper limit or below a lower limit.

Many thanks!     

0 Kudos
Message 1 of 22
(4,042 Views)

yes in range and coerce

 

from the comparison palete


Learning LabVIEW since January 2013
0 Kudos
Message 2 of 22
(4,041 Views)

In Range and Coerce more checks on limits rather than indicates, I think if you want to indicate this it might take property nodes and setting things to blinking or changing colours for background texts (what we usually do when our motor positions when they're moving, in an error state, or whatever else we've set up). Otherwise, use in range and coerce to drive a Boolean indicator would be the best bet.

0 Kudos
Message 3 of 22
(4,033 Views)

Something like this, for example.

 

indcolour.png

 

Edit - for those that don't read hex, that's (00)FF00 for in range, or green, and FF0000, or red, for out of range.

---
CLA
0 Kudos
Message 4 of 22
(4,006 Views)

Thanks for your reply, in my case, I'd like to use a System numeric indicator and found out that the BG color can't be set for a System numeric indicator, text color however can be set for a System numeric indicator.

 

I don't mind using an extra indicator to show that the value is above the high limit or below the low limit but I would like to indicate the 2 specific "out of range" cases and I was wondering if there is a common way of showing this. It is a general question, not specific to Labview but that happens to be the programming language i am using.

 

Many thanks for your suggestions so far.

 

0 Kudos
Message 5 of 22
(3,984 Views)

in that case use the smaler than and larger then operations. 


Learning LabVIEW since January 2013
0 Kudos
Message 6 of 22
(3,979 Views)

At least some of the Classic numeric indicators look (as far as I can tell) just like the System ones, but you can change their background color. IMHO, changing the background color is much more easily noticed than changing the text attributes.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 7 of 22
(3,977 Views)

Maybe it is my wording or you can read a lot faster than that you can process information.

 

I want to know what a common way is to INDICATE both when a value is below a certain low limit and when a value is above a certain high limit. Both cases I want to be indicated in different ways, that is: Not change BG color to red in either of these cases.

0 Kudos
Message 8 of 22
(3,966 Views)

I've given you a way of changing a property node based on a single comparison (in range and coerce) - you should be able to adapt from this and build a near-infinitely expandable set of properties to fit your needs.

 

For instance, here's a tristate comparison: in range = green (true case), not in range and over top limit = red, not in range and under top limit (i.e. under bottom limit) = blue.

 

indcolour2.png

---
CLA
0 Kudos
Message 9 of 22
(3,959 Views)

Hi **bleep**enhauser,

 

I think in each programming language you would use some constructs like

IF condition1 THEN
  output1
ELSE
  IF condition2 THEN
    output2
  ELSE
    output3
  ENDIF
ENDIF

 A different, but common construct looks like:

SELECT number
   CASE 0: xxx
   CASE 1: yyy
   CASE 2: zzz
   ...

 

Don't you think so?

 

Edit: I'm really sorry, but it seems the forum software doesn't like your nickname...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 22
(3,948 Views)