What you could do would be to setup a separate tasks for your digital input and analog generation and use the the change detection from the digital line as the timing source for the analog generation.
Basically, setup a digital input task (create channel, timing VI, start task, clear task). Set the DAQmx Timing VI to Change Detection, select the timing signal line for your source and follow the instructions in the help on how to set it up for rising and falling edge. You just need to start the task; you don't actually need to read anything.
Next setup an analog output task and for the DAQmx Timing VI, set it to Sample Clock. What you will do here is use a DAQmx Terminal Constant and set it to /(Your device)/ChangeDetectionEvent. This should now use the rising and falling edges found by the change detection as the sample clock for your analog analog generation. Just make sure you wire your VI so that the digital task starts first.
Hope this helps!
Adam W
National Instruments