MC-Basic:WDINIT

From SoftMC-Wiki
Revision as of 16:01, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= ''<watch dog variable>'' = WDInit(''<wd cycles>'') |AVAILABILITY= All versions |DESCRIPTION= This command is used to attach a task to the wat…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This command is used to attach a task to the watch dog mechanism. The command enables the watch dog to be triggered if a task does not service it within a specified time interval. WDINIT returns a value into an MC-defined variable. The watch dog cycle time is specified as a parameter, in units of the watch dog cycle time (20msec). The watch dog begins to Terminal the task after it is serviced for the first time using WDCYCLE. Using the watch dog Terminal mechanism from the command line enables a host program to be attached to the watch dog mechanism.

Syntax

<watch dog variable> = WDInit(<wd cycles>)

Availability

All versions

Type

<watch dog variable>: Long
<wd cycles>: Long

Range

<wd cycles>: 1 to MaxLong

Scope

Task or Terminal

Limitations

Write-Only

Examples

My_Var = WDInit(5)                                  ‘WD Terminal at 100 msec

See Also