quanser.hardware.hil.watchdog_reload quanser.hardware.hil.watchdog_clear navigation bar

Table of Contents

quanser.hardware.hil.watchdog_is_expired

Indicates whether the watchdog timer has expired.

Syntax

[is_expired, err] = board.watchdog_is_expired
    

Description

Returns whether the watchdog timer has expired.

Once the watchdog expires, outputs on the board is disabled. To re-enable the outputs, invoke the watchdog_clear function.

If no err output is provided then it throws an exception if an error occurs. In generated code it prints the error message. Use hil_get_error_message to get the message associated with an error code.

Parameters

board

The board instance returned by the quanser.hardware.hil.open function.

Outputs

is_expired

Indicates whether the watchdog timer has expired. It returns true if the timer has expired and false otherwise.

err

A negative error code or zero on success.

Examples

% Checks whether the watchdog timer has expired
is_expired = board.watchdog_is_expired;
    

See Also

 

navigation bar