DigitalMultiChannelReader Class
- Updated2026-02-03
- 6 minute(s) read
Contains methods for reading samples from one or more digital input or output channels in a task.
Derives from
- MarshalByRefObject
- ISynchronizeCallbacks
- ISupportSynchronizationContext
Syntax
Namespace: NationalInstruments.DAQmx
public class DigitalMultiChannelReader : 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 |
|---|---|
| DigitalMultiChannelReader(DaqStream) | Creates a new instance of the DigitalMultiChannelReader 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 |
|---|---|
| BeginMemoryOptimizedReadMultiSamplePortByte(int, AsyncCallback, object, byte, ReallocationPolicy) | Begins an asynchronous read of one or more 8-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePortByte(int, AsyncCallback, object, byte) | Begins an asynchronous read of one or more 8-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePortInt32(int, AsyncCallback, object, int) | Begins an asynchronous read of one or more 32-bit integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePortInt32(int, AsyncCallback, object, int, ReallocationPolicy) | Begins an asynchronous read of one or more 32-bit integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePortUInt16(int, AsyncCallback, object, ushort, ReallocationPolicy) | Begins an asynchronous read of one or more 16-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePortUInt16(int, AsyncCallback, object, ushort) | Begins an asynchronous read of one or more 16-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePortUInt32(int, AsyncCallback, object, uint) | Begins an asynchronous read of one or more 32-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadMultiSamplePortUInt32(int, AsyncCallback, object, uint, ReallocationPolicy) | Begins an asynchronous read of one or more 32-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginMemoryOptimizedReadSingleSampleMultiLine(AsyncCallback, object, bool) | Begins an asynchronous read of a single sample containing Boolean values from one or more DIChannel objects in a task. Each channel can contain multiple digital lines. |
| BeginReadMultiSamplePortByte(int, AsyncCallback, object) | Begins an asynchronous read of one or more 8-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginReadMultiSamplePortInt16(int, AsyncCallback, object) | Begins an asynchronous read of one or more 16-bit integer samples from one or more DIChannel objects in a task. |
| BeginReadMultiSamplePortInt32(int, AsyncCallback, object) | Begins an asynchronous read of one or more 32-bit integer samples from one or more DIChannel objects in a task. |
| BeginReadMultiSamplePortUInt16(int, AsyncCallback, object) | Begins an asynchronous read of one or more 16-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginReadMultiSamplePortUInt32(int, AsyncCallback, object) | Begins an asynchronous read of one or more 32-bit unsigned integer samples from one or more DIChannel objects in a task. |
| BeginReadSingleSampleMultiLine(AsyncCallback, object) | Begins an asynchronous read of a single sample containing Boolean values from one or more DIChannel objects in a task. Each channel can contain multiple digital lines. |
| BeginReadSingleSamplePortByte(AsyncCallback, object) | Begins an asynchronous read of a single 8-bit unsigned integer sample from one or more DIChannel objects in a task. |
| BeginReadSingleSamplePortInt16(AsyncCallback, object) | Begins an asynchronous read of a single 16-bit integer sample from one or more DIChannel objects in a task. |
| BeginReadSingleSamplePortInt32(AsyncCallback, object) | Begins an asynchronous read of a single 32-bit integer sample from one or more DIChannel objects in a task. |
| BeginReadSingleSamplePortUInt16(AsyncCallback, object) | Begins an asynchronous read of a single 16-bit unsigned integer sample from one or more DIChannel objects in a task. |
| BeginReadSingleSamplePortUInt32(AsyncCallback, object) | Begins an asynchronous read of a single 32-bit unsigned integer sample from one or more DIChannel objects in a task. |
| BeginReadSingleSampleSingleLine(AsyncCallback, object) | Begins an asynchronous read of a single Boolean sample from one or more DIChannel objects in a task. Each channel can contain a single digital line. |
| BeginReadWaveform(int, AsyncCallback, object) | Begins an asynchronous read of one or more digital waveform samples from one or more DIChannel objects in a task. |
| BeginReadWaveform(TimeSpan, AsyncCallback, object) | Begins an asynchronous read of one or more digital waveform samples from one or more DIChannel objects in a task for a specified duration . |
| EndMemoryOptimizedReadMultiSamplePortByte(IAsyncResult, out int) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePortByte(int, AsyncCallback, object, byte[, ]) and retrieves the read samples. |
| EndMemoryOptimizedReadMultiSamplePortInt32(IAsyncResult, out int) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePortInt32(int, AsyncCallback, object, int[, ]) and retrieves the read samples. |
| EndMemoryOptimizedReadMultiSamplePortUInt16(IAsyncResult, out int) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePortUInt16(int, AsyncCallback, object, ushort[, ]) and retrieves the read samples. |
| EndMemoryOptimizedReadMultiSamplePortUInt32(IAsyncResult, out int) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePortUInt32(int, AsyncCallback, object, uint[, ]) and retrieves the read samples. |
| EndMemoryOptimizedReadSingleSampleMultiLine(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadSingleSampleMultiLine(AsyncCallback, object, bool[, ]) and retrieves the read samples. |
| EndReadMultiSamplePortByte(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadMultiSamplePortByte(int, AsyncCallback, object) and retrieves the read samples. |
| EndReadMultiSamplePortInt16(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadMultiSamplePortInt16(int, AsyncCallback, object) and retrieves the read samples. |
| EndReadMultiSamplePortInt32(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadMultiSamplePortInt32(int, AsyncCallback, object) and retrieves the read samples. |
| EndReadMultiSamplePortUInt16(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadMultiSamplePortUInt16(int, AsyncCallback, object) and retrieves the read samples. |
| EndReadMultiSamplePortUInt32(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadMultiSamplePortUInt32(int, AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSampleMultiLine(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSampleMultiLine(AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSamplePortByte(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSamplePortByte(AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSamplePortInt16(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSamplePortInt16(AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSamplePortInt32(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSamplePortInt32(AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSamplePortUInt16(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSamplePortUInt16(AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSamplePortUInt32(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSamplePortUInt32(AsyncCallback, object) and retrieves the read samples. |
| EndReadSingleSampleSingleLine(IAsyncResult) | Handles the end of an asynchronous read initiated with BeginReadSingleSampleSingleLine(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. |
| MemoryOptimizedReadMultiSamplePortByte(int, ref byte, out int) | Reads one or more 8-bit unsigned integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePortByte(int, ref byte, ReallocationPolicy, out int) | Reads one or more 8-bit unsigned integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePortInt32(int, ref int, out int) | Reads one or more 32-bit integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePortInt32(int, ref int, ReallocationPolicy, out int) | Reads one or more 32-bit integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePortUInt16(int, ref ushort, ReallocationPolicy, out int) | Reads one or more 16-bit unsigned integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePortUInt16(int, ref ushort, out int) | Reads one or more 16-bit unsigned integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePortUInt32(int, ref uint, ReallocationPolicy, out int) | Reads one or more 32-bit unsigned integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadMultiSamplePortUInt32(int, ref uint, out int) | Reads one or more 32-bit unsigned integer samples from one or more DIChannel objects in a task. |
| MemoryOptimizedReadSingleSampleMultiLine(bool) | Reads a single sample containing Boolean values from one or more DIChannel objects in a task. Each channel can contain multiple digital lines. |
| ReadMultiSamplePortByte(int) | Reads one or more 8-bit unsigned integer samples from one or more DIChannel objects in a task. |
| ReadMultiSamplePortInt16(int) | Reads one or more 16-bit integer samples from one or more DIChannel objects in a task. |
| ReadMultiSamplePortInt32(int) | Reads one or more 32-bit integer samples from one or more DIChannel objects in a task. |
| ReadMultiSamplePortUInt16(int) | Reads one or more 16-bit unsigned integer samples from one or more DIChannel objects in a task. |
| ReadMultiSamplePortUInt32(int) | Reads one or more 32-bit unsigned integer samples from one or more DIChannel objects in a task. |
| ReadSingleSampleMultiLine() | Reads a single sample containing Boolean values from one or more DIChannel objects in a task. Each channel can contain multiple digital lines. |
| ReadSingleSamplePortByte() | Reads a single 8-bit unsigned integer sample from one or more DIChannel objects in a task. |
| ReadSingleSamplePortInt16() | Reads a single 16-bit integer sample from one or more DIChannel objects in a task. |
| ReadSingleSamplePortInt32() | Reads a single 32-bit integer sample from one or more DIChannel objects in a task. |
| ReadSingleSamplePortUInt16() | Reads a single 16-bit unsigned integer sample from one or more DIChannel objects in a task. |
| ReadSingleSamplePortUInt32() | Reads a single 32-bit unsigned integer sample from one or more DIChannel objects in a task. |
| ReadSingleSampleSingleLine() | Reads a single Boolean sample from one or more DIChannel objects in a task. Each channel can contain a single digital line. |
| ReadWaveform(int) | Reads one or more digital waveform samples from one or more DIChannel objects in a task. |
| ReadWaveform(TimeSpan) | Reads one or more digital waveform samples from one or more DIChannel objects in a task for a specified duration . |
| ToString() | Returns a string representation of the object. |