National Instruments Welding System 321645c-01 Manual De Usuario
Chapter 2
Function Reference — Align_DMA_Buffer
NI-DAQ FRM for PC Compatibles
2-22
©
National Instruments Corporation
Align_DMA_Buffer
Format
status = Align_DMA_Buffer (deviceNumber, resource, buffer, count, bufferSize, alignIndex)
Purpose
Aligns the data in a DMA buffer to avoid crossing a physical page boundary. This function is
for use with DMA waveform generation and digital I/O pattern generation (AT-MIO-16F-5
and AT-DIO-32F only).
for use with DMA waveform generation and digital I/O pattern generation (AT-MIO-16F-5
and AT-DIO-32F only).
Parameters
Input
Output
Parameter Discussion
resource represents the DAC channel (for waveform generation) or the digital input or output
group (for pattern generation) for which NI-DAQ uses the buffer.
group (for pattern generation) for which NI-DAQ uses the buffer.
0:
DAC channel 0.
1:
DAC channel 1.
2:
DAC channels 0 and 1.
11:
DIG group 1 (group size of 2).
12:
DIG group 2 (group size of 2).
13:
DIG group 1 (group size of 4).
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
resource
i16
represents the DAC channel or the digital input
or output group
or output group
buffer
[i16]
integer array of samples to be used
count
u32
number of data samples
bufferSize
u32
actual size of buffer
Name
Type
Description
alignIndex
u32
offset into the array of the first data sample