Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I simoultaneously DAQmx read/write on the same PXI-6368?

I am currently sampling at 10K for my read and calling DAQmxRegisterEveryNSamplesEvent with N = 100 sampling 13 analog channels. The subroutine called reads the buffer with DAQmxReadAnalogF64 and processes the data. In a separate thread I access the processed data and call DAQmxWriteAnalogF64 creating a control loop. 

 

The problem is I have observed both threads getting hung up on both the DAQmx reads and writes. 

 

Am I trying to do something that these cards are not capable of? Would I be better suited offloading the writes to another PXI card?

0 Kudos
Message 1 of 2
(3,374 Views)

Hi Sneaker,

 

What do you mean by "hung up?" Is it stopping there and not starting again, or just taking longer than expected?

 

Would this application work without calling  DAQmxRegisterEveryNSamplesEvent?

0 Kudos
Message 2 of 2
(3,321 Views)