Main Content

disconnect

R2026b

Disconnect Simulink from selected target computer

Since R2022b

    Description

    disconnect(tg) removes the connection between the specified target and Simulink®.

    Examples

    collapse all

    Create a target object and add a target with name LinuxTarget1. Connect the target to Simulink.

    tgs = linux.Targets();
    tg = tgs.addTarget("LinuxTarget1", "178.10.10.1", "user1", "myPassword");
    tg.connect();
    

    Disconnect the target from Simulink.

    tg.disconnect();

    Input Arguments

    collapse all

    Target computer for the deployed application, specified as a linuxTarget object. The object provides access to methods that manipulate the target computer properties.

    Example: tg

    Version History

    Introduced in R2022b