LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two waveforms simultaneously

Hello,
   Its my first work in lab view i have to record output of two pressure sensors, I used two physical channel but at the graph only one output is showing,how can i make it two show both outputs simultaneously
0 Kudos
Message 1 of 7
(3,135 Views)

Hi,

1 sample/channel, displayed in chart: Use a bundle node found under the cluster palette. Bundle your signals and wire it then to your chart.

N samples/channel, displayed in graph: Use build array function (array palette) and wire it to the graph.

N samples/channel, displayed in chart: Use build array function, then use a transpose array function and then wire it to the chart.

Hope it helps

Pelle S
Account Manager
National Instruments Sweden
0 Kudos
Message 2 of 7
(3,118 Views)
helllo Pell
 
actually i did as per your advice, but the problem is that now the FIR filter is showing  is creating problem it shows Error-20023 , which i cant understand why, i thought the filter Vi is configured but it shows this error. by the way i am using DAQ NI 6008, kindly help me out of this satuation, i am sending u my VI check it please
0 Kudos
Message 3 of 7
(3,111 Views)
Your VI did not make it. If you click the Preview button, your attachment is lost.
0 Kudos
Message 4 of 7
(3,106 Views)
Ok,
   i am attacing VI now,Thanks you very much
0 Kudos
Message 5 of 7
(3,104 Views)

What you are doing with the conversion from/to dynamic data does not make any sense. First you convert the dynamic data from the DAQ Assistant to a 1D array. This is wrong. If anything, it should be a 2D array of scalars or 1D waveform array. To make matters worse, you then index out a single element from the 1D array and then convert this single element to an array just so that you can wire it to the filter functions. A single element cannot be filtered.

In order to display both raw signals, all you have to do is wire the dynamic data from the DAQ Assistant to a chart or graph. To use these filter functions (instead of the Express VIs), convert the dynamic data to a 1D array and then use the index array function on that. Wire the output straight to a chart. don't think your use of the XY graph is correct either. If you want to use Express VIs, use the split signal function to get each channel and wire a dynamic data type to two Express Filter VIs.

Both dynamic and waveform data types contain timing information that the filter functions require and if you keep that, you don't need any of the manipulation of the loop delay that you are doing.

0 Kudos
Message 6 of 7
(3,081 Views)
Thanx man,
     I gor your point, I was making severe mistakes,now i am in right direction and getting both raw waveforms by split signal use. but i still need ur help,i will disturb u whwn it needed
0 Kudos
Message 7 of 7
(3,068 Views)