Stops all running monitors associated with a card.

Namespace:  Quanser.Hardware
Assembly:  Quanser.Hardware.Hil (in Quanser.Hardware.Hil.dll)

Syntax

Visual Basic (Declaration)
Public Function MonitorStopAll As Integer
C#
public int MonitorStopAll()
Visual C++
public:
int MonitorStopAll()
JavaScript
function monitorStopAll();

Return Value

The number of monitors that were stopped successfully. This number may be less than the number of running monitors if not all monitors could be stopped successfully.

Remarks

The MonitorStopAll method stops all running monitors that are associated with the given card. Monitors may be stopped at any time. Monitors may also be restarted using the Start()()() method. The MonitorStopAll method is useful in exception handling where a specific monitor interface may be lost.

Examples

This example illustrates how to stop all monitors associated with a board. Exceptions are ignored for simplicity.
C# Copy Code
try {
    /* ... start multiple monitors ... */

} catch (Exception ex) {
    card.MonitorStopAll();
}
Visual Basic Copy Code
Try
    ' ... start multiple monitors ...

Catch ex As Exception
    card.MonitorStopAll()
End Try
Visual C++ Copy Code
try {
    /* ... start multiple monitors ... */

} catch (Exception^ ex) {
    card->MonitorStopAll();
}

Exceptions

ExceptionCondition
Quanser.Hardware..::.HilException If this operation is not supported or an error occurs then an exception is thrown.

See Also