Main Content

Software Watchdog Timer

Output true until counter reaches maximum count limit

Since R2020a

Libraries:
Motor Control Blockset / Sensor Decoders

Description

The Software Watchdog Timer block increments the counter value until either the block receives a Restart input pulse, or the count reaches the value of the Maximum count parameter.

On receiving the Restart pulse, the block restarts the counter and starts incrementing the counter value again when the Restart pulse falls.

The block maintains the true Status output until the counter value remains less than the value of Maximum count parameter. When the counter reaches Maximum count, the block stops the counter and turns the Status false.

Ports

Input

expand all

The pulse (true value) that restarts the watchdog timer counter. The counter resumes counting when the pulse falls (false value).

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Output

expand all

The watchdog timer status indicated as one of the following:

  • True indicates that the counter value is less than the value of the Maximum count parameter.

  • False indicates that the counter value is equal to the value of the Maximum count parameter and the block has stopped the counter.

Data Types: single | double | fixed point

Parameters

expand all

The maximum limit of the watchdog timer counter value that causes the block to stop the counter and turn the watchdog timer status to false.

The data type of the watchdog timer status output.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Fixed-Point Conversion
Design and simulate fixed-point systems using Fixed-Point Designer™.

Version History

Introduced in R2020a