quanser.hardware.hil.open quanser.hardware.hil.esc_output navigation bar

Table of Contents

quanser.hardware.hil.close_all

Closes all open HIL devices.

Syntax

err = quanser.hardware.hil.close_all
    

Description

Closes all the HIL devices that have been opened using the quanser.hardware.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

quanser.hardware.hil.close_all;       % Close all boards
    

See Also

 

navigation bar