LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need guidance in synchronization

Solved!
Go to solution

yes I tried to put all channels in one task and it is running so could you please guide how I could separate SYNC channel (ai0) from data and 

I want to use the aio input channel as the SYNC channel and set ai1 to ai8 as input channels. In the data acquisition process, I want to get the peak points of all input channels with respect to the SYNC channel's peak point. I tried to use peakdetector.vi but am confused about how to use it.

Could you please guide me on this?

0 Kudos
Message 11 of 15
(147 Views)

ai0 is also input channel,

I want to use the aio input channel as the SYNC channel and set ai1 to ai8 as input channels. In the data acquisition process, I want to get the peak points of all input channels with respect to the SYNC channel's peak point. I tried to use peakdetector.vi but am confused about how to use it.

Could you please guide me on this?

which VI I should use for synchronization? 

I am using single device NI-6255 MT

0 Kudos
Message 12 of 15
(145 Views)
Solution
Accepted by topic author Hasham622x

Hi Hasham,

 


@Hasham622x wrote:

I want to use the aio input channel as the SYNC channel and set ai1 to ai8 as input channels. In the data acquisition process, I want to get the peak points of all input channels with respect to the SYNC channel's peak point. I tried to use peakdetector.vi 


No need to post the (basically) same answer 3 times within minutes…

 

  • You read 9 channels.
  • You determine a peak in the first channel (aka "sync channel" aka ai0).
  • You determine peaks in all other channels (ai1 to ai8).
  • You determine the delay between the peaks of ai1…ai8 and the peak of ai0.

Did I understand your problem correctly?

What have you tried?

Where are you stuck?

How do the signals look like?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 15
(137 Views)

Hi,

 

Yes, you are right. This is what I want. Consequently, I prepared code that runs ai0-ai8 channels with continuous sampling with 100 Hz frequency and 1000 samples/per channel. the issue is how I define peak level of sync channel ai0 and how i could detect peaks of other input channels w.r.t sync channel's peak.

 

I also attached the code with this reply.

kind regards

HA

0 Kudos
Message 14 of 15
(111 Views)
Solution
Accepted by topic author Hasham622x

Hi Hasham,

 

did you read my signature line?

 

Please downconvert your VI (File->Save for previous) so more people can actually open it. (I prefer LV2019.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 15
(102 Views)