target.connection.open - Create a connection between MATLAB development computer and remote build computer - MATLAB (original) (raw)

Main Content

Create a connection between MATLAB development computer and remote build computer

Since R2024a

Syntax

Description

target.connection.open([board](#mw%5Ff5772dd1-6ef0-4034-af29-907c8c2aba35), [type](#mw%5Fe5958ef4-a91b-49e0-8dca-04a3b32c1bdd)) creates a connection between your MATLAB® development computer and a remote build computer.

example

target.connection.open(___, [Name=Value](#namevaluepairarguments)) creates a connection using one or more name-value arguments.

example

Examples

Input Arguments

collapse all

Required. Name of target hardware board, which must correspond to theName property of a target.Board object in the internal database. The target.Board object provides MATLAB with a description of the remote build computer.

Example: target.connection.open(boardName, 'SSH', IP='192.168.0.10', Username='pi');

Optional. Type of connection between MATLAB and remote build computers. Only Secure Shell (SSH) is supported.

Example: target.connection.open(boardName, 'SSH', IP='192.168.0.10', Username='pi');

Name-Value Arguments

collapse all

Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: target.connection.open(boardName, 'SSH', IP='remoteHost.com', Port=22, Username='myName', AuthenticationMode='Password');

Required. IP address of remote build computer.

Optional. Port number for connection type.

Optional. Mode of authentication for SSH access to remote build computer.

Optional. Path to SSH identity file. If you specify this option, the software sets AuthenticationMode to'IdentityFile' internally. Use this option if you want to avoid interactive selection of an identify file via the GUI.

Optional. Specify whether the SSH identity file is password-locked:

Version History

Introduced in R2024a