Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ 6014-- a great problem

How can I execute another actions when I generate a waveform from an analogue channel? I am using DAQ6014, the basic output instruction is "WFM_op"; when I use this instruction, the computer does not respond another instruction even the "WFM_check". Actually, I want to use DAQ to generate some frequency waveform to a system to get some result and then aquire the result from this system by the same card to check in the computer, if I can not do anything when I use waveform generation, how can I do the sampling? Please some expert to give me some advice to help solve this problem.
0 Kudos
Message 1 of 2
(2,479 Views)
Greetings,

The behavior you are experiencing is caused by the fact that WFM_Op() is a synchronous function. It does not return or release control of the NI-DAQ driver until it has completed. Thus, once WFM_Op() has been called, no other Traditional NI-DAQ functions can execute until it completes. It appears that you desire to perform an asynchronous waveform generation. To do this, I would suggest that you examine the example WFMsingleBufAsync.C. It is available from the following location:

C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao

Good luck with your application.

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