LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing colour of front panel graphics

Hi
does anyone know if it is possible to change the colour of graphics or decorations, or even changing graphics file with one of another colour
In response to a set condition within LabView.
 
i.e
If a measured value goes above a setpoint the colour changes to red
Or
If an auto/manual switch on the front panel is used the graphic or decoration colour changes.
 
Any comments would be helpful
 
Regards
 
0 Kudos
Message 1 of 5
(2,762 Views)

What you are talking about can definitely be done in LabVIEW using "property nodes." Right click on the graph that you wish to change colors on, then click on create, property node. You can then select from a large list of graph properties including plot color (I believe this is what you are looking for).

Inside your program, you can then wire a value for color into the property node. Note that property nodes can be read from or written to. Just right click on the property node and select "change to write" or "change to read" to switch between modes.

I hope this helps.

Casey Weltzin, National Instruments

0 Kudos
Message 2 of 5
(2,753 Views)
I think Tony means a programmatic approach for changing the colour of a decoration. The following thread has some great information available:

http://forums.ni.com/ni/board/message?board.id=170&message.id=66648&requireLogin=False

With regards to graphics such as pictures that you have imported inside LabVIEW - there is no way of changing the colours of these images and you would have to rely on loading another image to replace the current one being displayed.

Stuart
Message 3 of 5
(2,739 Views)

Thanks v much to SR who seems to have nailed my query.

The link is very useful.

The initial idea was to show the process diagram with pipes that change colour when say a N2 purge is taking place.

I think switching the graphic file which has a different colour of piping may be the best way forward

Thanks

 

0 Kudos
Message 4 of 5
(2,728 Views)
No problem! I would also recommend looking at the Picture Control as this may also be of use. If you go to Help>>Find Examples and search for Pictures or Picture Control, you should come across some useful examples.

P.S. Thanks for rating the answer, always appreciate feedback!

Stuart
0 Kudos
Message 5 of 5
(2,723 Views)