01-22-2008 10:04 AM
01-23-2008 05:37 PM - edited 01-23-2008 05:37 PM
01-23-2008 05:56 PM
01-24-2008 12:28 PM
01-24-2008 02:26 PM
01-24-2008 04:04 PM
01-30-2008 10:55 AM - edited 01-30-2008 10:56 AM
#####################################################################################################
You cannot synchronize counter input applications performing period, frequency, pulse width or semi-period measurements in the same sense as analog input or output applications. These types of counter input applications cannot be programmed to make their measurements at the same time because the signals being measured themselves determine when the measurements are made, and there is no reason to set up multiple devices to measure the same signal. You also cannot use Start Triggers for counter input applications.
You can, however, ensure that all counters are using the same timebase for their input measurements by sharing the CI Counter Timebase signal. Program all devices to use the same signal (usually the 20MHzTimebase from one of the devices) as their CI Counter Timebase. More generally, one device can be queried for its CI Counter Timebase source and that terminal can be set as the source of the CI Counter Timebase for the other devices.
If you are synchronizing buffered counter input applications performing edge counting, you can do so by sharing the Sample Clock. The Sample Clock must be externally supplied to one of your devices. The other synchronized devices are programmed to use this device's CtrnGate signal as their Sample Clock, where n is the number of the counter.
If you are synchronizing pulse generation counter output applications, you can do so by sharing the CO Counter Timebase and Start Trigger signal. Program all devices to use the same signal (usually the 20MHzTimebase from one of the devices) as their CO Counter Timebase. More generally, one device can be queried for its CO Counter Timebase source and that terminal can be set as the source of the CO Counter Timebase for the other devices. Program all devices to use the same signal as their Digital Edge Start Trigger. This is typically the CtrnGate signal from one of the devices, where n is the number of the counter.
#####################################################################################################
I've updated my attachment to show how to do this. You have to explicity set the rate and source to be the 20MHz timebase, because it will try to use the 80 MHz timebase by default (usually just used internal to a single board) but you can't export the 80 over RTSI.
Hopefully that makes your drift go away. I set it up here and it all seemed to look fine.