NI-DAQmx .NET Framework 4.5 API Reference

DigitalSingleChannelWriter.WriteSingleSampleMultiLine Method

  • Updated2023-02-21
  • 1 minute(s) read
DigitalSingleChannelWriter.WriteSingleSampleMultiLine Method
Writes a single Boolean sample to a single DOChannel in a task. The channel can contain multiple digital lines.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public void WriteSingleSampleMultiLine(
	bool autoStart,
	bool[] data
)
Public Sub WriteSingleSampleMultiLine ( 
	autoStart As Boolean,
	data As Boolean()
)

Parameters

autoStart
Type: SystemBoolean
If set to this method automatically calls Start if you do not explicitly call it. You cannot set this parameter to if you have installed events on the task.
data
Type: SystemBoolean
A 1D array of samples to write to the task. Each element of the array corresponds to a digital line within the channel.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.
IndexOutOfRangeExceptiondata has a non-zero lower bound.

Remarks

NI-DAQmx read and write methods time out after the amount of time specified by the Timeout property on the task you are reading from or writing to.

This method returns immediately if the output buffer has sufficient space for the samples. Otherwise, the call is blocked until the application generates enough samples to fit the new data into the output buffer.

See Also

Log in to get a better experience