ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

AO AI synchronization with non-regeneration

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, 

0 Kudos
Message 1 of 5
(3,667 Views)

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

Bueller
0 Kudos
Message 2 of 5
(3,647 Views)

Hi Faris,

 

Thanks for your answer. I've read this tutorial, but it doesn't include continuous generation and non-regeneration.

 

Regards, 

0 Kudos
Message 3 of 5
(3,644 Views)

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

Bueller
0 Kudos
Message 4 of 5
(3,625 Views)

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 ! 

0 Kudos
Message 5 of 5
(3,586 Views)