LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hold indicator state if conditions are met for review at end of test

I am looking to have an indicator stay true if conditions are met. I can get it to go on just not stay on. Example: if 5>0 and 10>0 then true (and stay true until reset. It is probably something really easy and I am just missing it but I am not sure what labview combination of items to make the value stay until reset.
0 Kudos
Message 1 of 9
(3,443 Views)

Hi there

You can use a shift register and an or condition to latch onto the signal. The diagram also shows how to reset.

Ian

Message 2 of 9
(3,433 Views)
It should stay true unless you are doing something else with it.  Can you share with us a little more about your implementation?  A sample VI or jpg of the diagram would be useful.

Paul
0 Kudos
Message 3 of 9
(3,429 Views)
IanW I tried your solution but all it does is flash the output on every loop completion.
I have attached the section of my VI that I am trying to solve. The inputs are a flow rate in GPM and time. I need to be at .5GPM in less then 5 seconds. If this occurs I want the indicator light to stay lit until I reset it or I run the test again.

Thanks
0 Kudos
Message 4 of 9
(3,423 Views)
I think the attached example will accomplish what you need.

Paul
Message 5 of 9
(3,409 Views)
I'm not sure I fully understand what you need. If you want the Test Output to switch on if the flow is less than 0.5 and stay on even if the flow goes above 0.5 then try the attached vi. This only checks for flow level while the time is less than 5 secs.
 
Sorry if I've still not what you are looking for.
 
Ian
0 Kudos
Message 6 of 9
(3,408 Views)
Paul and IanW,
I thank you for your posts....I think I have the solution but not sure why it does not work in my application. Attached is Paul's version modified to look like my version but they do not act the same.....My VI was created in 6 and migrated to 7.1 with the upgrades. This is the only thing that I can think of. Does this mean I have to redo my VI in the new version to fix this issue or am I just missing something.
 
 
Thanks,
 
Kyle
Download All
0 Kudos
Message 7 of 9
(3,390 Views)
Change NotOR to OR.  You will need to Change your elapsed time calc when you hit the reset button as well otherwise, when you hit reset it will never go true again!
Paul

Paul
Message 8 of 9
(3,386 Views)
Thanks Paul that did the trick...Works great.


Kyle
0 Kudos
Message 9 of 9
(3,379 Views)