NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

DaqSystem.CreateWatchdogTimerTask Method

  • Updated2023-02-21
  • 2 minute(s) read
DaqSystem.CreateWatchdogTimerTask Method
Creates a task to configure and control the watchdog timer of a static DIO device. The timer activates when you start the task.

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

Syntax

public Task CreateWatchdogTimerTask(
	string taskName,
	string device,
	double timeout,
	string[] physicalChannels,
	WatchdogDOExpirationState[] expirationStates
)
Public Function CreateWatchdogTimerTask ( 
	taskName As String,
	device As String,
	timeout As Double,
	physicalChannels As String(),
	expirationStates As WatchdogDOExpirationState()
) As Task

Parameters

taskName
Type: SystemString
The name of the task to create. If you specify Empty or , the NI-DAQmx driver assigns a unique name to the new task.
device
Type: SystemString
The name of the device for which to create a watchdog timer task.
timeout
Type: SystemDouble
The amount of time in seconds until the watchdog timer expires. A value of -1 means the internal timer never expires. Set timeout to -1 if you use an Expiration Trigger to expire the watchdog task.
physicalChannels
Type: SystemString
The physical channel names for which to define watchdog expiration states. Each value in this vector specifies a physical channel string that is assigned the expiration state at the corresponding position in the expirationStates parameter. You cannot modify the expiration state of dedicated digital input physical channels.
expirationStates
Type: NationalInstruments.DAQmxWatchdogDOExpirationState
The state to which to set the digital physical channel when the watchdog timer expires.

Return Value

Type: Task
The Task that this method creates.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

Use the properties and methods on Task and Watchdog to configure and control the watchdog timer task.

See Also

Log in to get a better experience