Hello,
There is already an example program posted that should help get you headed in the right direction.
Here is a link to the program.
In order for this program to work properly, there are a couple of things that we will need to get set up. First, we need to go into MAX and right click on the DAQmx folder and select Create New DAQmx Device>>RTSI Cable. Then we want to right click on the RTSI Cable and add each of our devices to the cable. This operation is just going to let DAQmx know that the devices are available to be routed, and that there is a cable connected.
Now in the program, we simply need to sele
ct the appropriate input and output channels on the front panel. Lastly, we need to change the constant on the block diagram for the analog output start trigger, so that it now selects the appropriate ai/StartTrigger. This is the action that causes the two operations to happen at the same time. DAQmx will automatically route the ai/StartTrigger from another board over the registered RTSI cable, and the analog output will start at the same time that the analog input starts.
This is a large subject, and a lot of new information. Just let us know if you have any follow up questions.
Best regards,
Justin T.
National Instruments