LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2 Channel peak detection and value look up

Hi all,

I have 2 different sin waves going into channel 1 and channel 2 of an oscilloscope. What I'm trying to do is:

 

1. From Channel 1's input determine the time when peak values occur and save them to an array

2. Then find out what channel 2's voltage output is at times determined from step 1. 

 

 

I started doing this project by only using 1 channel where I was able to extract the y data as well as plug it into peak detection.vi. 

 

However after I merge the two channels together and proceed like I did with 1 channel  labview shows disconnected wires due to data incompatability. 

 

Any help would be greately appreciated on how I can locate channel 1's peak times and plug those time values to determine output values for channel 2.

 

Attached is

1. The single channel peak detection (which works)

2. 2 channel peak detection (the .vi I need help on)

 

Download All
0 Kudos
Message 1 of 3
(2,025 Views)

The VI is broken because you are connecting an array of waveforms with VI's that are asking for a single waveform.  You need to use Index Array to break out one or the other waveform to feed to the other VI's.

0 Kudos
Message 2 of 3
(2,016 Views)

Thanks I'll try looking into this method

0 Kudos
Message 3 of 3
(1,998 Views)