LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart .FillTo property displaying both -Inf and Inf fills

Hi,

 

I'm using a chart and am looking to toggle between two display modes, where by default the value of the chart is filled manually to -Inf, and the .FillTo property is set to -3 (Filling by default from -Inf). When the user evokes an event, a datapoint is plotted, and thus a line spanning vertically from the  -Inf to datapoint is shown. I want to do the reverse, setting to Inf and plotting the datapoint value, where .FillTo is set to -4 (filling to Inf), but when I set the property, the chart changes ALL the values in the chart history to fill to Inf. I'm looking for a way to allow multiple display settings in the one plot -- I suppose one way to do this is to rewrite the chart history (storing into temporary variable, appending new data array to the temp, and rewritng into chart history... though I am not sure if this would work and I am worried this will take up so much memory because I will be running multiple plots in a loop for over 1 hour...  is there a more efficient way to do this? Thanks,

0 Kudos
Message 1 of 2
(2,215 Views)

You should be able to use two plots two achieve this.  Wire a 2D array or cluster of two elements to the chart, the first element is your datapoint and the second element is either +/- Infinity.  Select Fill To Plot 1 for Plot 0.

0 Kudos
Message 2 of 2
(2,209 Views)