ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two plots to waveform graph

Solved!
Go to solution

Hi,

I need to use cursors on my waveform, so need to use waveform graph. I have 2 signals and when I use build array, it combines both signals into one plot. The waveform graph only show one plot. How can I have 2 plots on my waveform graph?

0 Kudos
Message 1 of 7
(1,395 Views)

Hi wan,

 


@indcon_wan wrote:

I have 2 signals and when I use build array, it combines both signals into one plot. The waveform graph only show one plot. How can I have 2 plots on my waveform graph?


Why don't you look at the context help for the waveform graph?

It explains how to create multiple plots…

 

LabVIEW also comes with a huge example library and there are examples on how to use graphs and charts. Did you examine those example VIs?

Best regards,
GerdW


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

Hi Gerd,

The context help does not explain how to use the waveform graph as chart (continuous plot) with multi plots. Most of the example I checked out do multiplot on waveform graph is read data and plot.

 

The build array joints both data to form into a new single data.

The build waveform and merge signals does not show any plots on the waveform graph.

0 Kudos
Message 3 of 7
(1,374 Views)

Hi wan,

 


@indcon_wan wrote:

The context help does not explain how to use the waveform graph as chart (continuous plot) with multi plots.


  • The help explains how to show several plots ("multiple plots").
  • A graph is a graph and not a chart.
    When you need behaviour like a chart you need to buffer the data on your own in the same way as a chart would do.

@indcon_wan wrote:

The build array joints both data to form into a new single data.

The build waveform and merge signals does not show any plots on the waveform graph.


  • The BuildArray builds an array in the way that YOU have configured. When you need a different (kind of) array then YOU need to create this array in a different way!
  • Using ExpressVIs to convert good, nice waveform/array data into DDT wires will not help at all.
    Try to get rid of ExpressVIs as soon as possible…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(1,369 Views)

I have created buffer but the graph is charting with multiple lines. I have remove Express VIs.

 

 

indcon_wan_0-1742986324066.png

 

0 Kudos
Message 5 of 7
(1,363 Views)
Solution
Accepted by topic author indcon_wan

Hi wan,

 

see this example:

My example creates 8*2 plots…

 

Why did you enable the "Transpose Array" option in the graph settings? Do you know the consequences of that setting?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(1,358 Views)

Hi GerdW,

I managed to find an example to solve my problem. Thanks for your suggestion.

0 Kudos
Message 7 of 7
(1,324 Views)