06-04-2020 10:41 PM
Hi,
I'm developing a VI that continuously samples an analog signal via DAQmx @ 66 kHz. I'd like to synchronize an analog output signal which serves as a trigger for an external piece of hardware (camera). Since the camera can only sample up to 100 Hz I have to wait for 660 loops of AI until the AO can execute. The challenge for me is how to synchronize the execution of AI and AO? It is very important that AI continuously samples with no interruption and that when AO is ready to execute, it executes at the same time as the next execution round of AI.
Apologies for not attaching a complete code yet since it's still a work in progress. I have everything except implementing the AO and the synchronization.
Any suggestions are greatly appreciated.
Nick.
06-05-2020 12:33 AM
Some updates on this:
I decided to just set AO on the same clock as AI so they run together at the same speed. Now it's easier to sync them both. The trick is to rebuild the AO trigger at a rate suitable for the camera. Now I have to test it, can anyone recommend a way to verify the timings of AI and AO? Perhaps something TDMS logging can help with?
Cheers,
Nick.