AnalogMultiChannelReader Class
- Updated2026-02-05
- 4 minute(s) read
Contains methods for reading samples from one or more analog input channels in a task.
Derives from
- MarshalByRefObject
- ISynchronizeCallbacks
- ISupportSynchronizationContext
Syntax
Namespace: NationalInstruments.DAQmx
public class AnalogMultiChannelReader : MarshalByRefObject, ISynchronizeCallbacks, ISupportSynchronizationContext
Remarks
Example applications are located in the <Public Documents>\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National Instruments»NI-DAQmx»NI-DAQmx Examples.
Thread Safety
All members of this type are safe for multithreaded operations.
Constructors
| Name | Description |
|---|---|
| AnalogMultiChannelReader(DaqStream) | Creates a new instance of the AnalogMultiChannelReader class to read from the specified DaqStream. |
Properties
| Name | Description |
|---|---|
| SynchronizeCallbacks | Specifies how events and callback delegates are invoked. |
| SynchronizingObject | Obsolete: Use SynchronizeCallbacks to specify that the object marshals callbacks across threads appropriately. Will warn if used |
Methods
| Name | Description |
|---|---|
| BeginMemoryOptimizedReadMultiSample(int, AsyncCallback, object, double, ReallocationPolicy) | Begins an asynchronous read of one or more floating-point samples from one or more AIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSample(int, AsyncCallback, object, double) | Begins an asynchronous read of one or more floating-point samples from one or more AIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePower(int, AsyncCallback, object, AIPowerMeasurement, ReallocationPolicy) | Begins an asynchronous read of one or more power samples from one or more AIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePower(int, AsyncCallback, object, AIPowerMeasurement) | Begins an asynchronous read of one or more power samples from one or more AIChannel objects in a task. |
| BeginMemoryOptimizedReadWaveform(TimeSpan, AsyncCallback, object, AnalogWaveform< double >[]) | Begins an asynchronous, memory-optimized read of one or more analog waveform samples from one or more AIChannel objects in a task for a specified duration . |
| BeginMemoryOptimizedReadWaveform(int, AsyncCallback, object, AnalogWaveform< double >[], ReallocationPolicy) | Begins an asynchronous read of one or more analog waveform samples from one or more AIChannel objects in a task. |
| BeginMemoryOptimizedReadWaveform(TimeSpan, AsyncCallback, object, AnalogWaveform< double >[], ReallocationPolicy) | Begins an asynchronous, memory-optimized read of one or more analog waveform samples from one or more AIChannel objects in a task for a specified duration . |
| BeginMemoryOptimizedReadWaveform(int, AsyncCallback, object, AnalogWaveform< double >[]) | Begins an asynchronous read of one or more analog waveform samples from one or more AIChannel objects in a task. |
| BeginReadMultiSample(int, AsyncCallback, object) | Begins an asynchronous read of one or more floating-point samples from one or more AIChannel objects in a task. |
| BeginReadMultiSamplePower(int, AsyncCallback, object) | Begins an asynchronous read of one or more power samples from one or more AIChannel objects in a task. |
| BeginReadSingleSample(AsyncCallback, object) | Begins an asynchronous read of a single floating-point sample from one or more AIChannel objects in a task. |
| BeginReadSingleSamplePower(AsyncCallback, object) | Begins an asynchronous read of a single power sample from one or more AIChannel objects in a task. |
| BeginReadWaveform(TimeSpan, AsyncCallback, object) | Begins an asynchronous read of one or more analog waveform samples from one or more AIChannel objects in a task for a specified duration . |
| BeginReadWaveform(int, AsyncCallback, object) | Begins an asynchronous read of one or more analog waveform samples from one or more AIChannel objects in a task. |
| EndMemoryOptimizedReadMultiSample(IAsyncResult, out int) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSample(int, AsyncCallback, object, double[, ]) and retrieves the read samples. |
| EndMemoryOptimizedReadMultiSamplePower(IAsyncResult, out int) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePower(int, AsyncCallback, object, AIPowerMeasurement[, ]) and retrieves the read samples. |
| EndMemoryOptimizedReadWaveform(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadWaveform(int, AsyncCallback, object, AnalogWaveform<double>[]) and retrieves the read samples. |
| EndReadMultiSample(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadMultiSample(int, AsyncCallback, object) and retrieves the read samples. |
| EndReadMultiSamplePower(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadMultiSamplePower(int, AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSample(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSample(AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSamplePower(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSamplePower(AsyncCallback, object) and retrieves the read samples. |
| EndReadWaveform(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadWaveform(int, AsyncCallback, object) and retrieves the read samples. |
| MemoryOptimizedReadMultiSample(int, ref double, out int) | Reads one or more floating-point samples from one or more AIChannel objects in a task. |
| MemoryOptimizedReadMultiSample(int, ref double, ReallocationPolicy, out int) | Reads one or more floating-point samples from one or more AIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePower(int, ref AIPowerMeasurement, ReallocationPolicy, out int) | Reads one or more power samples from one or more AIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePower(int, ref AIPowerMeasurement, out int) | Reads one or more power samples from one or more AIChannel objects in a task. |
| MemoryOptimizedReadWaveform(int, AnalogWaveform< double >[], ReallocationPolicy) | Reads one or more analog waveform samples from one or more AIChannel objects in a task. |
| MemoryOptimizedReadWaveform(TimeSpan, AnalogWaveform< double >[], ReallocationPolicy) | Performs a memory-optimized read of one or more analog waveform samples from one or more AIChannel objects in a task for a specified duration . |
| MemoryOptimizedReadWaveform(int, AnalogWaveform< double >[]) | Reads one or more analog waveform samples from one or more AIChannel objects in a task. |
| MemoryOptimizedReadWaveform(TimeSpan, AnalogWaveform< double >[]) | Performs a memory-optimized read of one or more analog waveform samples from one or more AIChannel objects in a task for a specified duration . |
| ReadMultiSample(int) | Reads one or more floating-point samples from one or more AIChannel objects in a task. |
| ReadMultiSamplePower(int) | Reads one or more power samples from one or more AIChannel objects in a task. |
| ReadSingleSample() | Reads a single floating-point sample from one or more AIChannel objects in a task. |
| ReadSingleSamplePower() | Reads a single power sample from one or more AIChannel objects in a task. |
| ReadWaveform(int) | Reads one or more analog waveform samples from one or more AIChannel objects in a task. |
| ReadWaveform(TimeSpan) | Reads one or more analog waveform samples from one or more AIChannel objects in a task for a specified duration . |
| ToString() | Returns a string representation of the object. |