LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform

I have a multplot chart as shown in the attached figure. I want to plot 3 variables in the second plot of the 5 plots( rest 4 are used to plot 1 variable each.) I use Build array function to give the input to the waveform chart. Irrespective of which position I give the 3 variable input to, the 3 variable plot always appears in the last plot of the multiplot chart. How do I change it so that the 3 variable plot appears in the second plot?

0 Kudos
Message 1 of 12
(4,416 Views)

Post your code, I see no reason why this would work based on your description.

0 Kudos
Message 2 of 12
(4,408 Views)

I am not exactly in a position to share the code, but this is how the relevant part of the connections look like. Although, the 3 variable plot goes into the second position, 3 variables get plotted in the last plot of the waveform chart.

0 Kudos
Message 3 of 12
(4,396 Views)

Hi navip,

 

I am not exactly in a position to share the code

Aren't you in a position to press Ctrl-U before posting images of your code?

 

What are the plot properties in the graph?

Best regards,
GerdW


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

You do not have a chart, you have a Waveform Graph.  I'm not familiar with being able to make multiplot waveform graphs, I just never needed to.  But looking at your build you are making a 1D array of waveforms with 7 elements in the array.  The indexes of the 3 you care about are at index 1, 2, and 3.  I suspect your control is configured incorrectly to pick the wrong plots.  Can you attach a VI that is just that front panel control?

 

EDIT:  Okay I guess it could be a chart not a graph it is hard to tell for sure.

0 Kudos
Message 5 of 12
(4,382 Views)

Hi Hooovahh,

 

it's a chart.

 

Usually I don't like to view terminals as icons, but this is the only place where "icon view" helps to distinguish between chart and graph…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 12
(4,368 Views)

Wow learned something new.  So yes if you have the plots not stack you can assign each plot to a designated Y scale.  Well I guess you can always do that.  Right click the graph/chart and go to properties, then Plot tab, then pick your plot on the drop down, then pick the appropriate Y scale.

0 Kudos
Message 7 of 12
(4,365 Views)

It's a chart. I can't believe the View As Icon actually helped something for once...

Graph Chart.PNG

 

Edit: GerdW beat me to it

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 8 of 12
(4,360 Views)

The "dt" of the waveform can be an issue if the "T0" between new updates are shorter that the NumDataPoints X dt.

 

In that case the cahrt will reset since the data sets are inconsistent.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 12
(4,337 Views)

Here is an example vi with the screenshot of the output. How I would expect it to work is the red and white plots should be together in the first plot, then the other two below. But the last two are getting plotted together in the third plot instead. Also, although I have a property node, I am not able to see the plot names in the properties dialog box of the waveform chart.

Download All
0 Kudos
Message 10 of 12
(4,280 Views)