B.1.2 setwdt, B.1.2, Setwdt – ADLINK PXIe-3975 User Manual

Page 66

Advertising
background image

54

Watchdog

Timer

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.

Supported Controllers

PXIe-3975, 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

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

Advertising