NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

CounterSingleChannelReader Class

CounterSingleChannelReader Class

CounterSingleChannelReader Class

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

Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    NationalInstruments.DAQmxCounterSingleChannelReader

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

Syntax

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

The CounterSingleChannelReader type exposes the following members.

Constructors

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

Properties

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

Methods

  NameDescription
Public methodBeginMemoryOptimizedReadMultiSampleDouble(Int32, AsyncCallback, Object, Double)
Begins an asynchronous memory-optimized read of one or more Double samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSampleDouble(Int32, AsyncCallback, Object, Double, ReallocationPolicy)
Begins an asynchronous memory-optimized read of one or more Double samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSampleInt32(Int32, AsyncCallback, Object, Int32)
Begins an asynchronous memory-optimized read of one or more Int32 samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSampleInt32(Int32, AsyncCallback, Object, Int32, ReallocationPolicy)
Begins an asynchronous memory-optimized read of one or more Int32 samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSamplePulseFrequency(Int32, AsyncCallback, Object, CIDataFrequency)
Begins an asynchronous memory-optimized read of one or more CIDataFrequency samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSamplePulseFrequency(Int32, AsyncCallback, Object, CIDataFrequency, ReallocationPolicy)
Begins an asynchronous memory-optimized read of one or more CIDataFrequency samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSamplePulseTicks(Int32, AsyncCallback, Object, CIDataTicks)
Begins an asynchronous memory-optimized read of one or more CIDataTicks samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSamplePulseTicks(Int32, AsyncCallback, Object, CIDataTicks, ReallocationPolicy)
Begins an asynchronous memory-optimized read of one or more CIDataTicks samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSamplePulseTime(Int32, AsyncCallback, Object, CIDataTime)
Begins an asynchronous memory-optimized read of one or more CIDataTime samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSamplePulseTime(Int32, AsyncCallback, Object, CIDataTime, ReallocationPolicy)
Begins an asynchronous memory-optimized read of one or more CIDataTime samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSampleUInt32(Int32, AsyncCallback, Object, UInt32)
Begins an asynchronous memory-optimized read of one or more UInt32 samples from a single CIChannel in a task.
Public methodBeginMemoryOptimizedReadMultiSampleUInt32(Int32, AsyncCallback, Object, UInt32, ReallocationPolicy)
Begins an asynchronous memory-optimized read of one or more UInt32 samples from a single CIChannel in a task.
Public methodBeginReadMultiSampleDouble
Begins an asynchronous read of one or more Double samples from a counter task.
Public methodBeginReadMultiSampleInt32
Begins an asynchronous read of one or more Int32 samples from a counter task.
Public methodBeginReadMultiSamplePulseFrequency
Begins an asynchronous read of one or more pulse samples in terms of frequency from a counter task.
Public methodBeginReadMultiSamplePulseTicks
Begins an asynchronous read of one or more pulse samples in terms of ticks from a counter task.
Public methodBeginReadMultiSamplePulseTime
Begins an asynchronous read of one or more pulse samples in terms of time from a counter task.
Public methodBeginReadMultiSampleUInt32
Begins an asynchronous read of one or more UInt32 samples from a counter task.
Public methodBeginReadSingleSampleDouble
Begins an asynchronous read of a Double sample from a counter task.
Public methodBeginReadSingleSampleInt32
Begins an asynchronous read of a 32-bit integer sample from a counter task.
Public methodBeginReadSingleSamplePulseFrequency
Begins an asynchronous read of a single pulse sample in terms of frequency from a counter task.
Public methodBeginReadSingleSamplePulseTicks
Begins an asynchronous read of a single pulse sample in terms of ticks from a counter task.
Public methodBeginReadSingleSamplePulseTime
Begins an asynchronous read of a single pulse sample in terms of time from a counter task.
Public methodBeginReadSingleSampleUInt32
Begins an asynchronous read of a UInt32 sample from a counter task.
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 methodEndMemoryOptimizedReadMultiSampleDouble
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSampleDouble(Int32, AsyncCallback, Object, Double) and retrieves the read samples.
Public methodEndMemoryOptimizedReadMultiSampleInt32
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSampleInt32(Int32, AsyncCallback, Object, Int32) and retrieves the read samples.
Public methodEndMemoryOptimizedReadMultiSamplePulseFrequency
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePulseFrequency(Int32, AsyncCallback, Object, CIDataFrequency) and retrieves the read samples.
Public methodEndMemoryOptimizedReadMultiSamplePulseTicks
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePulseTicks(Int32, AsyncCallback, Object, CIDataTicks) and retrieves the read samples.
Public methodEndMemoryOptimizedReadMultiSamplePulseTime
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSamplePulseTime(Int32, AsyncCallback, Object, CIDataTime) and retrieves the read samples.
Public methodEndMemoryOptimizedReadMultiSampleUInt32
Handles the end of an asynchronous read initiated with BeginMemoryOptimizedReadMultiSampleUInt32(Int32, AsyncCallback, Object, UInt32) and retrieves the read samples.
Public methodEndReadMultiSampleDouble
Handles the end of an asynchronous read initiated with BeginReadMultiSampleDouble(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadMultiSampleInt32
Handles the end of an asynchronous read initiated with BeginReadMultiSampleInt32(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadMultiSamplePulseFrequency
Handles the end of an asynchronous read initiated with BeginReadMultiSamplePulseFrequency(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadMultiSamplePulseTicks
Handles the end of an asynchronous read initiated with BeginReadMultiSamplePulseTicks(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadMultiSamplePulseTime
Handles the end of an asynchronous read initiated with BeginReadMultiSamplePulseTime(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadMultiSampleUInt32
Handles the end of an asynchronous read initiated with BeginReadMultiSampleUInt32(Int32, AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadSingleSampleDouble
Handles the end of an asynchronous read initiated with BeginReadSingleSampleDouble(AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadSingleSampleInt32
Handles the end of an asynchronous read initiated with BeginReadSingleSampleInt32(AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadSingleSamplePulseFrequency
Handles the end of an asynchronous read initiated with BeginReadSingleSamplePulseFrequency(AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadSingleSamplePulseTicks
Handles the end of an asynchronous read initiated with BeginReadSingleSamplePulseTicks(AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadSingleSamplePulseTime
Handles the end of an asynchronous read initiated with BeginReadSingleSamplePulseTime(AsyncCallback, Object) and retrieves the read samples.
Public methodEndReadSingleSampleUInt32
Handles the end of an asynchronous read initiated with BeginReadSingleSampleUInt32(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 methodMemoryOptimizedReadMultiSampleDouble(Int32, Double, Int32)
Reads one or more Double samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSampleDouble(Int32, Double, ReallocationPolicy, Int32)
Reads one or more Double samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSampleInt32(Int32, Int32, Int32)
Reads one or more Int32 samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSampleInt32(Int32, Int32, ReallocationPolicy, Int32)
Reads one or more Int32 samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSamplePulseFrequency(Int32, CIDataFrequency, Int32)
Reads one or more CIDataFrequency samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSamplePulseFrequency(Int32, CIDataFrequency, ReallocationPolicy, Int32)
Reads one or more CIDataFrequency samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSamplePulseTicks(Int32, CIDataTicks, Int32)
Reads one or more CIDataTicks samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSamplePulseTicks(Int32, CIDataTicks, ReallocationPolicy, Int32)
Reads one or more CIDataTicks samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSamplePulseTime(Int32, CIDataTime, Int32)
Reads one or more CIDataTime samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSamplePulseTime(Int32, CIDataTime, ReallocationPolicy, Int32)
Reads one or more CIDataTime samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSampleUInt32(Int32, UInt32, Int32)
Reads one or more UInt32 samples from a single CIChannel in a task.
Public methodMemoryOptimizedReadMultiSampleUInt32(Int32, UInt32, ReallocationPolicy, Int32)
Reads one or more UInt32 samples from a single CIChannel in a task.
Public methodReadMultiSampleDouble
Reads one or more Double samples from a counter task.
Public methodReadMultiSampleInt32
Reads one or more Int32 samples from a counter task.
Public methodReadMultiSamplePulseFrequency
Reads one or more pulse samples in terms of frequency from a counter task.
Public methodReadMultiSamplePulseTicks
Reads one or more pulse samples in terms of ticks from a counter task.
Public methodReadMultiSamplePulseTime
Reads one or more pulse samples in terms of time from a counter task.
Public methodReadMultiSampleUInt32
Reads one or more UInt32 samples from a counter task.
Public methodReadSingleSampleDouble
Reads a single Double sample from a counter task.
Public methodReadSingleSampleInt32
Reads a Int32 sample from a counter task.
Public methodReadSingleSamplePulseFrequency
Reads a pulse sample in terms of frequency from a counter task.
Public methodReadSingleSamplePulseTicks
Reads a pulse sample in terms of ticks from a counter task.
Public methodReadSingleSamplePulseTime
Reads a pulse sample in terms of time from a counter task.
Public methodReadSingleSampleUInt32
Reads an UInt32 sample from a counter task.
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?