Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous analog input output

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
0 Kudos
Message 1 of 4
(3,717 Views)
hi kai,

have look at this thread:

and want to refer you to this tutorial

best regards
timo
0 Kudos
Message 2 of 4
(3,690 Views)
Hi TimoS,

thanks for your advice. Sorry for the delay.

I hope you can answer me another question.

I read the tutorial you referred to. There is mentioned within the section "Independent AI and AO" two unrelated operations run on different systems.

What is meant by "system"? The hardware or software?


Thanks in advance,

Kai
0 Kudos
Message 3 of 4
(3,632 Views)
Hi,

has anybody a working example for simultaneous analog input and output? Perhaps a really easy one, just to show the conditions to do this. Or can anyone describe how to do it?

It doesn't work at all in my application...

I've seen that there are example codes for Labview, VB and NI-DAQmx. But I'm using the traditional NI-DAQ-Functions in my Code, so the available examples aren't very useful for me.

Hope anyone can help me, I'm really desperate.

Thanks in advance,

Kai
0 Kudos
Message 4 of 4
(3,618 Views)