LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot a waveform as background?

I want to use labview to plot a waveform as a background on a waveform chart so that I can plot the acquired points on that same chart to compare them. Can I do this? How? Thank you.

Steven
0 Kudos
Message 1 of 4
(2,764 Views)
I am not sure what you are trying to do but why don't you just plot the background plot on the same chart as the other plots. Using the bundle function this will allow you to add multiple plots. Maybe another solution is layering two chart on top of each other and moving one of the plots to the back. Using the reorder ring in the menu bar. Also you can make parts of the top chart transparent by using the color tool and selecting the "T" in the upper right hand corner. You might be able to do what you are looking for. If I haven't answered your question properly please clarify your questions a little more. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(2,764 Views)
The graphs and charts plot array-type data (e.g an array of waveforms, an array of xy-plot points, an array of clusters of x-point arrays and y-point arrays, etc), from front-to-back such that when data-points from multiple different elements of that array (multipe datasets) need to be drawn at the same location, data points contained within the first dataset will appear in front of the second , the second in front of the third etc.
Therefore, to plot your background data in the same indicator as the comparison data, you'll want to plot your background waveform at a plot index greater than the number of comparison sets you want to see. You can use thicker lines and bigger point styles on the background waveform to ensure that it will be visible even if you
r data matches exactly.

You won't be able to put the background waveform at plot index 1 without building at least a two element waveform array plotting something at plot zero(plot indices are zero-indexed {0,1,2,...}. If you want to be able to plot the background data to its background index before your foreground data is ready, plotting an empty element containing at least one NaN point can help you skip over a waveform index. The alternative is to build the array by including some dummy data and setting the visibility property of the dummy plots to zero.

You may find the ability to temporarily turn off front-panel refresh/redraw while graphs are being updated useful to avoid seeing the nasty details.
0 Kudos
Message 3 of 4
(2,764 Views)
Thank you very much for your suggestions. They work.

Steven
0 Kudos
Message 4 of 4
(2,764 Views)