hello Joeyang,
If you want to synchronize those boards, the correct thing to do is to route the sample clock through RTSI to the other device. If you have questions on specific functions, the Traditional NI-DAQ Function Reference Help in Start->All Programs->National Instruments->NI-DAQ.
The explanations below were taken from that document:
Example
To send a signal from your E Series device to the RTSI bus, set signal to the appropriate RTSI bus line and source to indicate the signal from your device. To send the analog input start trigger on to RTSI line 3, use the following call:
Select_Signal(deviceNum, ND_RTSI_3, ND_IN_START_TRIGGER, ND_LOW_TO_HIGH);
Example
To receive a signal from the RTSI bus and use it as a signal on your E Series device, set signal to indicate the appropriate E Series device signal and source to the appropriate RTSI line. To use low-to-high transitions of the signal present on the RTSI line 4 as your scan clock, use the following call:
Select_Signal(deviceNum, ND_IN_SCAN_START, ND_RTSI_4, ND_LOW_TO_HIGH);