Solved! Go to Solution.
Well I think you can see that the code you have posted isn't quite what you were asking for in your first post. One caveat with the code that you posted is that there is an 8k FIFO on the 6211 that will quickly fill up, leaving you a pretty large amount of latency (at 512 Hz, 16 seconds of latency).
The feature you would need to do what you described in your first post is called "Hardware Timed Single Point". Unfortunately it isn't available on the 6211. In general, USB isn't a great choice if you are interested in low latency single point applications.
Based on the example you posted, you'd be better off doing something like this:
There is no sample clock in this case though, so if you need exact timing between updates then this wouldn't be a good solution. However, if the AO is just being updated to a new DC value based off of a UI slider then I don't see why a sample clock would be necessary.
You're right, first i was going to aquire the generated signal from software, but now i'm going to hardware the output to an input channel, and then it doesn't need to be synchronised.