Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display X-Y graph from 1D array?

I have VI which communicates with instrument and aquires data ( 1D array ) ie. (-1,0),(0,0),(1,1),(2,3),(3,8),(4,25) These are just sample values which I'm getting.
 
I want to display these values on the X-Y graph where X is the 1st element of the array and Y is the second. Perhaps it is very simple, unfortunatelly I cannot find way to do it.
 
 
 
0 Kudos
Message 1 of 2
(3,053 Views)
You say it's a 1D array but the way you are defining the data, it's a 2D array. If you are getting two samples and are creating a 1D array from them, then you should be creating a 2D array. Once you have a 2D array, then you can use the index array function to get either the row or column and then bundle them together to create the input that an XY graph requires.
0 Kudos
Message 2 of 2
(3,050 Views)