AnalogSingleChannelReader Class
- Updated2023-02-21
- 6 minute(s) read
AnalogSingleChannelReader Class
Contains methods for reading samples from the analog input channel in a task.
Inheritance Hierarchy
SystemObject
SystemMarshalByRefObject
NationalInstruments.DAQmxAnalogSingleChannelReader
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
Name | Description | |
---|---|---|
![]() | AnalogSingleChannelReader | Creates a new instance of the AnalogSingleChannelReader class to read from the specified DaqStream. |
Properties
Name | Description | |
---|---|---|
![]() | SynchronizeCallbacks | Specifies how events and callback delegates are invoked.
|
Methods
Name | Description | |
---|---|---|
![]() | BeginMemoryOptimizedReadMultiSample(Int32, AsyncCallback, Object, Double) |
Begins an asynchronous read of one or more floating-point samples from a single
AIChannel
in a task.
|
![]() | BeginMemoryOptimizedReadMultiSample(Int32, AsyncCallback, Object, Double, ReallocationPolicy) |
Begins an asynchronous read of one or more floating-point samples from a single
AIChannel
in a task.
|
![]() | BeginMemoryOptimizedReadWaveform(Int32, AsyncCallback, Object, AnalogWaveformDouble) | Begins an asynchronous read of one or more analog waveform samples from a single AIChannel in a task.
|
![]() | BeginMemoryOptimizedReadWaveform(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. |
![]() | BeginMemoryOptimizedReadWaveform(Int32, AsyncCallback, Object, AnalogWaveformDouble, ReallocationPolicy) |
Begins an asynchronous read of one or more analog waveform samples from a single
AIChannel
in a task.
|
![]() | BeginMemoryOptimizedReadWaveform(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.
|
![]() | BeginReadMultiSample | Begins an asynchronous read of one or more floating-point samples from a single AIChannel in a task. |
![]() | BeginReadSingleSample | Begins an asynchronous read of a single floating-point sample from a single AIChannel in a task. |
![]() | BeginReadWaveform(Int32, AsyncCallback, Object) | Begins an asynchronous read of one or more analog waveform samples from a single AIChannel in a task.
|
![]() | BeginReadWaveform(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.
|
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | EndMemoryOptimizedReadMultiSample |
Handles the end of an asynchronous read initiated with
BeginMemoryOptimizedReadMultiSample(Int32, AsyncCallback, Object, Double)
and retrieves the read samples.
|
![]() | EndMemoryOptimizedReadWaveform |
Handles the end of an asynchronous read initiated with
BeginMemoryOptimizedReadWaveform(Int32, AsyncCallback, Object, AnalogWaveformDouble)
and retrieves the read samples.
|
![]() | EndReadMultiSample | Handles the end of an asynchronous read initiated with BeginReadMultiSample(Int32, AsyncCallback, Object) and retrieves the read samples. |
![]() | EndReadSingleSample | Handles the end of an asynchronous read initiated with BeginReadSingleSample(AsyncCallback, Object) and retrieves the read samples. |
![]() | EndReadWaveform | Handles the end of an asynchronous read initiated with BeginReadWaveform(Int32, AsyncCallback, Object) and retrieves the read samples. |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | MemoryOptimizedReadMultiSample(Int32, Double, Int32) |
Reads one or more floating-point samples from a single
AIChannel
in a task.
|
![]() | MemoryOptimizedReadMultiSample(Int32, Double, ReallocationPolicy, Int32) |
Reads one or more floating-point samples from a single
AIChannel
in a task.
|
![]() | MemoryOptimizedReadWaveform(Int32, AnalogWaveformDouble) | Reads one or more analog waveform samples from a single AIChannel in a task.
|
![]() | MemoryOptimizedReadWaveform(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.
|
![]() | MemoryOptimizedReadWaveform(Int32, AnalogWaveformDouble, ReallocationPolicy) | Reads one or more analog waveform samples from a singleAIChannelin a task. |
![]() | MemoryOptimizedReadWaveform(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.
|
![]() | ReadMultiSample | Reads one or more floating-point samples from a single AIChannel in a task. |
![]() | ReadSingleSample | Reads a single floating-point sample from a single AIChannel in a task. |
![]() | ReadWaveform(Int32) | Reads one or more analog waveform samples from a single AIChannel in a task.
|
![]() | ReadWaveform(TimeSpan) |
Reads one or more analog waveform samples from a single AIChannel object in a task for a specified duration.
|
![]() | ToString | Returns a string representation of the object. (Overrides ObjectToString.) |
Remarks
![]() |
---|
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.