From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

toggle led

Hi,

I am new to labview. How do you blink an led with labview?

Regards.
TJ
0 Kudos
Message 1 of 21
(26,322 Views)
TJ wrote in message news:39f4dcb8@newsgroups.ni.com...
> Hi,
>
> I am new to labview. How do you blink an led with labview?

At the simplest, put the LED terminal inside a while loop, make a shift
register in the while loop, wire the two sides of the shift register
together via a Boolean "NOT" and put a "wait" delay in there so the LED
doesn't toggle at a ridiculously fast rate. Oh- and wire the conditional to
a "stop" button set so the while loop continues until "stop" is pressed.
0 Kudos
Message 2 of 21
(26,322 Views)
You may also create an attribute node in LabVIEW 5.x or a property node in
LabVIEW 6 and set the blinking property to true.
To change the blinking speed in LabVIEW 5.x go to Edit>>Preferences>>Front
Panel. In LabVIEW 6 go to Tools>>Options>>Front Panel.

"TJ" wrote:
>Hi,>>I am new to labview. How do you blink an led with labview?>>Regards.>TJ>>
0 Kudos
Message 3 of 21
(26,322 Views)
Hmmm- neat, I never noticed that. However, the "blink" colour seems
unrelated to the LED colour- a green LED flashes yellow if using this
method.


jason wrote in message
news:<39f58185@newsgroups.ni.com>...
>
> You may also create an attribute node in LabVIEW 5.x or a property node in
> LabVIEW 6 and set the blinking property to true.
> To change the blinking speed in LabVIEW 5.x go to Edit>>Preferences>>Front
> Panel. In LabVIEW 6 go to Tools>>Options>>Front Panel.
>
> "TJ" wrote:
> >Hi,>>I am new to labview. How do you blink an led with
labview?>>Regards.>TJ>>
0 Kudos
Message 4 of 21
(26,322 Views)
"Craig Graham" wrote:
>Hmmm- neat, I never noticed that. However, the "blink" colour seems>unrelated
to the LED colour- a green LED flashes yellow if using this>method.>>>jason
wrote in message>news:<39f58185@newsgroups.ni.com>...>>>>
You may also create an attribute node in LabVIEW 5.x or a property node in>>
LabVIEW 6 and set the blinking property to true.>> To change the blinking
speed in LabVIEW 5.x go to Edit>>Preferences>>Front>> Panel. In LabVIEW 6
go to Tools>>Options>>Front Panel.>>>> "TJ" wrote:>>
>Hi,>>I am new to labview. How do you blink an led with>labview?>>Regards.>TJ>>>>


Very interesting. If you go on Edit>>Preferences>>Colors. You can change
the blink co
lors also. Labview what a S/W !


Rejean Lafortune

CAE Electronics Ltd.
Avionics Interface Engineering
0 Kudos
Message 5 of 21
(26,322 Views)
excuse me sir but can u show a vi example on how to make an led blink.i cant get it how to connect shift register with not boolean
0 Kudos
Message 6 of 21
(25,751 Views)

This is a rather old thread.  The original posters may no longer be monitoring it.

Here is a screenshot of the example along with a LV8.5 VI.

Note there were 2 different concepts mentioned.  One was toggling the value of the Boolean using Not and shift registers.  The other mentioned was the blink property that controls and indicators can have.  Actually 2 completely different concepts.



Message Edited by Ravens Fan on 03-28-2008 03:11 PM
Download All
0 Kudos
Message 7 of 21
(25,749 Views)
sa
0 Kudos
Message 8 of 21
(21,131 Views)

I'm also try to toggle an LED but I'm still having difficulty. I'm trying to illuminate a LED for 20 ms, every 1000 ms. Sounds simple doesnt it? Anyone have any advice on where to get started. I posted what I have so far but it seems to be running too fast.

0 Kudos
Message 9 of 21
(19,719 Views)

Your inner loop has a problem in that it will run forever if a True comes into it.  There is no way to change the value inside of it because it is defined at the tunnel.

 

You only need one while loop.  You could store your wait time in another shift register and toggle between a 20msec wait and a 980 msec wait every time the boolean changes value.

Message 10 of 21
(19,710 Views)