beautypg.com

B.1.3 startwdt, B.1.3, Startwdt – ADLINK PXI-3980 User Manual

Page 64

background image

52

Supported Controllers

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

Syntax

C/C++

BOOL SetWDT(unsigned long second)

Visual Basic

InitWDT(ByVal second as Long) As Boolean

Parameter

second

Specifies the timeout value of the watchdog timer.

Value Description

Return Code

B.1.3

StartWDT

Description

Starts watchdog timer function. Once invoked, the watch-
dog timer countdown starts, and ResetWDT or StopWDT
should be called before the expiration of the watchdog
timer, or the system will be reset.

Supported Controllers

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

Value

Description

0 to 255

If the value of the second parameter is between 0
and 255, the resolution of the watchdog timer is 1
second

Over 255

If the value of the second parameter exceeds 255,
the resolution of the watchdog timer is 1 minute, that
is, if a value of 400 is given, the actual timeout value
is 400/60 + 1 = 7 minutes

True

If timeout value of watchdog timer is
successfully set

False

If timeout value of watchdog timer fails to be set