User's Guide


Introduction to Real-Time Workshop® TechnologyExplains how you can apply Real-Time Workshop® and related technology to system development.
Code Generation and the Build ProcessDescribes the automatic program building process in detail. It discusses all code generation options controlled by the Real-Time Workshop® graphical user interface. Topics include data logging, inlining and tuning parameters, and template makefiles. The chapter also summarizes available target configurations.
Generated Code FormatsCompares and contrasts targets and their associated code styles, which include the real-time, real-time malloc, embedded-C, and S-Function code formats.
Building Subsystems and Working with Referenced ModelsDescribes how to control code generation for models called by Model blocks, and for conditionally executed and atomic subsystems.
Working with Data StructuresExplains how to generate storage declarations to import and export parameters and block states and configure storage for signals and data objects.
External ModeTells you how to instrument your generated code for external mode, a simulation environment that supports on-the-fly parameter tuning, signal monitoring, and data logging.
Program ArchitectureDiscusses the architecture of programs generated by the Real-Time Workshop® code generator, and the run-time interface.
Models with Multiple Sample RatesDescribes how to handle multirate systems.
Optimizing a Model for Code GenerationDiscusses and illustrates techniques for optimizing your generated programs.
Writing S-Functions for Real-Time Workshop® Code GenerationDescribes several approaches to designing S-Functions that will be included in generated code, including telling you how to make your S-functions compliant for multitasking and code reuse.
S-Function TargetExplains how to generate S-Function blocks from models and subsystems. This enables you to encapsulate models and subsystems and protect your designs by distributing only binaries.
Running Rapid SimulationsDiscusses the rapid simulation target (RSim), which executes your model in nonrealtime on your host computer. Use this feature to generate fast, standalone simulations that allow batch parameter tuning and the loading of new simulation data (signals) from MATLAB® MAT-files without needing to recompile your model.
Targeting the Wind River Systems Tornado® Environment for Real-Time ApplicationsDescribes capabilities and techniques for converting a Simulink® model into a real-time application for execution under the Wind River Systems VxWorks® real-time operating system.
Inserting Custom Code Into Generated CodeBlocks from the Custom Code library let you insert your own C or C++ code into specific functions in the generated code for models.
Timing ServicesDescribes how code for timers is set up for asynchronous and multirate models, APIs for accessing timing data, and how elapsed time computations are handled.
Asynchronous SupportDescribes how code for timers is set up for asynchronous and multirate models, APIs for accessing timing data, and how elapsed time computations are handled.
Data Exchange APIsDiscusses advanced techniques including combining multiple models into a single executable, and using APIs for external mode communication, signal monitoring, and parameter tuning.
Working with Embedded MATLAB™ CoderDescribes how to use the Embedded MATLAB™ Coder for generating C code directly from M-files
Blocks That Depend on Absolute TimeLists blocks whose use is restricted due to dependency on absolute time.
Generating ASAP2 FilesDescribes using the Real-Time Workshop® product to generate files for the Association for Standardization of Automation and Measuring Systems' ASAP2 data definition standard.
  


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