Target
Description
A Target
object represents a Speedgoat® target computer and
provides access to Object Functions, Target Object Properties, and Target Object Events related to the
target computer.
The object provides access to methods and properties that:
Start and stop the real-time application.
Read and set parameters.
Log and stream signals.
Retrieve status information about the target computer.
Restart the target computer.
Load the real-time application.
Start, stop, and retrieve information from the profiler.
Function names are case-sensitive. Type the entire name. Property names are not case-sensitive. You do not need to type the entire name if the characters you type are unique for the property.
You can invoke some of the object properties and functions from the target computer command line when the real-time application has been loaded. For more information, see Target Computer Command-Line Interface.
Creation
constructs a
target object representing the
default target computer. target_object
= slrealtime
constructs a target object
representing the target computer
designated by target_object
= slrealtime(target_name
)target_name
.
The slrealtime
function accepts these arguments:
target_name
— Name assigned to target computer (character vector or string scalar). For example,'TargetPC1'
.target_object
— Object representing target computer. For example,tg
.
Example: Create Target Object for Default Target Computer
Example: Build and Run Real-Time Application
Properties
Object Functions
addInstrument | Add instrument object to target object |
clearStartupApp | Clear startup application selection on target computer |
connect | Connect MATLAB to target computer |
copyPage | Copy one calibration page to another in the real-time application |
deleteParamSet | Delete selected parameter set file from an application |
deleteProfilerData | Delete execution profiler data from target computer |
disconnect | Disconnect MATLAB from target computer |
exportParamSet | Write ParameterSet object data to parameter set file |
getAllInstruments | Get information on instruments added to target object |
getApplicationFile | Get name of real-time application file |
getAvailableProfile | Get information about available execution profiler data |
getECUPage | Get current page number used by ECU on real-time application |
getInstalledApplications | Get list of installed real-time application files |
getLastApplication | Get name of real-time application most recently run on target computer |
getNumPages | Get number of pages in memory for real-time application |
getPersistentVariables | Get persistent variables from the Simulink Real-Time target computer to MATLAB |
getProfilerData | Retrieve profile data object |
getStartupApp | Get information about startup application configuration on target computer |
getXCPPage | Get current page number used by XCP on real-time application |
getparam | Read value of observable parameter in real-time application |
getsignal | Read a signal value from a real-time application |
getVersion | Get MATLAB, support package, and Speedgoat I/O Blockset version information |
importParamSet | Create ParameterSet object |
install | Install real-time application on target computer |
isConnected | Get target computer connected status |
isLoaded | Get real-time application loaded status |
isRunning | Get real-time application running status |
listParamSet | List available parameter set files for application |
load | Deploy to target and load real-time application to target computer |
loadParamSet | Restore parameter values saved in specified file |
reboot | Restart target computer |
removeAllInstruments | Remove instrument objects from target object |
removeAllApplications | Removes all Simulink Real-Time applications from target computer |
removeApplication | Removes Simulink Real-Time application from Speedgoat target computer |
removeInstrument | Remove selected instrument object from target object |
reset | Reset target object |
resetProfiler | Reset profiling service state to Ready
|
saveParamSet | Save real-time application parameter values |
setECUAndXCPPage | Set memory pages used by XCP and ECU to selected memory page on real-time application |
setECUPage | Set memory page used by ECU to selected memory page on real-time application |
setStartupApp | Configure startup real-time application for target computer |
setStopTime | Configure stop time for real-time application |
setXCPPage | Set memory page used by XCP to selected memory page on real-time application |
setipaddr | Set IP address and netmask on the target computer |
setparam | Change value of tunable parameter in real-time application |
setPersistentVariables | Set persistent variables from MATLAB to the Simulink Real-Time target computer |
start | Start execution of real-time application on target computer |
startProfiler | Start profiling service on target computer |
startRecording | Starts signal data live streaming and File Log logging |
status | Get status of real-time application on target computer |
stop | Stop execution of real-time application on target computer |
stopProfiler | Stop profiling service on target computer |
stopRecording | Stops signal data live streaming and File Log logging |
update | Update RTOS version on target computer |