LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coding suggestion

Solved!
Go to solution

Hello.

I want to know the method for creating a 'time-delay' before the data is passed. Suppose I have a 'Boolean' switch which is connected to a LED. If I press the switch, there should be some delay (say 30s) before the LED glows. Any help is appreciated.

0 Kudos
Message 1 of 8
(4,251 Views)

Since I doubt you want to halt your loop for 30 seconds, look at using the Elapsed Time VI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 8
(4,246 Views)

I have tried Elapsed Time. It is not of much help. I'd like to have a boolean control to the timer. Just like Timer On Delay (TON) block in PLC Programming languages. 

0 Kudos
Message 3 of 8
(4,240 Views)
Solution
Accepted by Ganny

Hello Ganny,

I think crossrulz is right, the simplest way to do it is probably the Elapsed time function.

If i understood it right, you are looking for something like this.

 

Alban RCENTUM ADENEO
Certified LabVIEW Developer

Message 4 of 8
(4,212 Views)

This works well.Thanks AlbanR. Cheers.

0 Kudos
Message 5 of 8
(4,197 Views)

Hello AlbanR,

 

I want to implement something like this. 

When I hit a 'boolean' button, I want one LED to glow (say Red). After 30s time delay this Red LED should go off and another LED (say Green) should glow for next 30s and then similarly I want some other colored LED to glow and this should continue until I stop. Can you suggest me how can I implement this. 

0 Kudos
Message 6 of 8
(4,145 Views)

There is a tutorial available for LabVIEW State Machines that you might be able to use to do what you want. 


GCentral
Message 7 of 8
(4,140 Views)

Thanks cbuthcher. That was helpful.

0 Kudos
Message 8 of 8
(4,131 Views)