Main Content

getTargetSettings

Get target computer environment settings

Description

example

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

Examples

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: '192.168.7.5'
         sshPort: 22
         xcpPort: 5555
        username: 'slrt'
    userPassword: 'slrt'
    rootPassword: 'root'

Get target computer name properties from Targets object.

my_tgs_settings.name
ans =

    'TargetPC1'


ans =

    'TargetPC2'

Get target computer address properties from Targets object.

my_tgs_settings.address
ans =

    '192.168.7.5'


ans =

    '192.168.7.10'

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

Introduced in R2020b