le 11-14-2019 11:18 AM
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!
Résolu ! Accéder à la solution.
11-14-2019 12:23 PM - modifié 11-14-2019 12:24 PM
@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
le 11-15-2019 02:36 AM
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,