11-02-2011 01:40 PM
The 6602 does support internal routing for most counter signals (refer to the device routes in Measurement and Automation Explorer). However, the A, B, and Z encoder terminals are hard-coded on this device.
Best Regards,
11-02-2011 01:49 PM
OK,
Thats what I figured.
Based on my experimentation I have found that I am able to configure the sample clock for the various encoder counters to come from PFIxx.
For example this works:
DAQmxCfgSampClkTiming ( cthCounter1EncoderPosition, // TaskHandle Task_Handle,
"/Dev1/PFI1", // char Source[],
1000.0, // float64 Rate,
DAQmx_Val_Rising, // int32 Active_Edge,
DAQmx_Val_FiniteSamps, // int32 Sample_Mode,
NUM_ENCODER_SAMPS // uInt64 Samples_Per_Chan
);
Thanks for the help with this,
Kirk