Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display a solid value (ie a limit value) across a chart as the chart upda

hi - i'm graphing a strip chart value from data coming into the system live (on about a 30msec interval) in packets of 8 bytes. i plot them using "mesDataDisplay_WFG.GraphSignal.PlotYAppend(tempDisplay)" in C#. i want to add a solid line across the chart for a visual indication of a threshold value that the signal should not exceed. so far,i can display the line using the call:

double[] yPoints = { tempYT, tempYT };

this.waveformPlot2.PlotY(yPoints, this.waveformPlot2.XAxis.Range.Minimum, this.waveformPlot2.XAxis.Range.Maximum);

but it vanishes once the chart starts running. so the question is how can i keep the line displayed on the chart with the chart dynamically updating? do i need to add a chart PlotYAppend as a constant? or is there a way to overlay a chart on a graph?

thanks,

 

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

Hi,

 

I found this document explaining that you can configure a Waveform Graph to contain multiple plot objects: 

http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/usingmultiplotsnetgraphwinfor...

 

I think this will allow both of your plots to show on your graph. 

I hope this helps!

T. Le
Vision Product Support Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,726 Views)