LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display two 1D array to XY Graph

Solved!
Go to solution

Brzhou123_0-1592028735762.png

I want to display the value of two 1D array, and one is for x axis, the other one is for y axis in XY Graph, how to process this ?

Thanks.

Keep moving
0 Kudos
Message 1 of 10
(3,962 Views)

Bundle the two arrays or create a complex 1D array. The xy graph accepts both.

0 Kudos
Message 2 of 10
(3,953 Views)

Hi Sir,

 

Not quite understand, i try to convert the array to the input of XY Graph, but always the wire is broken.

Keep moving
0 Kudos
Message 3 of 10
(3,948 Views)
Solution
Accepted by topic author Brzhou123

Well, you are not really telling us what you are doing, so we cannot tell what you are doing wrong.

 

Given two 1D arrays of same length (one for X and one for Y), here are two (of many more!) possibilities.

 

 

altenbach_0-1592031316780.png

 

0 Kudos
Message 4 of 10
(3,941 Views)

Well, it works with the 2nd method, but could you still tell me where to find below icon in the first method ?

Thanks.

Brzhou123_0-1592031772486.png

 

Keep moving
0 Kudos
Message 5 of 10
(3,934 Views)

Bundle  (Cluster, Class & Variant palette)

0 Kudos
Message 6 of 10
(3,931 Views)

@Brzhou123 wrote:

Well, it works with the 2nd method, but could you still tell me where to find below icon in the first method ?

Thanks.

Brzhou123_0-1592031772486.png

 


Numeric >> Complex palette.   Polar to Complex

0 Kudos
Message 7 of 10
(3,860 Views)

@RavensFan wrote:


Numeric >> Complex palette.   Polar to Complex


RE/IM to complex, right?

 

(Sorry, I thought that's what he already wired up and I thought the bundle code was missing. 🙂

My "first method" described here was the bundle: "Bundle the two arrays or create a complex 1D array. The xy graph accepts both.")

0 Kudos
Message 8 of 10
(3,857 Views)

@altenbach wrote:

@RavensFan wrote:


Numeric >> Complex palette.   Polar to Complex


RE/IM to complex, right?

 

(Sorry, I thought that's what he already wired up and I thought the bundle code was missing. 🙂

My "first method" described here was the bundle: "Bundle the two arrays or create a complex 1D array. The xy graph accepts both.")


Yes.  You're right.  Them being on the same palette, I just looked at the name of the wrong one.

 

I just realized in his message about "the one below", he meant the image below his text in that specific message, but I could see how it could have been read as the image that was at the bottom of the image "below" of your message with both examples.

 

 

0 Kudos
Message 9 of 10
(3,840 Views)

Brzhou123,

 

You should accept Altenbach's message #4 as the solution to your problem.  All my messages were just to help clarify the followup questions you had.

0 Kudos
Message 10 of 10
(3,828 Views)