LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot xy data on a digital waveform graph with timestamped data

I have digital timestamped data in a 1D Array of clusters where the cluster contains a timestamp and a y-data value. The timestamps are not uniformly separated by a common dt throughout the data so it would fit the XY graph application.  However, I want to use the digital waveform graph to display it for other reasons.  Is there a way to get this accomplished? 
Message 1 of 7
(4,179 Views)

The short answer is no.  Because by definition, waveform graphs or charts are based on a common dt for all points.

 

So the next question is what are the "other reasons" for why you want to use a digital waveform graph?  There is probably a way to have the XY graph behave in whatever special way you want it to.

Message 2 of 7
(4,178 Views)

My data is an event triggered log.  The challenge with the XY Graph is that it creates a triangle waveform for my XY coordinates, rather than a square pulse train.  It is an instantaneous chart rather than a transition plot.

 

What I want is for the data to stay at the value it was at last time plotted until the next event point where the data will be replotted.  

0 Kudos
Message 3 of 7
(4,154 Views)

Have you tried changing the properties of the plot for an XY graph?  It looks like it has the ability to display the same transitions between points like the waveform graph and chart.

 

Message Edited by Ravens Fan on 08-24-2008 12:07 AM
0 Kudos
Message 4 of 7
(4,146 Views)
Thanks, I think that is what I need. I'll try it.
0 Kudos
Message 5 of 7
(4,126 Views)
That works well except one last thing - I need to stack many plots vertically as is done on the digital waveform graph.  How can I do this with the XY Graph?
0 Kudos
Message 6 of 7
(4,057 Views)

The easiest way is to add an offset to your Y values.  This has the advantage of transparency on your block diagram.

 

Alternately, you can create a separate Y axis for each plot, set the Y axes ranges so the 0 points are offset, associate each plot with the appropriate Y axis, and then just plot.  This is a bit more work up front and will result in slower graph performance (each extra axis slows the plot a bit).  You may want to defer panel updates while plotting to help. Most of this is done with property nodes and methods.  If you want to use this method and need help finding things, let us know.

0 Kudos
Message 7 of 7
(4,038 Views)