MarciDarci,
It does not appear that any example programs exist for your application, but it should not be too difficult to combine a couple of example programs that install with NI-DAQ to accomplish your task:
DOsingleBufPatternGen653x.C
DIsingleBufPatternGenExtClock653x.C
To synchronize your output and input, you need to share the clock these two operations are using. In your case, the output operation should generate the clock (internal clock), and the input operation should use this clock (external clock). Because the input operation is the slave in this situation, it should be configured and started before the output operation. Furthermore, you will need to either wire REQ1 to REQ2 or route the clock through the RTSI bus.
Good luck with your a
pplication.
Spencer S.