LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder Sample Clock Source

I apologize as I know there have been several threads in the past addressing it - but I don't see a head on answer.  I have anlog data acquistion of a couple of channels and 2 position encoders that are being measured on a PXI-6608 card.  The analog data acquition happens continously at 1kHz.  My main loop is set to 50ms timing - so each sample grab from the analog card contains 50 samples.  I want to get position measurements from the encoders synchronized at the same time; so 50 samples of psotion on each encoder aligned to the analog acq channels.  How do I map the sample clock over from the analog card to the 6608 encoder card? 

 

 

 

0 Kudos
Message 1 of 4
(3,366 Views)
<<head scratch>>  It always errors out on the 203 loop iteration <<head scratch>> 
0 Kudos
Message 2 of 4
(3,353 Views)
Example VI is attached (v8.5.1).  Any ideas?
0 Kudos
Message 3 of 4
(3,324 Views)
Figured it out.  Had to delete the "50" on the "Counter 1D DBL NSamp" and leave it undefined (forces the 50 samples based on the loop time and the sample rate defined at the encoder "Sample Clock" blocks.)
Message 4 of 4
(3,314 Views)