Table of Contents
quanser.hardware.hil.watchdog_is_expired
Indicates whether the watchdog timer has expired.
[is_expired, err] = board.watchdog_is_expired
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.
board
The board instance returned by the quanser.hardware.hil.open function.
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.
% Checks whether the watchdog timer has expired
is_expired = board.watchdog_is_expired;
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.