NI-DAQmx .NET Framework 4.0 API Reference

DigitalSingleChannelWriter.WriteSingleSampleSingleLine Method

  • Updated2023-02-21
  • 1 minute(s) read
DigitalSingleChannelWriter.WriteSingleSampleSingleLine Method
Writes a single Boolean sample to a single digital line in a task. The task can contain only a single digital line.

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

Syntax

public void WriteSingleSampleSingleLine(
	bool autoStart,
	bool data
)
Public Sub WriteSingleSampleSingleLine ( 
	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 Boolean sample to write to the task.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

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