Start of trail quanser.hardware.hil.get_double_property navigation bar

Table of Contents

quanser.hardware.hil.close

Close the specified HIL device.

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.

Syntax

err = board.close
    

Description

Closes the specified HIL device that was opened using the quanser.hardware.hil.open function.

Parameters

board

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

Outputs

err

A negative error code or zero on success.

Examples

board = quanser.hardware.hil.open('q8'); % Opens the first Q8 board in the system (Q8 board #0).
...
board.close; % Close the board to release resources
    

See Also

 

navigation bar