I have what seems to be a fairly simple task. I need to create a repeated AO sequence that is controlled by TTL signals. This sequence needs to be repeated indefinitely. The AO is a waveform (voltage ramp) after seeing the first trigger, then resetting the voltage after seeing the second trigger. I have a program using DAQmx that comes close, except it misses every other trigger sequence. My program is the following: create a channel, clock source, then a while loop with the first trigger config, AO write (ramp), start, wait, stop, second trigger config, AO write (reset), start, wait, stop. I also create waveforms for each (ramp and reset).
Thanks for your help.