hil_close hil_set_analog_input_ranges navigation bar

Table of Contents

hil_close_all

Deprecated

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.

Syntax

err = hil_close_all
    

Description

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.

Parameters

This function has no parameters.

Outputs

err

A negative error code or zero on success.

Examples

hil_close_all;       % Close all boards
    

See Also

 

navigation bar