Hello,
I have attached two programs to this post. They should give you an idea of how to do this. You want to sync the start of the two different operations at once. For this we will use a digital trigger.
If you do not have a trigger signal, you can generate one in software, or you could modify the pulse generation to use /DevX/ai/SampleClock instead of /DevX/ai/StartTrigger. Then use a regular acquisition vi, it�s first scan will start the digital pulse.
Look over these VIs and let me know if you have any further questions.
Best regards,
Justin T.
National Instruments