LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i show a 1D array on an xy graph?

I want to have program control over my graphs Y axis scaling and min/max values. - I cant do this with graph or chart displays, but should apparently be able to do it with an XYgraph display.
My input data is a 1D numeric array, (voltage measurements taken by a piece of laboratory kit at regular time intervals) and I want to control the Y-axis values so that the graph shows the most important part of the data, zoomed right in, so autoscale is of no use to me.....
Is there a function I can use on my 1D array to connect to the X axis of the XYgraph so that the Y axis is my varying voltage and the Yaxis is just the number of the sample? The data reaches me as an ascii text file with one item per line and I've transformed it into a
numeric array.

I must say I'm very new to this labview stuff and find it amazingly powerful but difficult to do anything without a previous example to plunder.
I'm running Labview 7.0 express full developer version.

Hope you can help me.
0 Kudos
Message 1 of 2
(4,551 Views)
No need for an XY graph in this case; just wire the array to a graph and if you want to zoom in on something programmatically you can control the min and max, scaling and pretty much everything else using a property node (just right-click on the graph, select create property node and then click on it to select which property to set, you can expand it to read/write multiple properties with the same node, or create multiple property nodes. The Y axis will by default just show the array index number unless you set the X0 and delta X properties.
0 Kudos
Message 2 of 2
(4,551 Views)