LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display waveform data in a Wiggle Trace or Wiggle Plot?

Solved!
Go to solution

Anybody have any hints on how to do this (easily)? Basically anything above (to the right) of the axis is filled with color back to the axis.

 

728px-Wiggle.png

0 Kudos
Message 1 of 4
(3,900 Views)
Solution
Accepted by topic author ajf200

Hey Aaron, 

 

I've found a workaround for doing this, although it's not exactly an ideal solution. Basically, for each plot you could ccreate a second plot containing just the positive component of the data, and use the fill settings in the Waveform Graph to fill from the zero point to that plot. Here's the result for a simple sine wave:

 

GraphFillFrontPanel.png

 

And here's a VI snippet of the code I used to split out the positive component of the waveform (There may be an easier way to do this):

 

GraphFillBlockDiagram.png

 

I hope this helps--so far, it's the only way I've found to accomplish what you're wanting. If I find anything else, I'll reply back to this post.

 

Thanks,

0 Kudos
Message 2 of 4
(3,872 Views)

Daniel,

 

Thanks. This is similar to the solution I came up with. Neither are great, but I suppose they will get the job done.

 

My solution: 3 layers(waveforms) for each dataset.

 

Layer #1 (bottom-most): Constant at offset (needed for non-zero axis).

Layer #2 (middle): Waveform. Fill to Waveform #1. Colored.

Layer #3 (top-most): Copy of waveform #2. Fill to +infinity. Same color as BG (black).

 

Repeat in this order for additional layers.

 

Your solution seems easier to implement.

 

Thanks.

0 Kudos
Message 3 of 4
(3,860 Views)

Example using solution above with multiple traces.

 

Capture1.PNG

 

Wiggle Trace.png

 

0 Kudos
Message 4 of 4
(3,854 Views)