Hello DAQ question,
Welcome to the NI Discussion Forums! From your post it looks like you would like to synchronize two USB-6251 devices using their sample clocks. This <a href="http://forums.ni.com/ni/board/message?board.id=250&message.id=10165" target="_blank">forum post</a> involves some great information on how to get started with using DAQmx. To perform sample clock synchronization, there are several steps to follow.
1. Choose one device to be the master device and one to be the slave. The master device will handle the timing and starting of both devices.
2. On the master device you will need to export your sample clock to a PFI line so that it can be wired to the slave device. Use the function (from the DAQmx C Reference Help) DAQmxExportSignal. This function allows for you to export a hardware signal to a PFI line that you specify. You can then wire this PFI line to your slave device.
3. On the slave device set the sample clock source to be the PFI line that has the master device?s sample clock attached to it.
4. Start the slave task first, then the master task. This will ensure that the slave task is waiting for the sample clock from the master device so they both start when the master starts. If you start the master task first, the slave and the master will be clocking at the same time but the master task could have a few extra samples.
I hope this helps, post back if you have any more questions. Also, check out this <a href="http://zone.ni.com/devzone/cda/tut/p/id/3615" target="_blank">tutorial</a> for an explanation on how the different synchronization schemes work with M Series devices.