CounterSingleChannelWriter Class
- Updated2023-02-21
- 5 minute(s) read
Contains methods for writing samples to a single counter output channel in a counter output task.
Inheritance Hierarchy
SystemObject
SystemMarshalByRefObject
NationalInstruments.DAQmxCounterSingleChannelWriter
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
| Name | Description | |
|---|---|---|
| CounterSingleChannelWriter | Initializes a new instance of the CounterSingleChannelWriter class to write to the specified DaqStream. |
Properties
| Name | Description | |
|---|---|---|
| SynchronizeCallbacks | Specifies how events and callback delegates are invoked.
|
Methods
| Name | Description | |
|---|---|---|
| BeginWriteMultiSample(Boolean, CODataFrequency, AsyncCallback, Object) | Begins an asynchronous write of one or more frequency samples to a single COChannel in a counter output task. | |
| BeginWriteMultiSample(Boolean, CODataTicks, AsyncCallback, Object) | Begins an asynchronous write of one or more ticks samples to a single COChannel in a counter output task. | |
| BeginWriteMultiSample(Boolean, CODataTime, AsyncCallback, Object) | Begins an asynchronous write of one or more time samples to a single COChannel in a counter output task. | |
| BeginWriteSingleSample(Boolean, CODataFrequency, AsyncCallback, Object) | Begins an asynchronous write of a frequency sample to a single COChannel in a counter output task. | |
| BeginWriteSingleSample(Boolean, CODataTicks, AsyncCallback, Object) | Begins an asynchronous write of a ticks sample to a single COChannel in a counter output task. | |
| BeginWriteSingleSample(Boolean, CODataTime, AsyncCallback, Object) | Begins an asynchronous write of a time sample to a single COChannel in a counter output task. | |
| 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.) | |
| EndWrite | Handles the end of an asynchronous write initiated with any of the counter asynchronous write methods, such as BeginWriteSingleSample(Boolean, CODataFrequency, AsyncCallback, Object). | |
| 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 the default hash function. (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.) | |
| ToString | Returns a string representation of the object. (Overrides ObjectToString.) | |
| WriteMultiSample(Boolean, CODataFrequency) | Writes one or more frequency samples to a single COChannel in a counter output task. | |
| WriteMultiSample(Boolean, CODataTicks) | Writes one or more ticks samples to a single COChannel in a counter output task. | |
| WriteMultiSample(Boolean, CODataTime) | Writes one or more time samples to a single COChannel in a counter output task. | |
| WriteSingleSample(Boolean, CODataFrequency) | Writes a frequency sample to a single COChannel in a counter output task. | |
| WriteSingleSample(Boolean, CODataTicks) | Writes a ticks sample to a single COChannel in a counter output task. | |
| WriteSingleSample(Boolean, CODataTime) | Writes a time sample to a single COChannel in a counter output task. |
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.