LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How should I code three booleans....How do I create a case loop or array for using the next available boolean to be used as an alarm for many different sensors?

if a sensor limit is reached, then a boolean indicator acts as an alarm, and if another sensor's limit is reached then the next available boolean's status is true, and so on.
0 Kudos
Message 1 of 2
(2,453 Views)
Hello,

I would recommend using a state machine to accomplish this. The basic state machine structure is a for loop inside a while loop, with a shift register on the while loop.

I created a small VI that demonstrates this behavior. I saved it for LabVIEW 7.0 ("3alarmExample.vi"), LabVIEW 6.1 ("3alarmExample61.vi") and LabVIEW 6.0 ("3alarmExample60.vi").

I hope this helps!

Sincerely,

Liz Fausak
Applications Engineer
National Instruments
Download All
Message 2 of 2
(2,453 Views)