LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the color of just a part of a plot

Solved!
Go to solution

Hi!

Im using a chart to visualize data. There are more signals coming in, and i can select which signal is being sent to the chart. The problem is, that i would like to indicate somehow, that when i change the signal, it is a new one.

So here is my question: Is it possible to change the colot of a plot, but only of the past points'? So for example the chart displays the speed in red, then i switch to the position signal, and it continues drawing it in blue.

Thanks:

Waszil 

0 Kudos
Message 1 of 5
(2,979 Views)
Solution
Accepted by topic author wasz

Hi Waszil,

it's not possible to give different colors for a single plot, but you can write into a new plot and give this another color.

 

Mike

0 Kudos
Message 2 of 5
(2,973 Views)

To expand on Mike's solution you would have to plot two plots

 

plot 1 ->  1,2,3,4,5,NaN,NaN,NaN,NaN   <- red

plot 2 -> NaN,NaN,NaN,NaN,NaN,6,7,8,9  <--- green

 

where NaN = Not a Number  ( this can be used in DBL and SGL datatypes) the value of NaN will not show up on the plot

 

The behavior also depends on wether or not you use an XY graph or chart

Message Edited by James R on 04-21-2009 09:13 AM
- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 3 of 5
(2,951 Views)
You can actually do it with a single plot by using a picture graph, but the update rate will be horrendous.
0 Kudos
Message 4 of 5
(2,947 Views)

Thanks for the answers, meanwhile i solved it in the following way: I clear the HistoryBuffer of the chart, so the old values will be zero, when i switch to another signal.

Thanks anyway. 

0 Kudos
Message 5 of 5
(2,943 Views)