LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a plot to a Waveform Chart

I have a waveform chart being used in an application.  In the sequence of events, I first create upper and lower limits to display on the chart based on a tolerance.  This means that I've set up the chart with two plots before the program begins, and I'm only showing 20 seconds worth of data to the user at a time (the run may be up to 1200 seconds).  When the user hits the run button, the tolerance limits are pulled from a file, then displayed on the waveform chart, and the chart begins at time 0.

Once the program starts, I need to add a plot to the Waveform Chart that will visually show the user where they are in relation to the tolerances that have already been plotted.  This plot contains a frequency value read from a counter input.  My question is - how do I go about adding this plot to the waveform chart while keeping the upper and lower tolerances displayed on this chart?  I've looked through the property nodes, but can't find anything related to plotting the value in relation to time.

I've attached a screenshot to provide some idea of what I'm trying to accomplish.  The upper Waveform chart shows the upper and lower tolerances.  The actual plot I want to add won't show up during the run, but once the run is complete, the user will be able to use the X Scrollbar to roll back and see the actual trace.  I am working now on an indicator that will provide an arrow to show the user where they are within the Waveform Chart.  The bottom graph shows the entire run of the trace, along with cursors, that provide the user with a point of reference during the test.

Thanks for any help!
tsc
0 Kudos
Message 1 of 4
(4,105 Views)
Initialize your data plot as an full size array (same size as the limits) containing all NaN and keep it in a shift register.
As you acquire data, replace the NaNs with real data using "replace array subset".
 
Use a waveform graph instead of a waveform chart.

Message Edited by altenbach on 08-24-2005 12:31 PM

0 Kudos
Message 2 of 4
(4,099 Views)
Here's a quick example (LabVIEW 7.1).
0 Kudos
Message 3 of 4
(4,089 Views)
Thanks for your input - I was able to get the graph to work properly using your example.
0 Kudos
Message 4 of 4
(4,076 Views)