Indicates whether the watchdog has expired.
Namespace:
Quanser.HardwareAssembly: Quanser.Hardware.Hil (in Quanser.Hardware.Hil.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function WatchdogIsExpired As Boolean |
C# |
---|
public bool WatchdogIsExpired() |
Visual C++ |
---|
public: bool WatchdogIsExpired() |
JavaScript |
---|
function watchdogIsExpired(); |
Return Value
Returns true if the watchdog timer has expired and false otherwise.Remarks
The WatchdogIsExpired method indicates whether the watchdog has expired. It is not typically required because the WatchdogReload()()() method's return value also indicates whether the watchdog has expired.
Examples
This example prints an error message if the watchdog has expired.
Exceptions are ignored for simplicity.
C# | Copy Code |
---|---|
if (card.WatchdogIsExpired()) { Console.WriteLine("Watchdog has expired!"); } |
Visual Basic | Copy Code |
---|---|
If card.WatchdogIsExpired() Then Console.WriteLine("Watchdog has expired!") End If |
Visual C++ | Copy Code |
---|---|
if (card->WatchdogIsExpired()) { Console::WriteLine(L"Watchdog has expired!"); } |
Exceptions
Exception | Condition |
---|---|
Quanser.Hardware..::.HilException | If the watchdog status cannot be verified then an exception is thrown. This situtation typically arises if the board does not support a watchdog timer. |