Target Object Events
Use listeners for target object events to observe the Speedgoat target computer state
Syntax
Target Object Events
Many Target object
functions produce event status. You can use the MATLAB listener function
to observe event states. Also, you can use an EventManager component to
manage a collection of event observers and callbacks. For more information, see EventManager.
Connecting,ConnectFailed,ConnectedThese events relate to connecting a target computer by using the Real-Time tab in the Simulink Editor, Simulink Real-Time Explorer, or the
connectfunction. TheConnectingevent 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, theConnectedorConnectFailedevents occur.Disconnecting,DisconnectedThese events relate to disconnecting a target computer by using the Real-Time tab in the Simulink Editor, Simulink Real-Time Explorer, or the
disconnectfunction. TheDisconnectingevent 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, theDisconnectedevent occurs.Installing,InstallFailed,InstalledThese events relate to installing a real-time application on a target computer by using the
installfunction. TheInstallingevent 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, theInstalledorInstallFailedevents occur.Loading,LoadFailed,LoadedThese 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
loadfunction. TheLoadingevent 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, theLoadedorLoadFailedevents occur.Starting,StartFailed,StartedThese 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
startfunction. TheStartingevent 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, theStartedorStartFailedevents occur.Stopping,StopFailed,StoppedThese 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
stopfunction. TheStoppingevent 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, theStoppedorStopFailedevents occur.Rebooting,RebootFailed,RebootIssuedThese events relate to rebooting a target computer by using the Simulink Real-Time Explorer or the
rebootfunction. TheRebootingevent 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, theRebootIssuedorRebootFailedevents occur.UpdateBegin,UpdateFailed,UpdateCompletedThese events relate to updating target computer RTOS software by using the Simulink Real-Time Explorer or the
updatefunction. TheUpdateBeginevent 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, theUpdateCompletedorUpdateFailedevents occur.SetIPAddressBegin,SetIPAddressFailed,SetIPAddressCompletedThese events relate to changing a target computer IP address by using the Simulink Real-Time Explorer or the
setipaddrfunction. TheSetIPAddressBeginevent 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, theSetIPAddressCompletedorSetIPAddressFailedevents occur.StartupAppChangedThis event relates to changing a target computer startup application by using the Simulink Real-Time Explorer or the
setStartupApporclearStartupAppfunctions. TheStartupAppChangedevent indicates the app set process has completed. For example, asetStartupApp(tg)function call completes the app set process.StopTimeChangedThis event relates to changing a real-time application stop time by using the Simulink Real-Time Explorer or the
setStopTimefunction. TheStopTimeChangedevent indicates the stop time set process has completed. For example, asetStopTime(tg)function call completes the stop time set process.ParamChangedThis event relates to changing a real-time application parameter by using the Simulink Real-Time Explorer or the
setparamfunction. TheParamChangedevent indicates the parameter set process has completed. For example, asetparam(tg)function call completes the parameter set process.ParamSetChangedThis event relates to changing a real-time application parameter set by using the
loadParamSetfunction. TheParamSetChangedevent indicates the load parameter set process has completed. For example, aloadParamSet(tg)function call completes the load parameter set process.CalPageChangedThis event relates to changing the currently used real-time application calibration page by using the
setECUPage,setXCPPage,setECUAndXCPPage, orcopyPagefunctions. TheCalPageChangedevent indicates the page change process has completed. For example, asetECUPage(tg)function call completes the page change process.RecordingStartedThis event relates to recording start of real-time application signal streaming by using the Simulink Real-Time Explorer Start Recording button or the
startRecordingfunction. TheRecordingStartedevent indicates the recording process has started. For example, astartRecording(tg)function call completes the recording start process.RecordingStoppedThis event relates to recording stop of real-time application signal streaming by using the Simulink Real-Time Explorer Stop Recording button or the
stopRecordingfunction. TheRecordingStoppedevent indicates the recording process has stopped. For example, astopRecording(tg)function call completes the recording stop process.ApplicationRemovedThis event relates to removing a real-time application from the target computer by using the
removeApplicationfunction. TheApplicationRemovedevent indicates the application removal process has completed. For example, aremoveApplication(tg)function call completes the application removal process.
Version History
Introduced in R2020b