Discussions au sujet de NI LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[PXIe 6378] AI and AO synchronization

Solved!
Go to solution

Hello,

 

I am using PXIe 6378 to supply a 1kHz sine wave as an analog output (for 5ms). I want to record data collected from one of the analog input channels on the same PXIe 6378 during the same 5ms. Is there a way to synchronize data collection to start before the analog output starts, and end after the analog output stops?

 

Thank you!

 

 

0 Kudos
Message 1 of 3
(2,084 Views)

@all_ok  a écrit :

Hello,

 

I am using PXIe 6378 to supply a 1kHz sine wave as an analog output (for 5ms). I want to record data collected from one of the analog input channels on the same PXIe 6378 during the same 5ms. Is there a way to synchronize data collection to start before the analog output starts, and end after the analog output stops?

 

Thank you!

 

 


Is there a way to synchronize data collection to start before the analog output starts, and end after the analog output stops?

Sincerely,

Alok

0 Kudos
Message 2 of 3
(2,060 Views)
Solution
Accepted by topic author all_ok

Hello,

 

If the sample rate is the same for acquisition and generation, with finite acquisition/generation, the easiest way is to share the sample clock. Configure the acquisition task to use the aosampleclock as sample clock, start the acquisition task first, and then start the generation.

 

You will get one sample acquiered for each sample generated.

 

Hope this helps,

Message 3 of 3
(2,024 Views)