TransferMode

Specify how data is transferred from data acquisition device to system memory

Description

For National Instruments® NI-DAQmx hardware, this property is ignored. The device driver automatically selects the most efficient transfer mode available.

For National Instruments Tradional NI-DAQ hardware, TransferMode can be Interrupts or SingleDMA for both analog input and analog output subsystems. If TransferMode is Interrupts, then data is transferred from the hardware first-in, first-out memory buffer (FIFO) to system memory using interrupts. If TransferMode is SingleDMA, then data is transferred from the hardware FIFO to system memory using a single direct memory access (DMA) channel. Some boards also support a TransferMode of DualDMA for analog input subsystems. For example, the AT-MIO-16E-1 board supports this transfer mode. If TransferMode is DualDMA, then data is transferred from the hardware FIFO to system memory using two DMA channels. Depending on your system resources, data transfer via interrupts can significantly degrade system performance.

For Measurement Computing™ hardware, TransferMode can be Default, InterruptPerPoint, DMA, InterruptPerBlock, or InterruptPerScan.If TransferMode is Default, the transfer mode is automatically selected by the driver based on the board type and the sampling rate. If TransferMode is InterruptPerPoint, a single conversion is transferred for each interrupt. You should use this property value if your sampling rate is less the 5 kHz or you specify a small block size for memory buffering (as defined by the BufferingConfig property). If TransferMode is DMA, data is transferred using a single DMA channel. If TransferMode is InterruptPerBlock, a block of data is transferred for each interrupt. You should use this property value if your sampling rate is greater than 5 kHz and you are using a board that has a fast maximum sampling rate. Note that a data block is defined by the board, and usually corresponds to half the FIFO size. If TransferMode is InterruptPerScan, data is not transferred until the entire scan is complete. This can only be used when the number of points acquired is less than or equal to the FIFO size. You should use this mode if your sampling rate is higher than the maximum continuous scan rate of the data acquisition device.

For Keithley® hardware, TransferMode can be Interrupts or DMA. If TransferMode is Interrupts, then data is transferred from the hardware First In, First Out (FIFO) memory buffer to system memory using interrupts. If TransferMode is DMA, then data is transferred from the hardware FIFO buffer to system memory using a single DMA channel. Note that if bus mastering is disabled in the DriverLINX Configuration panel for the device, then DMA is not offered as an option.

Characteristics

Vendor

Keithley, Measurement Computing, National Instruments

Usage

AI, AO, Common

Access

Read/write

Data type

String

Read-only when running

Yes

Values

Advantech®

{InterruptPerPoint}

Transfer single data points using interrupts.

InterruptPerBlock

Transfer a block of data using interrupts (AI only).

Keithley®

DMA

Transfer data using a single DMA channel.

Interrupts

Transfer data using interrupts.

If bus mastering is disabled in the DriverLINX Configuration panel for the device, then DMA is not available, and the default is set to Interrupts.

Measurement Computing™

{Default}

The transfer mode is automatically selected by the driver based on the board type and the sampling rate.

InterruptPerPoint

Transfer single data points using interrupts.

DMA

Transfer data using a single DMA channel (AI only).

InterruptPerBlock

Transfer a block of data using interrupts (AI only).

InterruptPerScan

Transfer all data when the acquisition is complete (AI only).

National Instruments®

Interrupts

Transfer data using interrupts.

SingleDMA

Transfer data using a single DMA channel.

DualDMA

Transfer data using two DMA channels.

This default property value is supplied by the driver. For most devices that support data transfer via interrupts and DMA, SingleDMA is the default value.

Examples

Set the TransferMode property for a National Instruments board before acquiring data.

ai = analoginput('nidaq', 'Dev1');
set(ai, 'TransferMode', 'SingleDMA');
addchannel(ai, 1:2);
softscope(ai)
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS