Real-Time Workshop® 7.1
Product Description
- Introduction and Key Features
- Working with Real-Time Workshop
- Selecting Targets
- Defining and Controlling Data
- Executing Code in a Real-Time Environment and Optimizing Code
- Customizing Real-Time Workshop
Selecting Targets
Real-Time Workshop uses target template files to translate your Simulink models into ANSI/ISO C code. The target templates specify the environment on which your generated code will run. You can develop your own custom targets or use the ready to-run configurations and third-party targets supported by Real-Time Workshop. These include the following:
Generic Real-Time Target—generates code for interactive tuning of model parameters, logs and displays real time simulation results, and allocates data statically (for efficient real-time execution)
Generic Real-Time Malloc Target—uses dynamic memory allocation in the generated code, enabling you to include multiple instances of your model or multiple models in one executable
S-Function Target—converts models into Simulink S-function DLLs, enabling you to share models for simulation without compromising intellectual propert
Rapid Simulation Target (RSim)—provides a fast, flexible test platform for performing batch or Monte Carlo simulation studies using fixed- or variable-step solvers, making it easy to vary model parameters and input signal data for each run and save data to unique output files
Tornado Target—generates code for execution on VxWorks, an RTOS from Wind River Systems
All targets support single-tasking, multitasking, and hybrid continuous-time and discrete-time models. You can extend these targets to create customized run-time interfaces and device driver files for targeting your environment and accessing Real-Time Workshop execution and debug capabilities.
You can generate and deploy production C code in real-time embedded systems using Real-Time Workshop Embedded Coder targets (available separately).
Generating Code for Simulink Models and Embedded MATLAB Code
Real-Time Workshop generates C code for Embedded MATLAB functions directly from the MATLAB command line using the emlc function in MATLAB. Real-Time Workshop also offers the most complete support available for Simulink features and components, including:
- Model referencing, enabling incremental code generation
- Embedded MATLAB function blocks in Simulink and Embedded MATLAB functions in Stateflow
- Bus objects, enabling you to generate structures in your code
- Atomic subsystems, enabling code reuse via reentrant C functions
- Simulink S-functions, enabling you to simulate and interface with legacy code
Real-Time Workshop also supports a wide variety of applications, from algorithm deployment with Stateflow, Simulink Fixed Point, and Signal Processing Blockset to real-time simulation of systems modeled with Aerospace Blockset, SimMechanics, and SimPowerSystems.
Generating Code for Large-Scale Applications
Real-Time Workshop provides incremental code generation, enabling you to generate code for specific blocks in your model without recoding the entire model. This component-based approach streamlines the development of very large models and reduces code generation build times.
Store