Main Content

connect

Connect Simulink to selected target computer

Since R2022b

    Description

    connect(tg) establishes 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();
    

    Input Arguments

    collapse all

    Object represents a target computer. Use the object to establish the connection with Linux target, to deploy the applications on Linux target, and perform several other actions.

    Example: myTargetHandle

    Version History

    Introduced in R2022b