rtw.pil.RtIOStreamApplicationFramework
Configure target-side communications
Description
Specify target-specific libraries and source files that are required to build
the executable file. The libraries and source files must include the device drivers that
implement the target-side of the rtiostream communications
channel.
Creation
Description
appFrameObj = rtw.pil.RtIOStreamApplicationFramework(componentArgs)
returns an object that provides access to an RTW.BuildInfo
object containing PIL-specific files (including a PIL main
function). rtw.connectivity.MakefileBuilder combines these
files with the PIL component libraries to create the PIL application.
Make a subclass of rtw.pil.RtIOStreamApplicationFramework.
In addition:
Use the
addPILMainmethod to specify amainfunction, which is required to build the PIL application.To the
RTW.BuildInfoobject, add data that is required for the implementation of thertiostreamtarget communications interface by using provided functions:Source file names -
addSourceFilesSource file paths -
addSourcePathsInclude file names -
addIncludeFilesInclude file paths -
addIncludePathsLibraries -
addLinkObjectsPreprocessor macro definitions -
addDefinesCompiler options -
addCompileFlagsLinker options -
addLinkFlags
Object Functions
| Function | Description |
|---|---|
getComponentArgs | componentArgs = appFrameObj.getComponentArgs
returns the rtw.connectivity.ComponentArgs object
associated with appFrameObj. |
getBuildInfo | buildInfo = appFrameObj.getBuildInfo returns the
RTW.BuildInfo object associated with
appFrameObj. |
addPILMain |
To build the PIL application, a To specify a appFrameObj.addPILMain('target');To specify a appFrameObj.addPILMain('host');Alternatively, you can specify your own componentArgs = appFrameObj.getComponentArgs; buildInfo = appFrameObj.getBuildInfo; buildInfo.addSourcePaths(pathToMyMainC); buildInfo.addSourceFiles(myMainC); |
Examples
Using rtw.pil.RtIOStreamApplicationFramework in PIL Connectivity
For an example that shows how to use this object in setting up PIL connectivity, see:
For MATLAB®, Processor-in-the-Loop Execution from Command Line
For Simulink®, Configure Processor-In-The-Loop (PIL) for a Custom Target
Version History
Introduced in R2008b