Skip to Main Content Skip to Search
Product Documentation

Function Reference


AUTOSARControl AUTOSAR component configuration for import, code generation, and XML file export from Simulink models
C++ Encapsulation Interface ControlControl C++ encapsulation interfaces in generated code for ERT-based Simulink models
Code Execution ProfilingView and analyze execution profiles of code sections
Code Generation Objectives CustomizationControl step function prototypes in generated code for ERT-based Simulink models
Code Generation VerificationCompare numerical equivalence of simulation and generated code results
Embedded IDEs and Embedded TargetsControl IDEs and software build tool chains for embedded targets
Function Prototype ControlControl step function prototypes in generated code for ERT-based Simulink models
Model Entry PointsAccess entry points in generated code for ERT-based Simulink models
Processor-in-the-LoopControl processor-in-the-loop (PIL) configuration
System Target File Callback InterfaceControl Simulink Coder configuration options in callbacks for ERT-based custom targets
Target Function Library Table CreationCreate code replacement tables that make up Simulink Coder target function libraries (TFLs)

AUTOSAR

AUTOSAR Component ImportControl import of AUTOSAR components
AUTOSAR ConfigurationControl and validate AUTOSAR configuration

AUTOSAR Component Import

arxml.importerConstruct arxml.importer object
createCalibrationComponentObjects (arxml.importer)Create Simulink calibration objects from AUTOSAR calibration component
createComponentAsModel (arxml.importer)Create AUTOSAR atomic software component as Simulink model
createComponentAsSubsystem (arxml.importer)Create AUTOSAR atomic software component as Simulink atomic subsystem
createOperationAsConfigurableSubsystems (arxml.importer)Create configurable Simulink subsystem library for client-server operation
getApplicationComponentNames (arxml.importer)Get list of application software component names
getCalibrationComponentNames (arxml.importer)Get calibration component names
getClientServerInterfaceNames (arxml.importer)Get list of client-server interfaces
getComponentNames (arxml.importer)Get application and sensor/actuator software component names
getDependencies (arxml.importer)Get list of XML dependency files
getFile (arxml.importer)Return XML file name for arxml.importer object
getSensorActuatorComponentNames (arxml.importer)Get list of sensor/actuator software component names
setDependencies (arxml.importer)Set XML file dependencies
setFile (arxml.importer)Set XML file name for arxml.importer object

AUTOSAR Configuration

addEventConf (RTW.AutosarInterface)Add configured AUTOSAR event to model
addIOConf (RTW.AutosarInterface)Add AUTOSAR I/O configuration to model
attachToModel (RTW.AutosarInterface)Attach RTW.AutosarInterface object to model
getArxmlFilePackaging (RTW.AutosarInterface)Get AUTOSAR XML packaging format
getComponentName (RTW.AutosarInterface)Get XML component name
getComponentType (RTW.AutosarInterface)Get type of software component
getDataTypePackageName (RTW.AutosarInterface)Get XML data type package name
getDefaultConf (RTW.AutosarInterface)Get default configuration
getEventType (RTW.AutosarInterface) Get event type
getExecutionPeriod (RTW.AutosarInterface)Get runnable execution period
getImplementationName (RTW.AutosarInterface)Get name of XML implementation
getInitEventName (RTW.AutosarInterface)Get initial event name
getInitRunnableName (RTW.AutosarInterface)Get initial runnable name
getInterfacePackageName (RTW.AutosarInterface)Get XML interface package name
getInternalBehaviorName (RTW.AutosarInterface)Get name of XML file that specifies software component internal behavior
getIOAutosarPortName (RTW.AutosarInterface)Get I/O AUTOSAR port name
getIODataAccessMode (RTW.AutosarInterface)Get I/O data access mode
getIODataElement (RTW.AutosarInterface)Get I/O data element name
getIOErrorStatusReceiver (RTW.AutosarInterface)Get name of error status receiver port
getIOInterfaceName (RTW.AutosarInterface)Get I/O interface name
getIOPortNumber (RTW.AutosarInterface)Get I/O AUTOSAR port number
getIOServiceInterface (RTW.AutosarInterface)Get port I/O service interface
getIOServiceName (RTW.AutosarInterface)Get port I/O service name
getIOServiceOperation (RTW.AutosarInterface)Get port I/O service operation
getIsServerOperation (RTW.AutosarInterface)Determine whether server is specified
getPeriodicEventName (RTW.AutosarInterface)Get periodic event name
getPeriodicRunnableName (RTW.AutosarInterface)Get periodic runnable name
getServerInterfaceName (RTW.AutosarInterface)Get name of server interface
getServerOperationPrototype (RTW.AutosarInterface)Get server operation prototype
getServerPortName (RTW.AutosarInterface)Get server port name
getServerType (RTW.AutosarInterface)Determine server type
getTriggerPortName (RTW.AutosarInterface)Get name of Simulink inport that provides trigger data for DataReceivedEvent
removeEventConf (RTW.AutosarInterface) Remove AUTOSAR event from model
RTW.AutosarInterfaceConstruct RTW.AutosarInterface object
runValidation (RTW.AutosarInterface)Validate RTW.AutosarInterface object against model
setArxmlFilePackaging (RTW.AutosarInterface)Set AUTOSAR XML packaging format
setComponentName (RTW.AutosarInterface)Set XML component name
setComponentType (RTW.AutosarInterface)Set type of software component
setDataTypePackageName (RTW.AutosarInterface)Specify XML package name for data type
setEventType (RTW.AutosarInterface) Set type for event
setExecutionPeriod (RTW.AutosarInterface) Specify execution period for TimingEvent
setImplementationName (RTW.AutosarInterface)Set name of XML implementation
setInitEventName (RTW.AutosarInterface)Set initial event name
setInitRunnableName (RTW.AutosarInterface)Set initial runnable name
setInterfacePackageName (RTW.AutosarInterface)Set name of XML interface package
setInternalBehaviorName (RTW.AutosarInterface)Set name of XML file for software component internal behavior
setIOAutosarPortName (RTW.AutosarInterface)Set AUTOSAR port name
setIODataAccessMode (RTW.AutosarInterface)Set I/O data access mode
setIODataElement (RTW.AutosarInterface)Set I/O data element
setIOErrorStatusReceiver (RTW.AutosarInterface)Set name of error status receiver port
setIOInterfaceName (RTW.AutosarInterface)Set I/O interface name
setIOServiceInterface (RTW.AutosarInterface)Set port I/O service interface
setIOServiceName (RTW.AutosarInterface)Set port I/O service name
setIOServiceOperation (RTW.AutosarInterface)Set port I/O service operation
setIsServerOperation (RTW.AutosarInterface)Indicate that server is specified
setPeriodicEventName (RTW.AutosarInterface)Set periodic event name
setPeriodicRunnableName (RTW.AutosarInterface)Set periodic runnable name
setServerInterfaceName (RTW.AutosarInterface)Set name of server interface
setServerOperationPrototype (RTW.AutosarInterface)Specify operation prototype
setServerPortName (RTW.AutosarInterface)Set server port name
setServerType (RTW.AutosarInterface)Specify server type
setTriggerPortName (RTW.AutosarInterface) Specify Simulink inport that provides trigger data for DataReceivedEvent
syncWithModel (RTW.AutosarInterface)Synchronize configuration with model

C++ Encapsulation Interface Control

attachToModel (RTW.ModelCPPClass)Attach model-specific C++ encapsulation interface to loaded ERT-based Simulink model
getArgCategory (RTW.ModelCPPArgsClass)Get argument category for Simulink model port from model-specific C++ encapsulation interface
getArgName (RTW.ModelCPPArgsClass)Get argument name for Simulink model port from model-specific C++ encapsulation interface
getArgPosition (RTW.ModelCPPArgsClass)Get argument position for Simulink model port from model-specific C++ encapsulation interface
getArgQualifier (RTW.ModelCPPArgsClass)Get argument type qualifier for Simulink model port from model-specific C++ encapsulation interface
getClassName (RTW.ModelCPPClass)Get class name from model-specific C++ encapsulation interface
getDefaultConf (RTW.ModelCPPClass)Get default configuration information for model-specific C++ encapsulation interface from Simulink model
getNumArgs (RTW.ModelCPPClass)Get number of step method arguments from model-specific C++ encapsulation interface
getStepMethodName (RTW.ModelCPPClass)Get step method name from model-specific C++ encapsulation interface
RTW.configSubsystemBuildConfigure C function prototype or C++ encapsulation interface for right-click build of specified subsystem
RTW.getEncapsulationInterfaceSpecificationGet handle to model-specific C++ encapsulation interface control object
RTW.ModelCPPArgsClassCreate C++ encapsulation interface object for configuring model class with I/O arguments style step method
RTW.ModelCPPVoidClassCreate C++ encapsulation interface object for configuring model class with void-void style step method
runValidation (RTW.ModelCPPArgsClass)Validate model-specific C++ encapsulation interface against Simulink model
runValidation (RTW.ModelCPPVoidClass)Validate model-specific C++ encapsulation interface against Simulink model
setArgCategory (RTW.ModelCPPArgsClass)Set argument category for Simulink model port in model-specific C++ encapsulation interface
setArgName (RTW.ModelCPPArgsClass)Set argument name for Simulink model port in model-specific C++ encapsulation interface
setArgPosition (RTW.ModelCPPArgsClass)Set argument position for Simulink model port in model-specific C++ encapsulation interface
setArgQualifier (RTW.ModelCPPArgsClass)Set argument type qualifier for Simulink model port in model-specific C++ encapsulation interface
setClassName (RTW.ModelCPPClass)Set class name in model-specific C++ encapsulation interface
setStepMethodName (RTW.ModelCPPClass)Set step method name in model-specific C++ encapsulation interface

Code Execution Profiling

Summary and Timer
Section Profile

Summary and Timer

displayGenerate message that describes how to open code execution profiling report
getNumSectionProfilesGet number of profiled code sections
getSectionProfileGet rtw.pil.ExecutionProfileSection object for a profiled code section
getTimerTicksPerSecondGet number of timer ticks per second
reportOpen code execution profiling report
setTimerTicksPerSecondSet number of timer ticks per second

Section Profile

getMaxTicksGet maximum number of timer ticks for single invocation of profiled code section
getNameGet name of profiled task
getNumCallsTotal number of calls to profiled code section
getSampleOffsetGet sample offset associated with profiled task
getSamplePeriodGet sample time associated with profiled task
getSectionNumberGet number that uniquely identifies profiled code section
getTicksGet execution times in timer ticks for profiled section of code
getTimesGet execution times in seconds for profiled section of code
getTotalSelfTicksGet total number of timer ticks recorded for profiled code section excluding periods in child functions
getTotalTicksGet total number of timer ticks recorded for profiled code section

Code Generation Objectives Customization

addCheck (rtw.codegenObjectives.Objective)Add checks
addParam (rtw.codegenObjectives.Objective)Add parameters
excludeCheck (rtw.codegenObjectives.Objective)Exclude checks
modifyInheritedParam (rtw.codegenObjectives.Objective)Modify inherited parameter values
register (rtw.codegenObjectives.Objective)Register objective
removeInheritedCheck (rtw.codegenObjectives.Objective)Remove inherited checks
removeInheritedParam (rtw.codegenObjectives.Objective)Remove inherited parameters
rtw.codegenObjectives.ObjectiveCreate custom code generation objectives
setObjectiveName (rtw.codegenObjectives.Objective)Specify objective name

Code Generation Verification

activateConfigSet (cgv.CGV)Activate configuration set of model
addBaseline (cgv.CGV)Add baseline file for comparison
addConfigSet (cgv.CGV)Add configuration set
addHeaderReportFcn (cgv.CGV)Add callback function to execute before executing any input data in object
addInputData (cgv.CGV)Add input data
addPostExecFcn (cgv.CGV)Add callback function to execute after each input data file is executes
addPostExecReportFcn (cgv.CGV)Add callback function to execute after each input data file executes
addPostLoadFiles (cgv.CGV)Add files required by model
addPreExecFcn (cgv.CGV)Add callback function to execute before each input data file executes
addPreExecReportFcn (cgv.CGV)Add callback function to execute before each input data file executes
addTrailerReportFcn (cgv.CGV)Add callback function to execute after all input data executes
compare (cgv.CGV)Compare signal data
configModel (cgv.Config)Determine and change configuration parameter values
copySetup (cgv.CGV)Create copy of cgv.CGV object
createToleranceFile (cgv.CGV)Create file correlating tolerance information with signal names
displayReport (cgv.Config)Display results of comparing configuration parameter values
getOutputData (cgv.CGV)Get output data
getReportData (cgv.Config)Return results of comparing configuration parameter values
getSavedSignals (cgv.CGV)Display list of signal names to command line
getStatus (cgv.CGV)Return execution status
plot (cgv.CGV)Create plot for signal or multiple signals
run (cgv.CGV)Execute CGV object
setMode (cgv.CGV)Specify mode of execution
setOutputDir (cgv.CGV)Specify folder
setOutputFile (cgv.CGV)Specify output data file name

Embedded IDEs and Embedded Targets

IDE Automation Interface

Analog Devices VisualDSP++

activateMark file, project, or build configuration as active
addAdd files to active project in IDE
addressMemory address and page value of symbol in IDE
adivdspCreate handle object to interact with VisualDSP++ IDE
adivdspsetupConfigure your coder product to interact with VisualDSP++ IDE
buildBuild or rebuild current project
cdSet working folder in IDE
closeClose project in IDE window
dirFiles and folders in current IDE window
display (IDE Object)Properties of IDE handle
getbuildoptGenerate structure of build tools and options
haltHalt program execution by processor
infoInformation about processor
insertInsert debug point in file
isrunningDetermine whether processor is executing process
isvisibleDetermine whether IDE appears on desktop
listsessionsList existing sessions
loadLoad program file onto processor
newCreate project, library, or build configuration in IDE
openOpen project in IDE
profileGenerate real-time execution or stack profiling report
readRead data from processor memory
removeRemove file, project, or breakpoint
resetStop program execution and reset processor
runExecute program loaded on processor
saveSave file
setbuildoptSet active configuration build options
symbolProgram symbol table from IDE
visibleSet whether IDE window appears while IDE runs
writeWrite data to processor memory block
xmakefilesetupConfigure your coder product to generate makefiles

Eclipse IDE

activateMark file, project, or build configuration as active
addAdd files to active project in IDE
addressMemory address and page value of symbol in IDE
buildBuild or rebuild current project
closeClose project in IDE window
dirFiles and folders in current IDE window
display (IDE Object)Properties of IDE handle
eclipseideCreate handle object to interact with Eclipse IDE
eclipseidesetupConfigure your coder product to interact with Eclipse IDE
haltHalt program execution by processor
insertInsert debug point in file
isrunningDetermine whether processor is executing process
loadLoad program file onto processor
newCreate project, library, or build configuration in IDE
openOpen project in IDE
profileGenerate real-time execution or stack profiling report
pwdWorking folder used by Eclipse
readRead data from processor memory
reloadReload most recent program file to processor signal processor
removeRemove file, project, or breakpoint
restartReload most recent program file to processor signal processor
runExecute program loaded on processor
writeWrite data to processor memory block
xmakefilesetupConfigure your coder product to generate makefiles

Green Hills MULTI

activateMark file, project, or build configuration as active
addAdd files to active project in IDE
addressMemory address and page value of symbol in IDE
buildBuild or rebuild current project
cdSet working folder in IDE
closeClose project in IDE window
connectConnect IDE to processor
dirFiles and folders in current IDE window
display (IDE Object)Properties of IDE handle
getbuildoptGenerate structure of build tools and options
ghsmultiCreate handle object to interact with MULTI IDE
ghsmulticonfigConfigure coder product to interact with MULTI IDE
haltHalt program execution by processor
infoInformation about processor
insertInsert debug point in file
isrunningDetermine whether processor is executing process
listInformation listings from IDE
loadLoad program file onto processor
newCreate project, library, or build configuration in IDE
openOpen project in IDE
profileGenerate real-time execution or stack profiling report
readRead data from processor memory
regreadValues from processor registers
regwriteWrite data values to registers on processor
reloadReload most recent program file to processor signal processor
removeRemove file, project, or breakpoint
resetStop program execution and reset processor
restartReload most recent program file to processor signal processor
runExecute program loaded on processor
setbuildoptSet active configuration build options
symbolProgram symbol table from IDE
writeWrite data to processor memory block
xmakefilesetupConfigure your coder product to generate makefiles

Texas Instruments Code Composer Studio 3.3

activateMark file, project, or build configuration as active
addAdd files to active project in IDE
addressMemory address and page value of symbol in IDE
animateRun application on processor to breakpoint
buildBuild or rebuild current project
ccsboardinfoInformation about boards and simulators known to IDE
cdSet working folder in IDE
checkEnvSetupConfigure your coder product to interact with Code Composer Studio
closeClose project in IDE window
configureDefine size and number of RTDX channel buffers
dirFiles and folders in current IDE window
disableDisable RTDX interface, specified channel, or all RTDX channels
display (IDE Object)Properties of IDE handle
enableEnable RTDX interface, specified channel, or all RTDX channels
flushFlush data or messages from specified RTDX channels
getbuildoptGenerate structure of build tools and options
haltHalt program execution by processor
infoInformation about processor
insertInsert debug point in file
isenabledDetermine whether RTDX link is enabled for communications
isreadableDetermine whether specified memory block can read MATLAB software
isrtdxcapableDetermine whether processor supports RTDX
isrunningDetermine whether processor is executing process
isvisibleDetermine whether IDE appears on desktop
iswritableDetermine whether MATLAB can write to specified memory block
listInformation listings from IDE
loadLoad program file onto processor
msgcountNumber of messages in read-enabled channel queue
newCreate project, library, or build configuration in IDE
openOpen project in IDE
profileGenerate real-time execution or stack profiling report
readRead data from processor memory
readmatMatrix of data from RTDX channel
readmsgRead messages from specified RTDX channel
regreadValues from processor registers
regwriteWrite data values to registers on processor
reloadReload most recent program file to processor signal processor
removeRemove file, project, or breakpoint
resetStop program execution and reset processor
restartReload most recent program file to processor signal processor
runExecute program loaded on processor
saveSave file
setbuildoptSet active configuration build options
symbolProgram symbol table from IDE
ticcsCreate handle object to interact with Code Composer Studio IDE
visibleSet whether IDE window appears while IDE runs
writeWrite data to processor memory block
writemsgWrite messages to specified RTDX channel
xmakefilesetupConfigure your coder product to generate makefiles

Texas Instruments Code Composer Studio 4

checkEnvSetupConfigure your coder product to interact with Code Composer Studio

XMakefile

remoteBuildBuild Simulink-generated code on remote target running Linux
xmakefilesetupConfigure your coder product to generate makefiles

Function Prototype Control

addArgConf (RTW.ModelSpecificCPrototype)Add argument configuration information for Simulink model port to model-specific C function prototype
attachToModel (RTW.ModelSpecificCPrototype)Attach model-specific C function prototype to loaded ERT-based Simulink model
getArgCategory (RTW.ModelSpecificCPrototype)Get argument category for Simulink model port from model-specific C function prototype
getArgName (RTW.ModelSpecificCPrototype)Get argument name for Simulink model port from model-specific C function prototype
getArgPosition (RTW.ModelSpecificCPrototype)Get argument position for Simulink model port from model-specific C function prototype
getArgQualifier (RTW.ModelSpecificCPrototype)Get argument type qualifier for Simulink model port from model-specific C function prototype
getDefaultConf (RTW.ModelSpecificCPrototype)Get default configuration information for model-specific C function prototype from Simulink model
getFunctionName (RTW.ModelSpecificCPrototype)Get function name from model-specific C function prototype
getNumArgs (RTW.ModelSpecificCPrototype)Get number of function arguments from model-specific C function prototype
getPreview (RTW.ModelSpecificCPrototype)Get model-specific C function prototype code preview
RTW.configSubsystemBuildConfigure C function prototype or C++ encapsulation interface for right-click build of specified subsystem
RTW.getFunctionSpecificationGet handle to model-specific C prototype function control object
RTW.ModelSpecificCPrototypeCreate model-specific C prototype object
runValidation (RTW.ModelSpecificCPrototype)Validate model-specific C function prototype against Simulink model
setArgCategory (RTW.ModelSpecificCPrototype)Set argument category for Simulink model port in model-specific C function prototype
setArgName (RTW.ModelSpecificCPrototype)Set argument name for Simulink model port in model-specific C function prototype
setArgPosition (RTW.ModelSpecificCPrototype)Set argument position for Simulink model port in model-specific C function prototype
setArgQualifier (RTW.ModelSpecificCPrototype)Set argument type qualifier for Simulink model port in model-specific C function prototype
setFunctionName (RTW.ModelSpecificCPrototype)Set function name in model-specific C function prototype

Model Entry Points

model_initializeInitialization entry point in generated code for ERT-based Simulink model
model_SetEventsForThisBaseStepSet event flags for multirate, multitasking operation before calling model_step for ERT-based Simulink model — not generated as of Version 5.1 (R2008a)
model_stepStep routine entry point in generated code for ERT-based Simulink model
model_terminateTermination entry point in generated code for ERT-based Simulink model

Processor-in-the-Loop

Connectivity ConfigurationDefine processor-in-the-loop (PIL) configuration
BuildConfigure PIL build process
TimerCreate and configure timer object
Execution Download, Start and StopControl downloading, starting and resetting PIL executable on target hardware
Host and Target CommunicationsConfigure host-target communications
Host-Side CommunicationsConfigure host-side communications channel and drivers
Target-Side CommunicationsConfigure target-side communications channel and drivers

Connectivity Configuration

rtw.connectivity.ComponentArgsProvide parameters to each target connectivity component
rtw.connectivity.ConfigDefine connectivity implementation, comprising builder, launcher, and communicator components
rtw.connectivity.ConfigRegistryRegister connectivity configuration

Build

rtw.connectivity.MakefileBuilderConfigure makefile-based build process

Timer

rtw.connectivity.TimerCreate and configure timer object for target

Execution Download, Start and Stop

rtw.connectivity.LauncherControl downloading, starting and resetting executable on target hardware

Host and Target Communications

rtIOStreamCloseShut down communications channel with remote processor
rtIOStreamOpenInitialize communications channel with remote processor
rtIOStreamRecvReceive data from remote processor
rtIOStreamSendSend data to remote processor

Host-Side Communications

rtiostream_wrapperTest rtiostream shared library methods
rtw.connectivity.RtIOStreamHostCommunicatorConfigure host-side communications

Target-Side Communications

rtw.pil.RtIOStreamApplicationFrameworkConfigure target-side communications

System Target File Callback Interface

slConfigUIGetValReturn current value for custom target configuration option
slConfigUISetEnabledEnable or disable custom target configuration option
slConfigUISetValSet value for custom target configuration option

Target Function Library Table Creation

addAdditionalHeaderFileAdd additional header file to array of additional header files for TFL table entry
addAdditionalIncludePathAdd additional include path to array of additional include paths for TFL table entry
addAdditionalLinkObjAdd additional link object to array of additional link objects for TFL table entry
addAdditionalLinkObjPathAdd additional link object path to array of additional link object paths for TFL table entry
addAdditionalSourceFileAdd additional source file to array of additional source files for TFL table entry
addAdditionalSourcePathAdd additional source path to array of additional source paths for TFL table entry
addConceptualArgAdd conceptual argument to array of conceptual arguments for TFL table entry
addEntryAdd table entry to collection of table entries registered in TFL table
copyConceptualArgsToImplementationCopy conceptual argument specifications to matching implementation arguments for TFL table entry
createAndAddConceptualArgCreate conceptual argument from specified properties and add to conceptual arguments for TFL table entry
createAndAddImplementationArgCreate implementation argument from specified properties and add to implementation arguments for TFL table entry
createAndSetCImplementationReturnCreate implementation return argument from specified properties and add to implementation for TFL table entry
enableCPPEnable C++ support for function entry in TFL table
getTflArgFromStringCreate TFL argument based on specified name and built-in data type
registerCFunctionEntryCreate TFL function entry based on specified parameters and register in TFL table
registerCPPFunctionEntryCreate TFL C++ function entry based on specified parameters and register in TFL table
registerCPromotableMacroEntryCreate TFL promotable macro entry based on specified parameters and register in TFL table (for abs function replacement only)
setNameSpaceSet name space for C++ function entry in TFL table
setReservedIdentifiersRegister specified reserved identifiers to be associated with TFL table
setTflCFunctionEntryParametersSet specified parameters for function entry in TFL table
setTflCOperationEntryParametersSet specified parameters for operator entry in TFL table
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS