LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay Signal Labview

Dear all!

I'm a new one in LabVIEW. Today I have a issue, pls help me solve it:

   I have a Button and a LED. 

   I want: After Button turn ON about 1 second, LED will turn On. Button turn Off, LED will Off.

I research in the internet, so it is difficult to do.

Thanks and best regard!

 

0 Kudos
Message 1 of 3
(2,552 Views)

Hi,

Go step by step use boolean button and led connect them, try switching button and run the VI see the effect.

To build it properly as application,research about how to use while loop, event structure and timing functions.

-
Amit
CLAD
0 Kudos
Message 2 of 3
(2,535 Views)

I recommend you to learn about producer/consumer design as it helps you in solving the task.

Hint:

1. Producer enqueues the state change of the button

2. a) Simple approach (bad usability): Consumer waits a second and turns LED on/off (depending on button value)

2. b) (good usability) The consumer implements a state machine which iterates on a "time elapsed" case for 1s and then moves on to the "led state change" case

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 3
(2,532 Views)