Tags: analog, analoginput, anx-y, channel, input, labview, plot, plots, produces, program, programming, second, versus, x-y
2 channel x-y plot
I am using LabVIEW 6.1. Does anyone have a program that produces an
x-y plot which plots 1 analog input channel versus a second analog
Leave a comment...
- 6 Comments
- Hi nexgen1,
I don't understand the problem.
simply connect one Array (that you got from first anlog input) to the
X array, at the cluster bundle (to create a XY graph), and the same
procedure to second Array, to the Y array, and 'walla', it works fine.
Hope it Helps ...#1; Tue, 29 Apr 2008 20:59:00 GMT
- Xref: number1.nntp.dca.giganews.com comp.lang.labview:87149
I appreciate that you responded so quickly. Your answer makes sense,
however, I am brand new at LabVIEW, so I don't know where to begin to
get the x array and y array. In the end I want to plot one voltage
from an analog input channel versus another voltage from a second
analog input channel. I hope you can help. Thank you again for your
--Greg#2; Tue, 29 Apr 2008 21:00:00 GMT
- How are you acquiring the data and what functions are you using? If
you acquire both channels over time, the AI function will
automatically create a 2D array. You can use an index array function
to get channels 1 and 2 data. Each of these should be a 1D array that
you use for the x and y inputs to the xy graph.#3; Tue, 29 Apr 2008 21:01:00 GMT
- I have a NI-DAQ and an switch. two channels (4 pins) are being used.
The correct voltages are coming out because I am able to get the data
to excel using the built in data logger.vi. I just really need to get
the x and y data to plot on an x-y plot in labview while the voltages
are being sampled. I don't know what functions are to used to be
honest in order to acquire the two separate channels into two separate
arrays. Thanks again.
Greg#4; Tue, 29 Apr 2008 21:02:00 GMT
- I appreciate the response once again. I will try the file you sent me
tomorrow. Is it just the Plot XY.VI? or is it more than that? I am
Greg#5; Tue, 29 Apr 2008 21:03:00 GMT
- Look at the shipping example called XY Chart if you wnat to display
data real time. The normal XY graph takes arrays post-acquisition and
displays them but the example should do what you want without needing
to build arrays.#6; Tue, 29 Apr 2008 21:04:00 GMT