NI-DAQmx .NET Framework 4.0 API Reference

CounterSingleChannelReader.ReadSingleSampleDouble Method

  • Updated2023-02-21
  • 1 minute(s) read
CounterSingleChannelReader.ReadSingleSampleDouble Method
Reads a single Double sample from a counter task.

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

Syntax

public double ReadSingleSampleDouble()
Public Function ReadSingleSampleDouble As Double

Return Value

Type: Double
A Double sample from the task. NI-DAQmx scales the returned 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.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.
OutOfMemoryExceptionThere is not enough memory to carry out this operation.

Remarks

Use this method when counter samples are scaled to a floating-point value, such as for frequency and period measurement.

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

Log in to get a better experience