LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show only 10 channels at a time in a Chart

The pointer slide will show 10 channels on the chart and the array (latest readings) but I'm only able to code the legend to give the channel names. How do you code the legend to give the corresponding waveform color.
0 Kudos
Message 1 of 9
(3,298 Views)
I only have Labview 6.1 so I am unable to view your example. I'm also not tooo sure of exactly what you are wanting. You want the colors to show up on the plot legend? What do you mean "to give the corresponding waveform color?"

I really hope my example below helps...

Lauren
0 Kudos
Message 2 of 9
(3,298 Views)
Lauren;

I've converted the example to version 6.1 (although there may be some format problems). The slide switch allows 10 channels to be viewed at a time. The only thing that doesn't change when moving the slide switch is the color representing each channel. Viewing this VI should explain the difficulty.

Thanks;

Steve
0 Kudos
Message 3 of 9
(3,298 Views)
I think what you are going to have to do is use three overlayed plots each with its own data. When you move the slider you make the chart you want to see visible and the other invisible. It takes a little bit of coding and a lot of alligning of controls but you can pull the illusion off.
0 Kudos
Message 4 of 9
(3,298 Views)
Yes I think he might be right. Have you looked at the plot legend this way, in the example below? You can see that the legend DOES give the corresponding waveform color, its just that its not where you want it to be. You may need three different graph (with three different legends) and depending on which chart you need, change the visibility of the graph.

Lauren
0 Kudos
Message 5 of 9
(3,298 Views)
Having three charts seems complicated. Maybe there's another way.

Is it posible to make my own legend by creating a string array with the names of the channels in the color of the waveform?

Thanks;

Steve
0 Kudos
Message 6 of 9
(3,298 Views)
I dont think you can have different colors on the built-in plot legend. But sure, you could read the PLOT COLOR for each plot, then set the TEXT COLOR in each element of the array to the corresponding color.
0 Kudos
Message 7 of 9
(3,298 Views)
For your OWN homegrown legend, that is.
0 Kudos
Message 8 of 9
(3,298 Views)
By using the legend from a hidden second chart I'm able to control that legend to update the channels on the chart that's recording the data.

Below is the code. I converted it from version 7 to version 6.1
0 Kudos
Message 9 of 9
(3,298 Views)