Hi Bram,
Apologies that this post seems to have slipped off the radar.
The requirements that you have listed above don't require a sample clock. However, you probably do want the sample clock to more accurately calculate frequency from the count edges task. Assuming this is the case, you could make the edge count task hardware-timed and generate a sample clock from another source (use one of the other on-board counters). Read a single sample from each counter in your loop, and use software-timing on the AO task. DAQmx Read will block until the sample is available or the timeout has been reached, so you can remove your loop timing and use the Read function to time the loop.
Best Regards,
John Passiak