LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array to graph

Hi,

I have array which contain values for x and y axis. how to pass this value to generate graph. how to display x and y-axis coordinate and pass this value.

 

thanks.

0 Kudos
Message 1 of 5
(2,450 Views)

If the x-values are not spaced equally, you need an xy graph.

 

Let's assume you have a 2D array with two rows or colums. Use "index array" to get the two slices as 1D arrays, then bundle them (or use "RE/IM to complex" to make a complex 1D array). Wire to a xy graph terminal.

 

See how far you get... (See also)

0 Kudos
Message 2 of 5
(2,447 Views)

where do u define step size for x-axis and y-axis?

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

@6878 wrote:

Where do you define step size for x-axis and y-axis?


There is no step size.  Each element of the two arrays represent and X, Y pair.

0 Kudos
Message 4 of 5
(2,407 Views)

@6878 wrote:

where do u define step size for x-axis and y-axis?


If the x-values are spaced equally, you would use a plain waveform graph.

 

The linear relation connecting the array index of the y-array with the actual x-values is given by the offset and increment of the x-axis property. This can be set with a property node. You can also make a special cluster with three elements: two scalars (offset, increment) and a Y array. Wiring this clsuter to a wavform graph will also adjust the x-axis correctly. (of course you could also build a waveform).

0 Kudos
Message 5 of 5
(2,376 Views)