NI-DAQmx .NET Framework 4.5 API Reference

Watchdog Class

  • Updated2023-02-21
  • 4 minute(s) read
Watchdog Class
Contains properties and methods for configuring and controlling a watchdog timerTask.

Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    NationalInstruments.DAQmxWatchdog

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

Syntax

public class Watchdog : MarshalByRefObject, IFilteredTypeDescriptor
Public Class Watchdog
	Inherits MarshalByRefObject
	Implements IFilteredTypeDescriptor

The Watchdog type exposes the following members.

Properties

  NameDescription
Public propertyHasExpired
Indicates if the watchdog timer expired. You can read this property only while the task is running.
Public propertyTimeout
Specifies in seconds the amount of time until the watchdog timer expires. A value of -1 means the internal timer never expires. Set this input to -1 if you use an Expiration Trigger to expire the watchdog task.
Top

Methods

  NameDescription
Public methodClearExpiration
Unlocks the device after the watchdog timer has expired.
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 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 methodGetAOExpirationState
Specifies the state to set the analog output physical channels when the watchdog task expires.
Public methodGetAOExpirationStateType
Specifies the output type of the analog output physical channels when the watchdog task expires.
Public methodGetCOExpirationState
Specifies the state to set the counter output channel terminal when the watchdog task expires.
Public methodGetDOExpirationState
Specifies the state to which to set the digital physical channels when the watchdog task expires. You cannot modify the expiration state of dedicated digital input physical channels.
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 methodResetTimer
Resets the internal timer to 0.
Public methodSetAOExpirationState
Specifies the state to set the analog output physical channels when the watchdog task expires.
Public methodSetAOExpirationStateType
Specifies the output type of the analog output physical channels when the watchdog task expires.
Public methodSetCOExpirationState
Specifies the state to set the counter output channel terminal when the watchdog task expires.
Public methodSetDOExpirationState
Specifies the state to which to set the digital physical channels when the watchdog task expires. You cannot modify the expiration state of dedicated digital input physical channels.
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

Log in to get a better experience