I have the NI USB-6251, and I am trying to run the example "Synch AI-AO.c" to read input and generate output at the same time. Because of the USB device's limitations, I had to set the sampling type to "On Demand" and comment out the trigger command. The program reads in data just fine, but it is not outputting anythin like it should be. One thing that has confused me is that there is no "DAQmxWriteAnalogF64" command, so how would this example ever output anything? I see that there is an AOdata array, but if it's never written, how would it be outputted?