| xPC Target | ![]() |
www.kxcad.net Home > CAE Software Index > MATLAB Index >
The xPC Target build process enables you to customize code generation for additional processing, such as adding custom messages, or extracting from the model additional information that is not normally performed during code generation. For examples:
Extracting model information in ASAP2, ASAP3, or XML format
Adding custom messages that can be captured during the automated build process.
xPC Target provides this capability using the Real-Time Workshop Target Language Compiler. This feature assumes that you are familiar with the Real-Time Workshop Target Language Compiler and its directives.
To add your custom code, change directory to matlabroot\toolbox\rtw\targets\xpc\target\build\tlc.
Using the MATLAB editor or another text editor, edit the customentry.tlc file to add your custom generation commands using the Real-Time Workshop Target Language Compiler directives (Directives and Built-In Functions). The following is the default customentry.tlc file.
%%%%%%%%% Add your custom code generation commands here. %%% The following is an example to output custom messages to the build process. %selectfile STDOUT %if RTWVerbose %%% Add custom output messages here. %endif %selectfile NULL_FILE
Note If there are problems with the build process because of your custom commands, you will need to resolve these errors and rebuild the target application. If you do not want xPC Target to access these directives while building the target application, either delete this file or remove it from the MATLAB path. |
| Configuring xPC Target and Vector CANape | Versalogic | ![]() |
© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments