cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to plot multiple plots

SOLVED
XebeXUC
Member
Solved!

Failed to plot multiple plots

Message contains an attachment

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

 

 

6 REPLIES 6
Highlighted
GerdW
Knight of NI
Solution

Re: Failed to plot multiple plots

Message contains an image

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… Smiley Very Happy)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
XebeXUC
Member

Re: Failed to plot multiple plots

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

GerdW
Knight of NI

Re: Failed to plot multiple plots

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! Smiley Very Happy)

 

And I'm belgian

The words are so similar… Smiley Happy

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
XebeXUC
Member

Re: Failed to plot multiple plots

Message contains an image

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 Smiley Wink

 

 

EDIT:

 

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

only gotta find how to add a legend now

 

EDIT 2.0:

Found the answer again Smiley Tongue resizing is always an option apperently.

 

Well thanks for the help Smiley Happy

GerdW
Knight of NI

Re: Failed to plot multiple plots

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)… Smiley Very Happy

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
XebeXUC
Member

Re: Failed to plot multiple plots

Message contains an image

I noticed Smiley Very Happy 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 Smiley Tongue found it again. I'm a mess