LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

n plot multi chart

Solved!
Go to solution

I'm trying to create a muilt chart starting with an array of n floats.  Each float is to be plotted as a separate plot on one chart.  For example, if the array is 5 elements long, the the chart will have 5 plots.  I can find examples of how to plot multicharts if you know ahead of time how many plots there are.  These example just brute force the solution by creating a bundle or build array element for each entry.  I've been trying to construct the equivalent using for loops, but every attempt ends up with labview interpreting the data as many points in a single plot.  For example, if I have 5 elements labview plots it as 5 points of one plot, not 5 plots of 1 point.  Any ideas?

0 Kudos
Message 1 of 5
(3,143 Views)
Solution
Accepted by Jim12345678

Go figure.  I worked it out about a minute after posting the question.  Much simplier than I thought.

 

 

0 Kudos
Message 2 of 5
(3,130 Views)

Hi Jim,

 

what a bunch of RubeGoldbergs…

 

Why not this way:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 5
(3,118 Views)

Tried that, but it was interprted as 1 plot of n points not n plots of 1 point.

0 Kudos
Message 4 of 5
(3,099 Views)

Hi Jim,

 

please use TransposeArray instead of your RubeGoldberg constructs!

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(3,084 Views)