Target Object Properties
Using these properties, you can configure the Target
object
and observe target computer status.
Configuration
TargetSettings
— Target computer configuration information
TargetSettings
struct
The TargetSettings
property holds a
TargetSettings
structure that includes fields
name
, address
, sshPort
,
xcpPort
, username
,
userPassword
, and rootPassword
. To view the
TargetSettings
, in the MATLAB Command Window, type:
tg.TargetSettings
ans = TargetSettings with properties: name: 'TargetPC1' address: '192.168.7.5' sshPort: 22 xcpPort: 5555 username: 'slrt' userPassword: 'slrt' rootPassword: 'root'
SDIRunId
— Target computer SDI run identifier
int32
The SDIRunId
property holds the Simulation Data Inspector run
identifier for the current simulation run. To view the SDIRunId
, in
the MATLAB Command Window, type:
tg.SDIRunId
ans = int32 22110
ptpd
— Target computer PTP daemon configuration
PTPControl
struct
The ptpd
property holds a PTPControl
structure
that includes fields Command
and AutoStart
. For
more information, see the Target.ptpd
object. To view the TargetSettings
, in the
MATLAB Command Window, type:
tg.ptpd
ans = PTPControl with properties: Command: 'ptpd -L -K -g' AutoStart: 1
Stimulation
— Target computer stimulation control
stimulation control
The Stimulation
property provides access to the Target.Stimulation
object. To view the Stimulation
, in
the MATLAB Command Window, type:
tg.Stimulation
ans = StimulationControl with no properties.
Status
ProfilerStatus
— Target computer execution profiler information
Ready
| StartRequested
| Running
| DataAvailable
The ProfilerStatus
property holds the execution profiler status.
To view the ProfilerStatus
, in the MATLAB Command Window, type:
tg.ProfilerStatus
ans = 'Ready'
FileLog
— Target computer file logger status information
FileLogger
struct
The FileLog
property holds a FileLogger
structure that includes fields Importing
,
LoggingService
, and DataAvailable
. For more
information, see the Target.FileLog
object. To view the TargetSettings
, in the
MATLAB Command Window, type:
tg.FileLog
ans = FileLogger with properties: Importing: 0 ImportProgress: 100 LoggingService: STOPPED DataAvailable: 0
TargetStatus
— Target computer status
TargetStatus
struct
The TargetStatus
property provides access to target computer
status information. The status values are enums. To view the
TargetStatus
, in the MATLAB Command Window, type:
tg.TargetStatus
ans = struct with fields: State: BUSY Error: ''
ModelStatus
— Target computer model status
xxx
The ModelStatus
property provides access to information about the
loaded real-time application and related model. The status values are enums. To view the
ModelStatus
, in the MATLAB Command Window, type:
tg.ModelStatus
ans = struct with fields: State: LOADED Application: 'slrt_ex_osc_outport' ModelName: 'slrt_ex_osc_outport' Error: '' LogLevel: "info" PollingThreshold: 1.0000e-04 FileLogMaxRuns: 1 OverrideBaseRatePeriod: 0 StopTime: 10 ExecTime: 0 TETInfo: [1×1 struct]
Version History
Introduced in R2020b
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)