LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change size and colour of leds (run mode)

I´m doing an interface with leds and I need that the user can change the colour and size of the leds while the VI is on the run mode.
This means that you run the VI and then you can change the colour and size of the led, so you can see that led with that requirements in the next sequence (flat sequence) or even in another VI. This means you save that information of the led.

I don´t know if I have explained it clearly.

Thank you
0 Kudos
Message 1 of 14
(3,737 Views)
Here is the one which changes size of the led.
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 2 of 14
(3,736 Views)
Thank Youu very much Halemani, but is it possible to change the size directly on the boolean, I mean with the mouse pointer not writing the height and width.
0 Kudos
Message 3 of 14
(3,733 Views)
Yes it is possible. Just go for the create->property node->then choose item you want to workup. Also, if you don't know how to control just add control(right clicking the terminal) and see how it controls. Then add your own controls to a cluster.
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 4 of 14
(3,721 Views)

Hi Sawyer,

yes it is possible. See the attached example. Be careful with it, it is only a short example. If you press the mouse button while this is over the LED and you move your mouse with pressed button then the size will change.

Mike

0 Kudos
Message 5 of 14
(3,716 Views)
Now, How to change color at runtime. I have found the color property node but can't create control for that.
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 6 of 14
(3,700 Views)
right click on the property node and select "change to write"
0 Kudos
Message 7 of 14
(3,690 Views)


@JeffOverton wrote:
right click on the property node and select "change to write"



       No, I know that. But how do you write into it? How do you create that cluster?Smiley Sad
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 8 of 14
(3,687 Views)

Hi Halemani,

here is an example. Another way is to create a constant with right click on the property node, select -> create constant.

Mike

0 Kudos
Message 9 of 14
(3,682 Views)
But that will color both ON and OFF states with the same color. OFF should be black and ON should be color I choose. That can be changed  by changing the second pair of that  cluster. The problem how to change that second pair. Take a look at this VI.
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 10 of 14
(3,675 Views)