06-24-2008 04:53 PM
06-24-2008 05:07 PM
06-24-2008 05:28 PM
06-24-2008 06:33 PM - edited 06-24-2008 06:36 PM
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
06-24-2008 06:50 PM
03-18-2013 10:05 AM
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
03-18-2013 10:06 AM
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
03-19-2013 11:52 AM
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!
03-19-2013 12:30 PM
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
03-20-2013 02:09 PM
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.