Table of Contents
hil_close_all
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 all open HIL devices.
err = hil_close_all
Closes all the HIL devices that have been opened using the hil_open function. This function is useful for closing HIL devices when their board handles have been cleared accidentally from the MATLAB workspace.
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.
This function has no parameters.
err
A negative error code or zero on success.
hil_close_all; % Close all boards
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.