Hi,
first of all: I use DAQ-Card-6062E. I program in C++.
Now my question:
I use the NI VisualC Examples for analog input, double buffered and analog output, double buffered.
I have several threads: main thread, input thread and output thread. The main thread starts the input thread with the analog input function (which then runs continuously). On each DAQ_DB_HalfReady the main thread is invoked to transform the input data.
After that transformation, with some delay, the output thread is started by the main thread to output the transformed data.
In the NI VisualC analog output example first of all the "Timeout_Config" function is called. This function returns the error 10609 "A transfer is already in progress for the specified resource, or the operation is not allowed because the device is in the process of performing transfers, possibly with different resources." When I stop input and then start output, the message doesn't occur.
What can I do that analog input and output can run simultaneously? Or is that not possible?
Hope you can help me. Thanks in advance.
Kai