Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to do another thing before returning of a buffered waveform generation?

Hi There,

The DAC0 and DAC1 of PCI-6024E are used to generate waveforms by the buffered analog output mode. We know that before the buffered generation is completed, the starting function of generating waveform, either "WFM_op" or "WFM_Group_Control",will not return, unless you call "Timeout_Config". In my application developed by Visual C++, I hope that after starting the waveform generation process, I can do another thing, for example, plotting data or data processing. Would you tell me how to do that? I greatly appreciate you for any reply and suggestions.

Kylin
0 Kudos
Message 1 of 2
(2,455 Views)
Kylin,

Actually, WFM_Group_Control() is not synchronous. It is asynchronous and will return immediately after the generation has been started. I would suggest that you take a look at the following examples. They are located in C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao:

WFMsingleBufAsync.C
WFMsingleBufSync.C

WFMsingleBufAsync.C is an asynchronous generation that uses WFM_Group_Control(). On the other hand, WFMsingleBufSync.C is a synchronous generation that uses WFM_Op(). In your situation, you would want to follow the programming structure of WFMsingleBufAsync.C.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 2
(2,455 Views)