Hello,
I'm trying to synchronize two acquisitions channels on a NI USB-6251 DAQ: an analog input and a digital input.
I'm following this example: https://decibel.ni.com/content/docs/DOC-12185 which seems to work in almost every case (sometimes there is a single acquisition sample (0.1 ms) shift between the two channels).
To understand my mistake, I've a question about the point 3. in the block diagram of the example :
3. Call the Start VI to arm the two functions. Make sure the digital input task is armed before the analog input task. This will ensure both will start at the same time.
Why is it so important to arm the digital task before the analog one? Isn't it the order in which I call the tasks inside the loop that is important?
Thank you for your help,
Matthieu