09-18-2008 12:47 PM
Hi,
I'm working on a program to simultaneously generate and acquire signals. Both operations are carried out continuously. The acquisition part is standard and the generation is in non-regeneration mode, because the signal is updated every period. Both operations are controlled by the same while loop. The program is fairly similar to the "Multi-Function-Synch AI-Read Dig Chan.vi".
The sample rate is different for the 2 operations. For the 2 operations to be synchronised and to not miss any data, is it correct that the following condition has to be verified :
# of samples read / generation sample rate = # of samples written / acquisition sample rate
Is this enough for the program to work properly, or I have I missed something ?
I have a PCI-6221 (37 pin) card and Labview 8.0.
Thanks,
09-21-2008 03:10 PM
Hi Scalpas,
Please check the "Multi Function Synchronization" of the following link
http://zone.ni.com/devzone/cda/tut/p/id/3615
Best Regards,
Faris
09-21-2008 04:27 PM
Hi Faris,
Thanks for your answer. I've read this tutorial, but it doesn't include continuous generation and non-regeneration.
Regards,
09-23-2008 09:12 AM
Hi,
I really can't confirm your first question unless you post a screen shot of your code, or the code itself.
Best regards,
Faris
09-29-2008 05:51 PM
Hi,
I was a bit confused when I wrote my first message, but I've played around with the various timing parameters and I think I've worked everything out.
Thanks for your help !