LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire and graph 2 voltage signals

Hi, I'm user of LabVIEW 6.0 and a PCI-6023E. I need to acquire and graph 2 voltage signals (5V). I don't have problems graphing one signal but when I try to graph the two signals on the same graphic just works one of them. What can i do to solve the problem?
 
I attached an example of this, but it doesn't work correctly.
 
Thanks.
0 Kudos
Message 1 of 3
(3,377 Views)
If you are going to use the chart, you should use the Build Array function with your output of each of the Acquire Waveform vis going to one of the inputs on the Build Array.  Then feed the output of the build array into a Transpose 2D array and then to your chart.

Alternatly you can use an XY graph.

Check out the examples shipped with labview to get some more ideas.
Kenny

0 Kudos
Message 2 of 3
(3,368 Views)
That won't work because you are writing to the same indicator with a local. One of your indepenent functions wil write (you don't know which) a single channel. Another will just overwrite the data you just tried to graph. A multiple plot graph is a 2D array of dbls or a 1D array of waveform datatypes. You have a dataflow problem as well as a problem of the correct datatype. The best thing to do is to use the DAQ function that scans multiple channels (AI Acquire Waveforms) and then use the index array function of you want to process the individual channels.
0 Kudos
Message 3 of 3
(3,367 Views)