LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to collect 1 encoder sample for every n analog samples

Hello folks,

 

EQUIPMENT:

LabVIEW 7.1

PXI-6602 - collect quadrature encoder data

PXI-6052E - collect several analog input channels

 

The 6052E will use its onboard clock (i.e. ai sample clock) to capture analog input data at 50kS/s.  I would like to also use the 6052E ai sample clock to capture the encoder data (for synchronized ai and encoder data), however I want to sample the encoder at 1kS/s.

 

Is there a "built-in" way to do this, or do I have to create something in my read loop to handle it?

 

Best Regards,

Chris  

0 Kudos
Message 1 of 2
(2,627 Views)

Chris,

If you want to synchronize the two cards, you need to share the timebase and a start trigger.  There are several examples that show how to synchronize devices, which you can open by going to Help>>Find Examples.  Then browse to Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Device.  You can input a different Sampling Rate for each device (even though currently they are set up to go at the same rate). 

 

Cheers, 

 

-Christina

0 Kudos
Message 2 of 2
(2,594 Views)