LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separating multiple waveforms in waveform graph

Solved!
Go to solution

Is there a way to separate multiple waveforms on a waveform graph?  I would like to display 6 waveforms with the same time frame, but I want to spread them out so they aren't on top of each other.  Can this be done?

0 Kudos
Message 1 of 10
(1,611 Views)

Hi,

 

you can create a separate Y axis for each plot...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(1,606 Views)

You can also choose Stack Plots on the right click menu.

0 Kudos
Message 3 of 10
(1,578 Views)

Is that in the Properties page?  I can't find anything that lets me do that.

0 Kudos
Message 4 of 10
(1,564 Views)

Hi John,

 


@johntrich1971 wrote:

You can also choose Stack Plots on the right click menu.


This option is only available for charts IMHO.

The OP asked for a graph…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 10
(1,562 Views)

I found that under the Appearance tab, but it is grayed out.  It looks like that is not an option for a waveform graph.

0 Kudos
Message 5 of 10
(1,562 Views)
Solution
Accepted by topic author rgl0886

It's not pretty, but you can iterate over the array and modify each waveform to provide a y-offset.  use "Get Waveform Components" to get the y-array and add a number to the y-array.  build back into waveforms using "Build Waveform". make sure this modified data goes only to the graph (you don't want to propagating to any data analysis or file saves).

0 Kudos
Message 7 of 10
(1,550 Views)

Hi pj,

 


@pjroland1121 wrote:

It's not pretty, but you can iterate over the array and modify each waveform to provide a y-offset.  use "Get Waveform Components" to get the y-array and add a number to the y-array.  build back into waveforms using "Build Waveform".


When you use an autoindexing FOR loop you don't need that BuildArray at the end.

You can use ADD directly with waveforms, so also no need for GetWfmComponents!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 10
(1,545 Views)

@GerdW wrote:

Hi John,

 


@johntrich1971 wrote:

You can also choose Stack Plots on the right click menu.


This option is only available for charts IMHO.

The OP asked for a graph…


You are correct. I hardly ever use graphs (and don't generally use this option for charts) so I had not noticed this. Thanks.

0 Kudos
Message 9 of 10
(1,541 Views)

I tried your suggestion, and you're right on both counts:  It does work and it isn't pretty.😄  I decided to simply put multiple waveform graphs into the display and split things out that way.  With careful placement it all looks pretty good to the operator.  Thanks for your suggestion though.  It helps me understand Labview a little more each time I try something.

0 Kudos
Message 10 of 10
(1,476 Views)