Main Content


Get target computer environment settings

Since R2020b



settings_object = getTargetSettings(targets_object) gets the environment settings for the target computers that are connected to the development computer.


collapse all

Create Targets object my_tgs. Get target settings for object.

  1. my_tgs = slrealtime.Targets();
    my_tgs_settings = getTargetSettings(my_tgs)
    my_tgs_settings = 
      TargetSettings with properties:
                name: 'TargetPC1'
             address: ''
             sshPort: 22
             xcpPort: 5555
            username: 'slrt'
        userPassword: 'slrt'
        rootPassword: 'root'
  2. Get target computer name properties from Targets object.
    ans =
    ans =
  3. Get target computer address properties from Targets object.

    ans =
    ans =
  4. To change target computer settings, use the properties of the Target object.

Input Arguments

collapse all

Provides access to methods that manipulate the target computers and their target settings.

Example: tgs

Data Types: struct

Output Arguments

collapse all

Object containing target computer environment settings.

Data Types: struct

Version History

Introduced in R2020b