LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing color of an userdefined LED controls

Hi,

on my frontpanel i have a lot of LED's with the same look. So i decided
to create a strict control to avoid the adjusting of a new inserted LED.
Now i wants to implement the feature of setting a new color to the
states of all the LED controls.
I have created for every LED a reference for setting the colors inside a
loop.
But when i create the property for the color, i can't set it to write!
What's wrong or can't i do that if more than one userdefined control is
inserted?

My next question refers to the color property. It is an array with 4
elements, one for each state of the LED. Every entry contains a cluster
with two u32 int. I found out that the first number is the color. But
for what is the second nu
mber used?

with kind regards
Henrik
0 Kudos
Message 1 of 4
(2,589 Views)
The whole point of a strict control is that the appearance is the same
across all instances. If you change it to just a "type def" rather than a
"strict type def" then you will be able to change the colours whilst
retaining the ability to make changes centrally.

Dunno about the second- I noticed it but never bothered looking into it; I
simply wire the same colour to pairs of elements! I assume one is the
foreground and one the background for each state, but it's never been
worthwhile finding out.

Henrik Skupin wrote in message
news:3A94E61F.40DB8F9F@web.de...
> Hi,
>
> on my frontpanel i have a lot of LED's with the same look. So i decided
> to create a strict control to avoid the adjusting of a new inserted LED.

> But when i create the property
for the color, i can't set it to write!
> What's wrong or can't i do that if more than one userdefined control is
0 Kudos
Message 2 of 4
(2,589 Views)
The four colors are for the following options :
a color for true, false, the transition from true to false and the transition from false to true. But I don't know how it works I never use it.

Eric
0 Kudos
Message 3 of 4
(2,589 Views)
"True tracking" and "false tracking" are only significant if the boolean is
set for a mode of "switch when released" or "latched when released". They
are the states you are in when you have clicked the mouse down to get ready
to go to the next state but have not yet released the mouse to confirm the
action.

- Vinny Recca

Henrik Skupin wrote:

> Hi,
>
> on my frontpanel i have a lot of LED's with the same look. So i decided
> to create a strict control to avoid the adjusting of a new inserted LED.
> Now i wants to implement the feature of setting a new color to the
> states of all the LED controls.
> I have created for every LED a reference for setting the colors inside a
> loop.
> But when i create the property for the color, i can't set it to write!
> What's wr
ong or can't i do that if more than one userdefined control is
> inserted?
>
> My next question refers to the color property. It is an array with 4
> elements, one for each state of the LED. Every entry contains a cluster
> with two u32 int. I found out that the first number is the color. But
> for what is the second number used?
>
> with kind regards
> Henrik
0 Kudos
Message 4 of 4
(2,589 Views)