Main Content

getDefaultTargetName

Get default target computer name

Since R2020b

Description

getDefaultTargetName(targets_object,target_name) gets the name of the default Speedgoat® target computer.

example

Examples

collapse all

Create Targets object my_tgs. Get default target computer name.

my_tgs = slrealtime.Targets();
getDefaultTargetName(my_tgs)
ans =

    'TargetPC1'

Input Arguments

collapse all

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

Example: tgs

Data Types: struct

Example: 'TargetPC1'

Data Types: char | string

Version History

Introduced in R2020b