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
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
System Target File Callback InterfaceControl Real-Time Workshop configuration options in callbacks for ERT-based custom targets
Target Function Library Table CreationCreate function replacement tables that make up Real-Time Workshop target function libraries (TFLs)
Processor-in-the-LoopControl processor-in-the-loop (PIL) configuration

AUTOSAR

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

AUTOSAR Component Import

createCalibrationComponentObjectsCreate Simulink calibration objects from AUTOSAR calibration component
createComponentAsModelCreate AUTOSAR atomic software component as Simulink model
createComponentAsSubsystemCreate AUTOSAR atomic software component as Simulink atomic subsystem
getCalibrationComponentNamesGet calibration component names
getComponentNamesGet atomic software component names
getDependenciesGet list of XML dependency files
getFileReturn XML file name for arxml.importer object
importerConstruct arxml.importer object
setDependenciesSet XML file dependencies
setFileSet XML file name for arxml.importer object

AUTOSAR Configuration

addIOConf Add AUTOSAR I/O configuration to a model
attachToModel (AUTOSAR)Attach RTW.AutosarInterface object to model
getComponentNameGet XML component name
getDataTypePackageNameGet XML data type package name
getDefaultConf (AUTOSAR)Get default configuration
getExecutionPeriodGet runnable execution period
getImplementationNameGet XML implementation name
getInitEventNameGet initial event name
getInitRunnableNameGet initial runnable name
getInterfacePackageNameGet XML interface package name
getInternalBehaviorNameGet XML internal behavior name
getIOAutosarPortNameGet I/O AUTOSAR port name
getIODataAccessModeGet I/O data access mode
getIODataElementGet I/O data element name
getIOErrorStatusReceiverGet receiver port name
getIOInterfaceNameGet I/O interface name
getIOPortNumberGet I/O AUTOSAR port name
getIOServiceInterfaceGet port I/O service interface
getIOServiceNameGet port I/O service name
getIOServiceOperationGet port I/O service operation
getPeriodicEventNameGet periodic event name
getPeriodicRunnableNameGet periodic runnable name
getPortDefaultConfGet port default configuration
runValidation (AUTOSAR)Validate RTW.AutosarInterface object against model
setComponentNameSet XML component name
setInitEventNameSet initial event name
setInitRunnableNameSet initial runnable name
setIOAutosarPortNameSet AUTOSAR port name
setIODataAccessModeSet I/O data access mode
setIODataElementSet I/O data element
setIOInterfaceNameSet I/O interface name
setPeriodicEventNameSet periodic event name
setPeriodicRunnableNameSet periodic runnable name
syncWithModelSynchronize configuration with model

C++ Encapsulation Interface Control

attachToModel (C++ Encapsulation Interface Control)Attach model-specific C++ encapsulation interface to loaded ERT-based Simulink model
getArgCategory (C++ Encapsulation Interface Control)Get argument category for Simulink model port from model-specific C++ encapsulation interface
getArgName (C++ Encapsulation Interface Control)Get argument name for Simulink model port from model-specific C++ encapsulation interface
getArgPosition (C++ Encapsulation Interface Control)Get argument position for Simulink model port from model-specific C++ encapsulation interface
getArgQualifier (C++ Encapsulation Interface Control)Get argument type qualifier for Simulink model port from model-specific C++ encapsulation interface
getClassNameGet class name from model-specific C++ encapsulation interface
getDefaultConf (C++ Encapsulation Interface Control)Get default configuration information for model-specific C++ encapsulation interface from Simulink model to which it is attached
getNumArgs (C++ Encapsulation Interface Control)Get number of step method arguments from model-specific C++ encapsulation interface
getStepMethodNameGet step method name from model-specific C++ encapsulation interface
RTW.configSubsystemBuildOpen GUI to configure 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
runValidation (C++ Encapsulation Interface Control)Validate model-specific C++ encapsulation interface against Simulink model to which it is attached
setArgCategory (C++ Encapsulation Interface Control)Set argument category for Simulink model port in model-specific C++ encapsulation interface
setArgName (C++ Encapsulation Interface Control)Set argument name for Simulink model port in model-specific C++ encapsulation interface
setArgPosition (C++ Encapsulation Interface Control)Set argument position for Simulink model port in model-specific C++ encapsulation interface
setArgQualifier (C++ Encapsulation Interface Control)Set argument type qualifier for Simulink model port in model-specific C++ encapsulation interface
setClassNameSet class name in model-specific C++ encapsulation interface
setStepMethodNameSet step method name in model-specific C++ encapsulation interface

Function Prototype Control

addArgConfAdd argument configuration information for Simulink model port to model-specific C function prototype
attachToModel (Function Prototype Control)Attach model-specific C function prototype to loaded ERT-based Simulink model
getArgCategory (Function Prototype Control)Get argument category for Simulink model port from model-specific C function prototype
getArgName (Function Prototype Control)Get argument name for Simulink model port from model-specific C function prototype
getArgPosition (Function Prototype Control)Get argument position for Simulink model port from model-specific C function prototype
getArgQualifier (Function Prototype Control)Get argument type qualifier for Simulink model port from model-specific C function prototype
getDefaultConf (Function Prototype Control)Get default configuration information for model-specific C function prototype from Simulink model to which it is attached
getFunctionNameGet function name from model-specific C function prototype
getNumArgs (Function Prototype Control)Get number of function arguments from model-specific C function prototype
getPreviewGet model-specific C function prototype code preview
RTW.configSubsystemBuildOpen GUI to configure C function prototype or C++ encapsulation interface for right-click build of specified subsystem
RTW.getFunctionSpecificationGet handle to a model-specific C prototype function control object
runValidation (Function Prototype Control)Validate model-specific C function prototype against Simulink model to which it is attached
setArgCategory (Function Prototype Control)Set argument category for Simulink model port in model-specific C function prototype
setArgName (Function Prototype Control)Set argument name for Simulink model port in model-specific C function prototype
setArgPosition (Function Prototype Control)Set argument position for Simulink model port in model-specific C function prototype
setArgQualifier (Function Prototype Control)Set argument type qualifier for Simulink model port in model-specific C function prototype
setFunctionNameSet 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

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
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
registerCPromotableMacroEntryCreate TFL promotable macro entry based on specified parameters and register in TFL table (for abs function replacement only)
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

Processor-in-the-Loop

Connectivity ConfigurationDefine processor-in-the-loop (PIL) configuration
BuildConfigure PIL build process
Execution Download, Start and 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 of the target connectivity components
rtw.connectivity.ConfigDefine connectivity implementation, comprising builder, launcher, and communicator components
rtw.connectivity.ConfigRegistryRegister connectivity configuration

Build

rtw.connectivity.MakefileBuilderConfigure makefile-based build process

Execution Download, Start and 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
  


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