It will depend on what you are programming the NI 5112 device with.
If you are using LabVIEW, you can use the example program attached below. In it, it will show you how this is done.
If you are using VB, VC++ or CVI, you can look at one of the NI 5112 shipping examples that are installed on your computer. These are located in the VXIPNP folder. For example, the VC++ example would be located here:
C:\VXIpnp\WinNT\NISCOPE\Examples\c\MStudioC++\5112Sync
These examples will show you how to synchronize the two digitizers.
Let me know if you have any questions about these examples.
Brian