LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiplots: only full version?

Hallöchen!

I want to have multiple curves in one plot in LabVIEW. I thought
that instead of the array of xy-clusters I just give an array of
arrays of xy-clusters to the respective front panel element.
However, this causes an error.

Is this because I have only the basic version (rather than the full
version) of LabVIEW, or did I do something wrong?

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
0 Kudos
Message 1 of 4
(2,815 Views)
To plot multiple curves in a single XY graph indicator, what you have to wire is an array of clusters of x and y arrays.
Works in all LV versions...
Clusters of arrays of clusters don't work either... ;-))
CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(2,815 Views)
A multi-plot xy graph is not an array of an array of clusters (2D array). It is just an array of clusters (1D array). A single cluster with an x array and a y array is a single plot. If you are using a normal graph instead of an xy, then a multiplot is either a 2D array of numbers or a 1D array of waveform data types. See the shipping example XY Graph.vi or Waveform Graph.vi.
0 Kudos
Message 3 of 4
(2,815 Views)
Hallöchen!

chilly charly writes:

> To plot multiple curves in a single XY graph indicator, what you have
> to wire is an array of clusters of x and y arrays.
> Works in all LV versions...
> Clusters of arrays of clusters don't work either... ;-))

Thanks to both of you. I found a summary of what you've said at
http://cnx.rice.edu/content/m12236/latest/ at the bottom of the
page. Now it works.

However, it looks strange: When I create a constant to an xy plot
indicator, LabVIEW creates an array of xy clusters by default. So
I used this data structure as the underlying structure for all my
VIs (rather than the cluster of two arrays; I don't find it as
elegantly btw).

But for the multiplot, I have to bundle each curve in a trivial
one-child-
cluster, in order to add it to the array which is then
given to the xy plot. So an array of two clusters of one array each
of clusters of xy pairs. Weird. But there we go I assume.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
0 Kudos
Message 4 of 4
(2,815 Views)