Table of Contents
hil_close
The HIL API MATLAB functions have been deprecated in favour of the new quanser.hardware.hil class, which has support for code generation for Quanser targets. Hence, with the new hil class it is possible to run MATLAB scripts in real-time on Quanser targets, while making use of the Quanser hardware. |
Closes an HIL board.
err = hil_close(board_handle)
Closes the specified HIL device that was opened using the hil_open 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_handle
The board handle returned by the hil_open function.
err
A negative error code or zero on success.
board = hil_open('q8'); % Opens the first Q8 board in the system (Q8 board #0). ... hil_close(board); % Close the board to release resources
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.