imaqIOWatchdogConfigure

NI-IMAQ I/O C Function

imaqIOWatchdogConfigure

Format

rval = imaqIOWatchdogConfigure(IMAQIO_SESSION id, unsigned long timeout, IMAQIOExpirationAction expirationAction);

Purpose

Configures a watchdog timer on the NI-IMAQ I/O device.

Parameters

Name Type Direction
id IMAQIO_SESSION input
timeout unsigned long input
expirationAction IMAQIOExpirationAction input

Parameter Discussion

id is the ID of the session to configure the watchdog on.

timeout is the time, in milliseconds, that can occur without a reset before the watchdog occurs.

expirationAction is the action to take when the watchdog occurs:

IMAQIO_EXPIRATION_ACTION_INDICATOR_ONLY Sets the watchdog status attribute.
IMAQIO_EXPIRATION_ACTION_ASSERT_TTL_OUT_0 Drives the TTL Out 0 line high when the watchdog occurs.
IMAQIO_EXPIRATION_ACTION_SHUTDOWN Shuts down the NI-IMAQ I/O device when the watchdog occurs. Refer to imaqIOEnableShutdown for information about enabling shutdown on the NI-IMAQ I/O device.

Return Value

This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imaqIOGetErrorText.