Home
NI DAQmx Base C API reference Prev Page Prev Page
NI-DAQmx Base 3.x C Function Reference Help
Conventions
Related Documentation
Key Concepts
Clocks
Terminal Names
Task Configuration/Control
DAQmxBaseClearTask
DAQmxBaseCreateTask
DAQmxBaseIsTaskDone
DAQmxBaseLoadTask
DAQmxBaseResetDevice
DAQmxBaseStartTask
DAQmxBaseStopTask
Channel Configuration/Creation
Create Analog Input Channels
DAQmxBaseCreateAIThrmcplChan
DAQmxBaseCreateAIVoltageChan
Create Analog Output Channel
DAQmxBaseCreateAOVoltageChan
Create Digital Input Channels
DAQmxBaseCreateDIChan
Create Digital Output Channels
DAQmxBaseCreateDOChan
Create Counter Input Channels
DAQmxBaseCreateCIPeriodChan
DAQmxBaseCreateCICountEdgesChan
DAQmxBaseCreateCIPulseWidthChan
Position
DAQmxBaseCreateCILinEncoderChan
DAQmxBaseCreateCIAngEncoderChan
Create Counter Output Channels
DAQmxBaseCreateCOPulseChanFreq
Timing
DAQmxBaseCfgSampClkTiming
DAQmxBaseCfgImplicitTiming
Triggering
Start Trigger
DAQmxBaseDisableStartTrig
DAQmxBaseCfgDigEdgeStartTrig
DAQmxBaseCfgAnlgEdgeStartTrig
Reference Trigger
DAQmxBaseCfgAnlgEdgeRefTrig
DAQmxBaseCfgDigEdgeRefTrig
DAQmxBaseDisableRefTrig
Read Functions
DAQmxBaseReadAnalogF64
DAQmxBaseReadBinaryI16
DAQmxBaseReadCounterF64
DAQmxBaseReadCounterScalarF64
DAQmxBaseReadCounterScalarU32
DAQmxBaseReadCounterU32
DAQmxBaseReadDigitalScalarU32
DAQmxBaseReadDigitalU32
DAQmxBaseReadDigitalU8
Write Functions
DAQmxBaseWriteAnalogF64
DAQmxBaseWriteDigitalU8
DAQmxBaseWriteDigitalU32
DAQmxBaseWriteDigitalScalarU32
Export HW Signals
DAQmxBaseExportSignal
Internal Buffer Configuration
DAQmxBaseCfgInputBuffer
Error Handling
DAQmxBaseGetExtendedErrorInfo
Glossary
Important Information
Warranty
Copyright
Trademarks
Patents
WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS
Environmental Management
Technical Support and Professional Services

DAQmxBaseWriteDigitalU32

int32 DAQmxBaseWriteDigitalU32 (TaskHandle taskHandle, int32 numSampsPerChan, bool32 autoStart, float64 timeout, bool32 dataLayout, uInt32 writeArray[ ], int32 *sampsPerChanWritten, bool32 *reserved);

Purpose

Writes multiple 32-bit unsigned integer samples to a task that contains one or more digital output channels. Use this format for devices with up to 32 lines per port.

Note Buffered writes require a minimum buffer size of 2 samples.

Parameters

Input
Name Type Description
taskHandle TaskHandle The task to write samples to.
numSampsPerChan int32 The number of samples, per channel, to write. You must pass in a value of 0 or more in order for the sample to write. If you pass a negative number, this function returns an error.
autoStart bool32 Specifies whether or not this function automatically starts the task if you do not start it. This is used only for static digital tasks, otherwise set autoStart to False.
timeout float64 The amount of time, in seconds, to wait for this function to write all the samples. This function returns an error if the timeout elapses.

dataLayout bool32 Specifies how the samples are arranged, either interleaved or non-interleaved.
Value Description
DAQmx_Val_GroupByChannel Group by channel (non-interleaved)
DAQmx_Val_GroupByScanNumber Group by sample (interleaved)
writeArray uInt32 [ ] The array of 32-bit integer samples to write to the task.
reserved bool32 * Reserved for future use. Pass NULL to this parameter.
Output
Name Type Description
sampsPerChanWritten int32 * The actual number of samples per channel successfully written to the buffer.

Return Value

Name Type Description
status int32 The error code returned by the function in the event of an error or warning. A value of 0 indicates success. A positive value indicates a warning. A negative value indicates an error.
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)