LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does someone know the best way of doing what I am doing here?

Solved!
Go to solution

My code is working as it should. I'm just trying to find a way of not using the elapsed time. Can someone please help?

Goal:

I will be turning the button ON and OFF repeatedly.

If I keep button false for more than 15 second, signal light will be ON.
If I keep button true for more than 10 seconds, signal light will be ON
Otherwise, keep signal light  OFF.

0 Kudos
Message 1 of 7
(979 Views)

Have you ever wondered what would change if you just remove the select function?????

 

altenbach_0-1679935718718.png

 

Message 2 of 7
(973 Views)
Solution
Accepted by GRCK5000

Maybe something like this?

 

 

altenbach_1-1679936502982.png

 

Message 3 of 7
(963 Views)

Yes, that select was definitely unnecessary. I didn't think. lol  smh

Thanks Mr. Altenbach! Your code works great! 

0 Kudos
Message 4 of 7
(929 Views)

Here's how I would do it.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 7
(890 Views)

@GRCK5000 wrote:

My code is working as it should. I'm just trying to find a way of not using the elapsed time. Can someone please help?

Goal:

I will be turning the button ON and OFF repeatedly.

If I keep button false for more than 15 second, signal light will be ON.
If I keep button true for more than 10 seconds, signal light will be ON
Otherwise, keep signal light  OFF.


The Elapsed Time express VI is probably one of the few express VIs you can use without getting your head chewed off.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(878 Views)

Behavior is incorrect. LED should go ON a certain time after change.

 

Your inherits from the control value, e.g. it stays ON for a while if the button is turned off while the LED is ON.

 

(IMHO, My flat code is simpler than three event cases and terminals hidden in an innermost case structure 🙂 )

0 Kudos
Message 7 of 7
(876 Views)