Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Base DMA error 42: DMA Channel in wrong state

I am using a PXI-6115 board on a Linux machine (RHEL 5.2) with DAQmxBase 3.2.0f1, attempting to run the example vi:

 

examples/daqmxbase/dynamic/ai/Acq&Graph Voltage-Int Clock-Dig Ref.vi

 

reading out short waveform from a single channel with external reference trigger.

 

I receive the following error:

 

Error 42 occurred at RLP Invoke Node:

The DMA Channel is in the wrong state.  The DMA Channel may need to be Reset.  Or you may have secified an invalid DMA Mode, or a DMA Mode which has not been implemented yet.

 

Delving into the example code, the errors occurs in the DMA Scarab Read routine, in DMA Scarab Move, when calling DMA Start.  DMA Scarab Move runs successfully earlier when it's called to initiate the DMA transfer, but once initial Scarab Move has been read and more data is required from the Scarab, this error crops up. Interestingly, when DMA Scarab Move runs the first time, it often moves only a small chunk of data into the DMA buffer, much less than the buffer size...  this doesn't give an error, but might be related?

 

Any help is appreciated-  Since this is an NI example vi, this is hopefully easily reproducible...

0 Kudos
Message 1 of 6
(3,485 Views)

I have brought this to the attention of R&D and will post as soon as I have some information.

 

Regards,

Glenn

Applications Engineer

National Instruments

 


Regards,
Glenn
0 Kudos
Message 2 of 6
(3,459 Views)

I was able to duplicate your issue and I have filed CAR(Correcive Action Request) #181577  to address this issue. You may reference this id number in future releases of the driver to check whether or not the issue was fixed.

In the meantime, you can try the following workarounds for your application.
1) Use Start Trigger
2) Set-up a software trigger using a Digital Read. {Due to single-threading in DAQmx Base, latency can occur between the trigger and the analog input}
3) Acquire all samples and ignore unwanted samples

4) You may want to consider switching distributions(Mandriva, SUSE) so that you can use DAQmx 8.0.1 and get full support.

 

Regards,

Glenn

Applications Engineer

National Instruments

 

 


Regards,
Glenn
0 Kudos
Message 3 of 6
(3,434 Views)

Thanks for checking this out, Glenn -- I think I see how to make option (3) work out (and I'll have to find out if (4) is an option for us or not...)

 

-Carl

0 Kudos
Message 4 of 6
(3,432 Views)

Hello, just an update for anybody following this problem:

 

 The problem seems to have been solved by inserting a call to "SSeries-- AI DMA Channel Config.vi" just before "SSeries-- AI DMA Transfer from Scarab.vi" in "SSeries-- AI Scarab DMA Read Samples.vi".  I haven't tested this extensively yet, but so far I seem to see the correct functionality.

0 Kudos
Message 5 of 6
(3,367 Views)
Thanks, Carl. We've made a note to your workaround and will investigate its robustness when we enter the next development cycle.
Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 6 of 6
(3,339 Views)