LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

color

Hi there
 
Is there a way to change the color of number showed?
I record 7 channels temperature, plot in a chart, like channel 1 use yellow, channel 2 use red, also show those
those record to user by number, I want show channel 1 in yellow, channel 2 in red.
 
thanks
0 Kudos
Message 1 of 13
(3,650 Views)
Yon can permanently change the text color by selecting it and then pull down on the font menu and change the color.
 
If you want to do it programmatically, you can use property nodes. (This will not work of you have an array of numbers, unless you want all the same color).
 
Can you show us an image so we can better understand what you want?
0 Kudos
Message 2 of 13
(3,648 Views)
thank for reply
 
as you can see, channel allow user to input channel name, beside is the number to show up how many degree for this channel, I want this number's color to match the color plot in chart
0 Kudos
Message 3 of 13
(3,640 Views)

Do the colors stay the same (static)?

Example:

In other words, irregardless of the names you give, would the top name always be (let's say) yellow.

The middle name would always be (let's say) red; and the bottom name would always be (let's say) blue.

Does that describe the scenario?

What did you mean about matching the number with the color?  You don't mean that they enter a number which indexes the color (because the colors are numeric).

RayR



Message Edited by JoeLabView on 06-24-2008 07:36 PM
0 Kudos
Message 4 of 13
(3,622 Views)
I try to programm it
0 Kudos
Message 5 of 13
(3,619 Views)

Ray,

Maybe you can help me.  I have six distinct channels of data and I have given the user the ability to turn on or off any combination of channels.  The problem is keeping a given color with a given channel.  LabVIEW always wants to assign color 1 to the first trace displayed, etc.  I want color 1 to go to whichever channel the user turns on first.  So, if I can assign RED to channel 1, BLUE to  channel 2, great!  So far, no luck.  I have attached a picture of my logic to allow the user to turn on or off any channel.

Ron

0 Kudos
Message 6 of 13
(3,250 Views)

Ray,

Maybe you can help me.  I have six distinct channels of data and I have given the user the ability to turn on or off any combination of channels.  The problem is keeping a given color with a given channel.  LabVIEW always wants to assign color 1 to the first trace displayed, etc.  I want color 1 to go to whichever channel the user turns on first.  So, if I can assign RED to channel 1, BLUE to  channel 2, great!  So far, no luck.  I have attached a picture of my logic to allow the user to turn on or off any channel.

Ron

Download All
0 Kudos
Message 7 of 13
(3,248 Views)

rwbrook,

 

Here's a link to a NI document that talks about programmatically setting active plot colors in LabVIEW.

 

http://digital.ni.com/public.nsf/allkb/C6BFD9BD5F01108C86256F8100638B29

 

I hope this helps!

Robert B
RF Product Support Engineer
National Instruments
0 Kudos
Message 8 of 13
(3,221 Views)

Robert,

Turns out, all I had to do was remove my rats nest of case structures and just put in property nodes for each trace in each display.  I believe altenbach was first to recommend this, but is had no shot of working with my nested kluge!

Ron

0 Kudos
Message 9 of 13
(3,207 Views)

Robert, I followed a lead from Emily using a color array and it works great except for one thing;  The plots are all off by one.  In other words, I want red for the first channel and blue for the second.  I press the first channel and get blue.  I get the next color up through channel 5 and when I press the button for channel six I get red!  Yes, I have '0' assigned to the first plot, '1' for the second etc.

I have attached my code and the front panel.

 

0 Kudos
Message 10 of 13
(3,182 Views)