LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the XY graph

Solved!
Go to solution

Hi

I was instructed to use an XY graph instead Express XY graph.

 

The XY has only one input.

 

How can I input x and y to it?

 

Thank You.

0 Kudos
Message 1 of 11
(3,738 Views)

The xy graph accepts a number of different inputs and you can freely choose:

 

  • An array of points, where each point is a cluster of two scalars, x and y.
  • An array of complex. RE=x IM=y
  • A cluster of two arrays: x-array, y-array

For mutliple plots, use a cluster array of the above data structures.

 

If you hover over the terminal and enable the context help, you'll get some ideas. ALso the help has information. Open the example finder for examples on xy graphs. It's all there, you just need to look!

0 Kudos
Message 2 of 11
(3,729 Views)
0 Kudos
Message 3 of 11
(3,727 Views)

I have seen the help and I tried the cluster.

But it always gives me an error.

 

What is the possible solution of this error?

0 Kudos
Message 4 of 11
(3,724 Views)

You used Build Cluster Array.  What you need is Bundle.  Both are on the Cluster... palette.  Build Cluster Array creates a cluster from elements of the input arrays and then creates an array of the clusters.  The Bundle creates one cluster containing two arrays.

 

Lynn

Message 5 of 11
(3,721 Views)

Thank You, it worked!

Can you please re-explain why the previous pallete didn't do the job?

Thank you

0 Kudos
Message 6 of 11
(3,718 Views)
Simplest would be "A:single plot" at the very top of my image above. Build the complex points inside the loop and autoindex at the loop boundary. Wire the 1D complex array directly to the graph terminal.
Message 7 of 11
(3,715 Views)

I'm sorry altenbach but I'm having hard time understanding you. If I try directly wiring it to the graph I'm getting an error; yet it is an Auto-indexed tunnel.

 

Is there something wrong with the loop?

 

0 Kudos
Message 8 of 11
(3,710 Views)
Solution
Accepted by topic author A.A.A.
You did not form the complex number from x an y inside the loop. Look at my example!
0 Kudos
Message 9 of 11
(3,699 Views)

Ok, I understood you now. Yeah it worked. Nice idea 😉

 

Thank you for your help altenbach and johnsold

0 Kudos
Message 10 of 11
(3,695 Views)