NI-DAQmx .NET Framework 4.5 API Reference

Content Type
Programming Language
Current manual
Table of Contents

CounterSingleChannelWriter Class

CounterSingleChannelWriter Class

CounterSingleChannelWriter Class

Contains methods for writing samples to a single counter output channel in a counter output task.

Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    NationalInstruments.DAQmxCounterSingleChannelWriter

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

Syntax

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

The CounterSingleChannelWriter type exposes the following members.

Constructors

  NameDescription
Public methodCounterSingleChannelWriter
Initializes a new instance of the CounterSingleChannelWriter class to write to the specified DaqStream.
Top

Properties

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

Methods

  NameDescription
Public methodBeginWriteMultiSample(Boolean, CODataFrequency, AsyncCallback, Object)
Begins an asynchronous write of one or more frequency samples to a single COChannel in a counter output task.
Public methodBeginWriteMultiSample(Boolean, CODataTicks, AsyncCallback, Object)
Begins an asynchronous write of one or more ticks samples to a single COChannel in a counter output task.
Public methodBeginWriteMultiSample(Boolean, CODataTime, AsyncCallback, Object)
Begins an asynchronous write of one or more time samples to a single COChannel in a counter output task.
Public methodBeginWriteSingleSample(Boolean, CODataFrequency, AsyncCallback, Object)
Begins an asynchronous write of a frequency sample to a single COChannel in a counter output task.
Public methodBeginWriteSingleSample(Boolean, CODataTicks, AsyncCallback, Object)
Begins an asynchronous write of a ticks sample to a single COChannel in a counter output task.
Public methodBeginWriteSingleSample(Boolean, CODataTime, AsyncCallback, Object)
Begins an asynchronous write of a time sample to a single COChannel in a counter output 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 methodEndWrite
Handles the end of an asynchronous write initiated with any of the counter asynchronous write methods, such as BeginWriteSingleSample(Boolean, CODataFrequency, AsyncCallback, Object).
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 the default hash function.
(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 methodToString
Returns a string representation of the object.
(Overrides ObjectToString.)
Public methodWriteMultiSample(Boolean, CODataFrequency)
Writes one or more frequency samples to a single COChannel in a counter output task.
Public methodWriteMultiSample(Boolean, CODataTicks)
Writes one or more ticks samples to a single COChannel in a counter output task.
Public methodWriteMultiSample(Boolean, CODataTime)
Writes one or more time samples to a single COChannel in a counter output task.
Public methodWriteSingleSample(Boolean, CODataFrequency)
Writes a frequency sample to a single COChannel in a counter output task.
Public methodWriteSingleSample(Boolean, CODataTicks)
Writes a ticks sample to a single COChannel in a counter output task.
Public methodWriteSingleSample(Boolean, CODataTime)
Writes a time sample to a single COChannel in a counter output task.
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?