NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents
Product DocumentationNI-DAQmx .NET Framework 4.0 API ReferenceCounterSingleChannelWriter.WriteSingleSample Method (Boolean, CODataTime)Current page
Table of Contents

CounterSingleChannelWriter.WriteSingleSample Method (Boolean, CODataTime)

CounterSingleChannelWriter.WriteSingleSample Method (Boolean, CODataTime)

CounterSingleChannelWriterWriteSingleSample Method (Boolean, CODataTime)

Writes a time sample to a single COChannel in a counter output task.

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

Syntax

public void WriteSingleSample(
	bool autoStart,
	CODataTime data
)
Public Sub WriteSingleSample ( 
	autoStart As Boolean,
	data As CODataTime
)

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: NationalInstruments.DAQmxCODataTime
A sample to write to the task.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

NI-DAQmx scales the generated data to the units of the measurement, including any custom scaling you apply to the channel. You specify these units with the create channel methods or the DAQ Assistant.

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.

See Also

Was this information helpful?