From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Method for setting DMA transfer M series

I have an M series card and am programming in C#. Can I ask how do I set DMA mode?. The Help says "Use the AIDataTransferMechanism enumeration member Dma", but I can't find any function of which this is a member. It is not in Task and not in Device.

Ray
0 Kudos
Message 1 of 3
(2,922 Views)
Have now puzzled out the answer to my own question.

task.AIChannels.All.DataTransferMechanism=AIDataTransferMechanism.Dma;

Ray
0 Kudos
Message 2 of 3
(2,922 Views)
Thanks for the answer!.
0 Kudos
Message 3 of 3
(2,548 Views)