LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting an ALERT for out of range limits in a variable

I am looking for a function that will allow me to do the following:

I have 3 variables each with their own range of limits for normal operation.
variable 1 has to be between 97 - 100
variable 2 has to be >70
variable 3 has to be between 60 - 85

If any of the variable goes out of their respective range, an alert should be displayed on the screen.
Any suggestions.
Thanks
0 Kudos
Message 1 of 9
(3,829 Views)
Use an In Range and Coerce function from the comparison palette for each variable and OR the outputs together.

Lynn
0 Kudos
Message 2 of 9
(3,826 Views)
Thanks for your response.
Is the feature available in Version 7.0?? I could not find it.
0 Kudos
Message 3 of 9
(3,817 Views)
Oooooooooooooops, Sorry for the previous message.
I got it. Thanks for the help.
0 Kudos
Message 4 of 9
(3,815 Views)
Hey Lynn
Thanks again for your help. I have attached my VI in the message. I am having a small gliche though.
I want the LED to light up when the the value coming out of the "In Range and Coercion" is 0 and not 1.
Any suggestions.
0 Kudos
Message 5 of 9
(3,813 Views)
Hey Lynn,
Never mind. I fixed it using the NOT gate.
Sorry for clogging your inbox as well as the forum.
Thanks alot for your help.
0 Kudos
Message 6 of 9
(3,810 Views)
Hey Lynn
I am so so so sorry for sending so so many messages at a go.
I thought I fixed it but I works weirdly with different values. Could you please have a look at my VI.
Sorry and Thanks.
0 Kudos
Message 7 of 9
(3,807 Views)
You attached a 0 byte file but if the last example is like the first one, you have the inputs swapped. For example, you have 55 wired to the upper limit and 84 wired to the lower limit. Simply looking at the tool tip or having context help on would have helped. You might also look at whether you want the upper limit included. The default is not. The little black square at the input indicates whether it is or not. If you want 84 to be a valid input, you need to right click the function and select Inlcude Upper Limit. Conversley, if you want 55 to not be inlcuded, you would have to right click and deselect Include Lower Limit.
0 Kudos
Message 8 of 9
(3,803 Views)
Thanks Dennis.
I ended up using Greater Than and Lesseer than functions instead. But I will modify the previous one to suit the needs.
Thanks for your input.
0 Kudos
Message 9 of 9
(3,799 Views)