Discussions au sujet de NI LabVIEW

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

[PXIe 6378] AI and AO synchronization

Résolu !
Accéder à la 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 Compliments
Message 1 sur 3
2 055 Visites

@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 Compliments
Message 2 sur 3
2 031 Visites
Solution
Accepté par 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 sur 3
1 995 Visites