Target Object Events
Use listeners for target object events to observe the Speedgoat target computer state
Since R2020b
Syntax
Target Object Events
Many Target
object
functions produce event status. You can use the MATLAB listener
function
to observe event states.
Connecting
,ConnectFailed
,Connected
These events relate to connecting a target computer by using the Real-Time tab in the Simulink Editor, Simulink Real-Time Explorer, or the
connect
function. TheConnecting
event indicates the connection process has started (for example, aconnect(tg)
function call occurred), but no connection actions have yet occurred. When the connection process completes, theConnected
orConnectFailed
events occur.Disconnecting
,Disconnected
These events relate to disconnecting a target computer by using the Real-Time tab in the Simulink Editor, Simulink Real-Time Explorer, or the
disconnect
function. TheDisconnecting
event indicates the disconnection process has started (for example, adisconnect(tg)
function call occurred), but no disconnection actions have yet occurred. When the disconnection process completes, theDisconnected
event occurs.Installing
,InstallFailed
,Installed
These events relate to installing a real-time application on a target computer by using the
install
function. TheInstalling
event indicates the installation process has started (for example, aninstall(tg)
function call occurred), but no installation actions have yet occurred. When the installation process completes, theInstalled
orInstallFailed
events occur.Loading
,LoadFailed
,Loaded
These events relate to loading a real-time application on a target computer by using the Real-Time tab in the Simulink Editor, Simulink Real-Time Explorer, or the
load
function. TheLoading
event indicates the load process has started (for example, aload(tg)
function call occurred), but no load actions have yet occurred. When the load process completes, theLoaded
orLoadFailed
events occur.Starting
,StartFailed
,Started
These events relate to starting a real-time application on a target computer by using the Real-Time tab in the Simulink Editor, Simulink Real-Time Explorer, or the
start
function. TheStarting
event indicates the start process has started (for example, astart(tg)
function call occurred), but no start actions have yet occurred. When the start process completes, theStarted
orStartFailed
events occur.Stopping
,StopFailed
,Stopped
These events relate to stopping a real-time application on a target computer by using the Real-Time tab in the Simulink Editor, Simulink Real-Time Explorer, or the
stop
function. TheStopping
event indicates the stop process has started (for example, astop(tg)
function call occurred), but no stop actions have yet occurred. When the stop process completes, theStopped
orStopFailed
events occur.Rebooting
,RebootFailed
,RebootIssued
These events relate to rebooting a target computer by using the Simulink Real-Time Explorer or the
reboot
function. TheRebooting
event indicates the reboot process has started (for example, areboot(tg)
function call occurred), but no reboot actions have yet occurred. When the reboot process completes, theRebootIssued
orRebootFailed
events occur.UpdateBegin
,UpdateFailed
,UpdateCompleted
These events relate to updating target computer RTOS software by using the Simulink Real-Time Explorer or the
update
function. TheUpdateBegin
event indicates the update process has started (for example, anupdate(tg)
function call occurred), but no update actions have yet occurred. When the update process completes, theUpdateCompleted
orUpdateFailed
events occur.SetIPAddressBegin
,SetIPAddressFailed
,SetIPAddressCompleted
These events relate to changing a target computer IP address by using the Simulink Real-Time Explorer or the
setipaddr
function. TheSetIPAddressBegin
event indicates the IP set process has started (for example, ansetipaddr(tg)
function call occurred), but no IP set actions have yet occurred. When the set IP process completes, theSetIPAddressCompleted
orSetIPAddressFailed
events occur.StartupAppChanged
This event relates to changing a target computer startup application by using the Simulink Real-Time Explorer or the
setStartupApp
orclearStartupApp
functions. TheStartupAppChanged
event indicates the app set process has completed. For example, asetStartupApp(tg)
function call completes the app set process.StopTimeChanged
This event relates to changing a real-time application stop time by using the Simulink Real-Time Explorer or the
setStopTime
function. TheStopTimeChanged
event indicates the stop time set process has completed. For example, asetStopTime(tg)
function call completes the stop time set process.ParamChanged
This event relates to changing a real-time application parameter by using the Simulink Real-Time Explorer or the
setparam
function. TheParamChanged
event indicates the parameter set process has completed. For example, asetparam(tg)
function call completes the parameter set process.ParamSetChanged
This event relates to changing a real-time application parameter set by using the
loadParamSet
function. TheParamSetChanged
event indicates the load parameter set process has completed. For example, aloadParamSet(tg)
function call completes the load parameter set process.CalPageChanged
This event relates to changing the currently used real-time application calibration page by using the
setECUPage
,setXCPPage
,setECUAndXCPPage
, orcopyPage
functions. TheCalPageChanged
event indicates the page change process has completed. For example, asetECUPage(tg)
function call completes the page change process.RecordingStarted
This event relates to recording start of real-time application signal streaming by using the Simulink Real-Time Explorer Start Recording button or the
startRecording
function. TheRecordingStarted
event indicates the recording process has started. For example, astartRecording(tg)
function call completes the recording start process.RecordingStopped
This event relates to recording stop of real-time application signal streaming by using the Simulink Real-Time Explorer Stop Recording button or the
stopRecording
function. TheRecordingStopped
event indicates the recording process has stopped. For example, astopRecording(tg)
function call completes the recording stop process.ApplicationRemoved
This event relates to removing a real-time application from the target computer by using the
removeApplication
function. TheApplicationRemoved
event indicates the application removal process has completed. For example, aremoveApplication(tg)
function call completes the application removal process.
Version History
Introduced in R2020b