LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table data

i have a table with 2 columns of data.

I would now like to plot these columns of data in an xy graph.

the 2 columns of data would be the y-axis data and the x-axis would be in mm increments,

 

any ideas?

 

- maryam.

0 Kudos
Message 1 of 4
(2,589 Views)

Hi Maryam,

use the index array function to get your y-axis data and count the elements. You can use a for loop to create your x-axis out of this information. Connect the array size to the for loop and create your x array out of the i terminal.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 4
(2,586 Views)

Where is the x data coming from? Is it generated based on the number of rows and an increment? If so, you need to generate the x array using, for example, the built-in ramp function. Then you would need to make 2 plots and use Build Array to get them into an XY Graph. However, if the data is evenly spaced then you can simply wire the 2D data directly to a waveform graph instead of an XY graph.

 

Open the Example Finder(Help -> Find Examples) and search for "graph". Open the example called "XY Graph". It shows how to create different kinds of XY graphs. There are also several examples for other kinds of graphs. 

0 Kudos
Message 3 of 4
(2,583 Views)

hi maryam,

                   r u looking for something like this? 

 

 

Message Edited by muks on 08-22-2008 10:26 AM
0 Kudos
Message 4 of 4
(2,575 Views)