LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a latch with an LED indicator control

Solved!
Go to solution

Hi Guys,

 

Labview newbie here and am trying to build a Labview simulation of a basic sensor. Here is the question I can't seem to figure out.

 

Basically I have one input - a on/off switch. When the switch is on, it will simulate a crucial event where the user must pay attention to it. This will light up an LED for this event. When the system is off, the system is running fine and there is an led indicator for that also. For the crucial event, I want the LED to stay on until the user sees it and acknowledges it --> he or she can acknowledge the event until he/she clicks on the LED which will turn it off. This LED will stay on even if the on/off switch is in the off state because I want the user to see that the crucial event actually occured. 

 

I have this so far (really basic):


I want the bottom LED to stay on until it is acknowleded!

 

Any insights on this would help! Thanks!

0 Kudos
Message 1 of 12
(6,326 Views)
Solution
Accepted by topic author M3GAPL3X

You would use a shift register for the historic status, e.g. as follows (LabVIEW 8.5):

 

Message Edited by altenbach on 11-01-2008 11:21 AM
Download All
Message 2 of 12
(6,321 Views)
Thanks altenback! I'll definately give this a true and understand the logic behind it! Robot Happy
0 Kudos
Message 3 of 12
(6,306 Views)

Hi altenback,

 

Just wondering, what is the purpose of that timer to wait 100 ms?

0 Kudos
Message 4 of 12
(6,252 Views)

A loop that just services user interactions, does not need to spin millions of times per second, consuming 100% of the CPU. It is sufficient to spin it maybe 10x per second, which drops the CPU usage to 0.001%. A big difference, especially if you have many other things running on the computer.

 

 

 

Message 5 of 12
(6,249 Views)

Thanks for the explanation. Can you please give me a brief explanation of the shift register connecting to the output of the select switch? From what I am reading, the switch statement either returns an on or off depending on the reset switch.

 

Thanks in advance. You have really helped me tons!

0 Kudos
Message 6 of 12
(6,237 Views)

M3GAPL3X wrote:

From what I am reading, the switch statement either returns an on or off depending on the reset switch.


It returns either an OFF (If reset is true) or the historic status (The output of the boolean OR operation of the historic fault value and the current fault value. This value is either true or false, depending on the fault history.

 

Initially, the shift register is FALSE. Once the alarm is tripped, the shift register will contain a TRUE until the reset is pressed, no matter how long you wait.

Message 7 of 12
(6,232 Views)

How would one reset the Historical Status, after, say, 5 minutes?

0 Kudos
Message 8 of 12
(5,185 Views)

Measure the elapsed time with each iteration and act accordingly if the boolean is TRUE and the time has elapsed.

 

Let me know if you have problems with that.

0 Kudos
Message 9 of 12
(5,181 Views)

To clarify, I only want to programmatically reset the Historical Status (after 5 mins) AFTER it's been switched to false/low.

My problem is getting the Elapsed Time Express VI to start only after Historical Status is switched to false.

Then I would wait 5 mins and set the Historical Status back to true, as you said.

0 Kudos
Message 10 of 12
(5,177 Views)