Hi Yingmai,
You could certainly use that function call to do something during a continous analog output. If you want a description of the call please look at the NI-DAQmx C reference help, that should have installed with your drivers. You can get to it from the programs menu under National Instruments>>NI DAQ. This is not all you need to do an analog output though. The best examples of how to do an analog output are located in the following directory.
C:\Program Files\National Instruments\NI-DAQ\Examples
There are numerous analog output examples there in different programming languages. In your message you mentioned this
QmxRegisterEveryNSamplesEvent() for continuous Analog input. Is that an example you already have, or do you need an example of this function in both an input and an output situation. I was a little unclear what that part of your message was trying to say.
Please let me know if I can help any further on this issue.
Michael D
Applications Engineering
National Instruments