LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multi-color LED indicator?

I am looking for a LabView boolean indicator that is multi-colored -
i.e. green if true, red if false. They don't seem to have this in
Labview 5.1. Is this something that I would get if I updated to 6.0, or
is there a free VI out there that can simulate this??

Thanks,

Craig


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 8
(5,230 Views)
I know in Labview 6i you can change the color of the true and false state
to any color that you want. This may also be the case in 5.1.

change the state of the boolean indicator to either state and use the
coloring tool to choose whatever color you want.

stephen

cmlawrence@yahoo.com wrote:

> I am looking for a LabView boolean indicator that is multi-colored -
> i.e. green if true, red if false. They don't seem to have this in
> Labview 5.1. Is this something that I would get if I updated to 6.0, or
> is there a free VI out there that can simulate this??
>
> Thanks,
>
> Craig
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
0 Kudos
Message 2 of 8
(5,228 Views)
Stephen,

Thanks for the quick response. That actually solved my problem. I guess
I was looking for a complicated solution to an easy problem.

Craig

In article <39F73873.79322BA8@swri.org>,
Stephen Gray wrote:
> I know in Labview 6i you can change the color of the true and false
state
> to any color that you want. This may also be the case in 5.1.
>
> change the state of the boolean indicator to either state and use the
> coloring tool to choose whatever color you want.
>
> stephen
>
> cmlawrence@yahoo.com wrote:
>
> > I am looking for a LabView boolean indicator that is multi-colored -
> > i.e. green if true, red if false. They don't seem to have this in
> > Labview 5.1. Is this something that I would get if I updated to
6.0, o
r
> > is there a free VI out there that can simulate this??
> >
> > Thanks,
> >
> > Craig
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 4 of 8
(5,228 Views)
cmlawrence@yahoo.com wrote:
>I am looking for a LabView boolean indicator that is multi-colored ->i.e.
green if true, red if false. They don't seem to have this in>Labview 5.1.
Is this something that I would get if I updated to 6.0, or>is there a free
VI out there that can simulate this??>>Thanks,>>Craig>>>Sent via Deja.com
http://www.deja.com/>Before you buy.

Hi Craig,

By using attribute (LV 5.0) of your boolean you can change four (4) colors.
Two colors for True and 2 colors of False. The two colors are, one for the
frame and one for the logic state.

Hope that help.


Rejean Lafortune

CAE Electronics Ltd.
Avionics Interface Engineering
0 Kudos
Message 3 of 8
(5,228 Views)
wrote in message news:8t7bsg$r90$1@nnrp1.deja.com...
> I am looking for a LabView boolean indicator that is multi-colored -
> i.e. green if true, red if false. They don't seem to have this in
> Labview 5.1. Is this something that I would get if I updated to 6.0, or
> is there a free VI out there that can simulate this??
>
> Thanks,
>
> Craig

Framed colour box.

Craig.
0 Kudos
Message 5 of 8
(5,228 Views)
I have programmed an alarm vi that changes the color from red (urgent) to
orange (pending) to green (alarm cleared). It is easy, just create an
attribute node and update the color as you need.

for a simple test, open a new vi and place a green boolean on the front
panel. create an attribute node from it. by right clicking on the
attribute node, select colors [4].

right click on it again and select "change all to read", then create an
indicator from it.
run the vi and you will get the numbers for the color of led that you placed
on the front panel. The cluster elements contain the foreground and
background colors for the false, true, true tracking and false tracking
states.

you will have to experiment with it a bit to get the colours right.
The logic i used to
control the color of the LED was done in a state
machine. If you need further help, just email me.



wrote in message news:8t7bsg$r90$1@nnrp1.deja.com...
> I am looking for a LabView boolean indicator that is multi-colored -
> i.e. green if true, red if false. They don't seem to have this in
> Labview 5.1. Is this something that I would get if I updated to 6.0, or
> is there a free VI out there that can simulate this??
>
> Thanks,
>
> Craig
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
0 Kudos
Message 6 of 8
(5,228 Views)
[posted and mailed]

john_here@gatewaynet.bigpond.com (sup) wrote in
:

>you will have to experiment with it a bit to get the colours right.
>The logic i used to control the color of the LED was done in a state
>machine. If you need further help, just email me.

Actually there is a "colour box" constant that you can use that allows you
to set the colour with the colouring tool - easier than experimenting with
the numbers. You wil find the colour box constant in the Functions palette
under Numeric/AdditionalNumericConstants - next to PI etc.

Alex.
0 Kudos
Message 7 of 8
(5,228 Views)
You can control the colors in a LED by setting the color parameter under the property node (attribute node). If you create a constant for it you get a cluster of four color pairs in your diagram. If you set those numbers to:
0:0,16711680
1:0,65280
2:0,8323072
3:0,32512
you should get a LED that is green when TRUE and red when FALSE (with a black frame).

Hope this helps.
0 Kudos
Message 8 of 8
(5,226 Views)