beautypg.com

Appendix b - watchdog timer, B.1 wdt function library, B.1.1 initwdt – ADLINK PXI-3980 User Manual

Page 63: B.1.2 setwdt, B appendix: watchdog timer, Wdt function library, B.1.1, Initwdt, B.1.2, Setwdt

background image

51

PXI-3980

Appendix B - Watchdog Timer

This appendix describes use of the watchdog timer (WDT) func-
tion library for the PXI-3980 controller. The watchdog timer is a
hardware mechanism resetting the system when the operating
system or application halts. After starting, periodic reset of the
watchdog timer in the application before expiry is required. Once
the watchdog timer expires, a hardware-generated signal is sent
to reset the system.

B.1 WDT Function Library

B.1.1

InitWDT

Description

Initializes watchdog timer function. InitWDT must be called
before the invocation of any other WDT function.

Supported Controllers

PXI-3980, PXI-3950, PXI-3920, PXI-3910

Syntax

C/C++

BOOL InitWDT()

Visual Basic

InitWDT() As Boolean

Parameter

None

Return Code

B.1.2

SetWDT

Description

Sets the timeout value for watchdog timer. The timeout
value uses seconds as a unit. ResetWDT or StopWDT
should be called prior to expiration of the watchdog timer, or
the system will be reset.

True

If watchdog timer is successfully initialized

False

If watchdog timer fails to initialize