Main Content

getTargetSettings

Get target computer environment settings

Since R2020b

Description

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

example

Examples

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: '192.168.7.5'
             sshPort: 22
             xcpPort: 5555
            username: 'slrt'
        userPassword: 'slrt'
        rootPassword: 'root'
  2. Get target computer name properties from Targets object.

    my_tgs_settings.name
    ans =
    
        'TargetPC1'
    
    
    ans =
    
        'TargetPC2'
  3. Get target computer address properties from Targets object.

    my_tgs_settings.address
    ans =
    
        '192.168.7.5'
    
    
    ans =
    
        '192.168.7.10'
  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 Speedgoat target computer environment settings.

Data Types: struct

Version History

Introduced in R2020b