Main Content


Get target computer environment settings



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.

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'

Get target computer name properties from Targets object.
ans =


ans =


Get target computer address properties from Targets object.

ans =


ans =


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