ADLINK PXI-3950 User Manual

Page 79

Advertising
background image

Appendix B

65

PXI-3950

User’s Manual

SetWDT

@ Description

Sets the timeout value of watchdog timer. The timeout value
should be given in seconds. Users should call ResetWDT or
StopWDT before the expiration of the watchdog timer, or the
system will be reset.

@ Supported controllers

PXI-3950, PXI-3920, PXI-3910

@ Syntax

C/C++

BOOL SetWDT(unsigned long second)

Visual Basic

InitWDT(ByVal second as Long) As Boolean

@ Parameters

second

Specifies the timeout value of the watchdog timer.

@ Return Codes

TRUE if timeout value of watchdog timer is

successfully set.

FALSE if timeout value of watchdog timer is

failed to set.

Value

Description

0 to 255

If the value of second parameter is between

0 to 255, the resolution of watchdog timer is

1 second.

> 255

If the value of second parameter is larger

than 255, the resolution of watchdog timer

is 1 minute. That is, if users give a value of

400, the actual timeout value is 400/60 + 1

= 7 minutes.

Advertising