LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to plot multiple plots

Solved!
Go to solution

Hi all

 

I'd like to plot several values through time in one graph/chart (i always forget which one i need).

Now I've set up an example of how I want my interface to look like, but when I plot the data, instead of each datapoint having a different line, they just represent as one point in the plot. (see images for more clarity.)

 

There's also a bit of double work i think, if someone could help me solve this aswell, but the main problem is the graphs/charts

 

 

Download All
0 Kudos
Message 1 of 7
(2,921 Views)
Solution
Accepted by topic author XebeXUC

Hi Xebe,

 

did you read the context help for charts? It explains how you need to present your data!

 

For several plots in a chart you either need to provide a 2D array (plots per row) or an array of clusters:

check.png

(As a Dutch guy you probably can read the German text… :D)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(2,904 Views)

So how would I get the 2D or array of clusters starting from what I have now?

And I'm belgian not Dutch, makes it even eassier to understand some German.

 

 

Edit:

 

I need the plots per parameter, so per Temp, pressure and flow. Which I first have to extract from the cluster i already have

0 Kudos
Message 3 of 7
(2,899 Views)

Hi Xebe,

 

how would I get the 2D or array of clusters starting from what I have now?

How to create a cluster is shown in the context help. Building an array of clusters is easy with a BuildArray node…

The same applies to arrays: you already know how to build a 1D Array. What happens when you again use BuildArray on your 1D array?

(This is pretty basic LabVIEW stuff so I guess you know the answer! :D)

 

And I'm belgian

The words are so similar… 🙂

Best regards,
GerdW


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

So now I have this:

graphs 3.jpg

That's a step closer to what I wanted, however, how do I add a legend to it so that I know which colour represents what?

And I want to split per parameter (so temp, pressure and flow)

 

 

FYI: Also we speak and write the same language, it's just a different nationality 😉

 

 

EDIT:

 

Okay fixed it, the solution lies in my own answer 😛 for the different parameters part

only gotta find how to add a legend now

 

EDIT 2.0:

Found the answer again 😛 resizing is always an option apperently.

 

Well thanks for the help 🙂

0 Kudos
Message 5 of 7
(2,887 Views)

Hi Xebe,

 

there already is a legend!

All you need to do is increase the number of shown plots: use the mouse (in edit mode)… 😄

Best regards,
GerdW


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

I noticed 😄 but thanks for reminding me.

(I was confused by the 'autosize plot legend')

 

Edit:

 

Did something wrong, I want the bottom type, but the top one somehow changed :s

Graphs 4.jpg

 

Edit 2.0:

The overlay function 😛 found it again. I'm a mess

0 Kudos
Message 7 of 7
(2,872 Views)