NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

AnalogSingleChannelReader Class

AnalogSingleChannelReader Class

AnalogSingleChannelReader Class

Contains methods for reading samples from the analog input channel in a task.

Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    NationalInstruments.DAQmxAnalogSingleChannelReader

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

Syntax

public class AnalogSingleChannelReader : MarshalByRefObject, 
	ISynchronizeCallbacks, ISupportSynchronizationContext
Public Class AnalogSingleChannelReader
	Inherits MarshalByRefObject
	Implements ISynchronizeCallbacks, ISupportSynchronizationContext

The AnalogSingleChannelReader type exposes the following members.

Constructors

  NameDescription
Public methodAnalogSingleChannelReader
Creates a new instance of the AnalogSingleChannelReader class to read from the specified DaqStream.
Top

Properties

  NameDescription
Public propertySynchronizeCallbacks
Specifies how events and callback delegates are invoked.
Top

Methods

  NameDescription
Public methodBeginMemoryOptimizedReadMultiSample(Int32, AsyncCallback, Object, Double)
Begins an asynchronous read of one or more floating-point samples from a single AIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSample(Int32, AsyncCallback, Object, Double, ReallocationPolicy)
Begins an asynchronous read of one or more floating-point samples from a single AIChannel in a task.
Public methodBeginMemoryOptimizedReadWaveform(Int32, AsyncCallback, Object, AnalogWaveformDouble)
Begins an asynchronous read of one or more analog waveform samples from a single AIChannel in a task.
Public methodBeginMemoryOptimizedReadWaveform(TimeSpan, AsyncCallback, Object, AnalogWaveformDouble)
Begins an asynchronous, memory-optimized read of one or more analog waveform samples from a single AIChannel object in a task for a specified duration.
Public methodBeginMemoryOptimizedReadWaveform(Int32, AsyncCallback, Object, AnalogWaveformDouble, ReallocationPolicy)
Begins an asynchronous read of one or more analog waveform samples from a single AIChannel in a task.
Public methodBeginMemoryOptimizedReadWaveform(TimeSpan, AsyncCallback, Object, AnalogWaveformDouble, ReallocationPolicy)
Begins an asynchronous, memory-optimized read of one or more analog waveform samples from a single AIChannel object in a task for a specified duration.
Public methodBeginReadMultiSample
Begins an asynchronous read of one or more floating-point samples from a single AIChannel in a task.
Public methodBeginReadSingleSample
Begins an asynchronous read of a single floating-point sample from a single AIChannel in a task.
Public methodBeginReadWaveform(Int32, AsyncCallback, Object)
Begins an asynchronous read of one or more analog waveform samples from a single AIChannel in a task.
Public methodBeginReadWaveform(TimeSpan, AsyncCallback, Object)
Begins an asynchronous read of one or more analog waveform samples from a single AIChannel object in a task for a specified duration.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEndMemoryOptimizedReadMultiSample
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSample(Int32, AsyncCallback, Object, Double) and retrieves the read samples.
Public methodEndMemoryOptimizedReadWaveform
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadWaveform(Int32, AsyncCallback, Object, AnalogWaveformDouble) and retrieves the read samples.
Public methodEndReadMultiSample
Handles the end of an asynchronous read initiated with BeginReadMultiSample(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadSingleSample
Handles the end of an asynchronous read initiated with BeginReadSingleSample(AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadWaveform
Handles the end of an asynchronous read initiated with BeginReadWaveform(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodMemoryOptimizedReadMultiSample(Int32, Double, Int32)
Reads one or more floating-point samples from a single AIChannel in a task.
Public methodMemoryOptimizedReadMultiSample(Int32, Double, ReallocationPolicy, Int32)
Reads one or more floating-point samples from a single AIChannel in a task.
Public methodMemoryOptimizedReadWaveform(Int32, AnalogWaveformDouble)
Reads one or more analog waveform samples from a single AIChannel in a task.
Public methodMemoryOptimizedReadWaveform(TimeSpan, AnalogWaveformDouble)
Performs a memory-optimized read of one or more analog waveform samples from a single AIChannel object in a task for a specified duration.
Public methodMemoryOptimizedReadWaveform(Int32, AnalogWaveformDouble, ReallocationPolicy)
Reads one or more analog waveform samples from a singleAIChannelin a task.
Public methodMemoryOptimizedReadWaveform(TimeSpan, AnalogWaveformDouble, ReallocationPolicy)
Performs a memory-optimized read of one or more analog waveform samples from a single AIChannel object in a task for a specified duration.
Public methodReadMultiSample
Reads one or more floating-point samples from a single AIChannel in a task.
Public methodReadSingleSample
Reads a single floating-point sample from a single AIChannel in a task.
Public methodReadWaveform(Int32)
Reads one or more analog waveform samples from a single AIChannel in a task.
Public methodReadWaveform(TimeSpan)
Reads one or more analog waveform samples from a single AIChannel object in a task for a specified duration.
Public methodToString
Returns a string representation of the object.
(Overrides ObjectToString.)
Top

Remarks

Tip Tip
Example applications are located in the Public Documents\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National InstrumentsNI-DAQmxNI-DAQmx Examples.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Was this information helpful?