LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed Pulse

I have a simple problem. I want to create a VI in which I will click a button which will turn on an LED for 5 seconds and then turn it off. What is the simplest way to do this?
0 Kudos
Message 1 of 7
(3,249 Views)

JB34,

How accurate does the 5 seconds need to be?  What kind of hardware are you using to drive the LED?

0 Kudos
Message 2 of 7
(3,248 Views)
Software timing is fine. The LED need not be hardware, I was asking about a simple front panel LED.
0 Kudos
Message 3 of 7
(3,245 Views)

Hi JB34,

I attached a program which uses an event structure to detect the button push.  There is a sequence structure, including a 5000 ms delay, that changes the LED value.  The time stamps are just a reference for you to verify that five seconds elapsed. 

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 7
(3,208 Views)

Hi Jennifer,

Can you please send your attached VI (LED) for Labview 8?

Regards,

0 Kudos
Message 5 of 7
(3,145 Views)

Hi Siamak,

here it is.

Mike

0 Kudos
Message 6 of 7
(3,138 Views)

Hi Siamak,

Here is the VI for LabVIEW 8.0.  If you have any questions about the code, please ask. 

Jennifer R.
National Instruments
Applications Engineer
Message 7 of 7
(3,136 Views)