DAQmx Create Watchdog Timer Task
Creates and configures a task that controls the watchdog timer of a device. The timer activates when you start the task. This VI does not program the watchdog timer on a real-time controller. Use the Real-Time Watchdog VIs to program the watchdog timer on a real-time controller.
The DAQmx Watchdog Timer properties contain additional watchdog timer configuration options.
Place on the block diagram. | Find on the Functions palette. |
device in is the name as configured in MAX of the device to which this operation applies. A DAQmx device name constant lists all devices installed in the system. | |||||||||||||
timeout is the amount of time in seconds 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. If this time elapses, the device sets the physical channels to the states you specify with the digital physical channel expiration states input.
Use the DAQmx Control Watchdog Task VI with the action input set to reset timer to prevent the watchdog timer from expiring. |
|||||||||||||
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
|
|||||||||||||
new task name is the name to assign to the task. If you use this VI in a loop and specify a name for the task, you must use the DAQmx Clear Task VI within the loop after you are finished with the task. Otherwise, NI-DAQmx attempts to create multiple tasks with the same name, which results in an error. Refer to Task Creation and Destruction for more information. | |||||||||||||
auto cleanup specifies if LabVIEW automatically destroys the task when the application completes execution. If auto cleanup is FALSE, LabVIEW does not automatically destroy the task until you exit LabVIEW. Use the DAQmx Clear Task VI to manually destroy the task. | |||||||||||||
digital physical channel expiration states contains the states to which to set digital physical channels when the watchdog timer expires. Each element of the array contains a digital physical channel name and the corresponding state for that digital physical channel.
|
|||||||||||||
task out is a reference to the new task. | |||||||||||||
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
|