Download Real-Time Workshop User's Guide
Transcript
Customizing the Build Process Table 14-3: Template Makefile Tokens Expanded by make_rtw (Continued) Token Expansion |>BUILDARGS<| Options passed to make_rtw. This token is provided so that the contents of your model.mk file will change when you change the build arguments, thus forcing an update of all modules when your build options change. |>EXT_MODE<| True (1) to enable generation of external mode support code, otherwise False (0). These tokens are expanded by substitution of parameter values known to the build process. For example, if the source model contains blocks with two different sample times, the template makefile statement NUMST = |>NUMST<| expands to the following in model.mk. NUMST = 2 In addition to the above, make_rtw expands tokens from other sources: • Target-specific tokens defined via the Target configuration section of the Real-Time Workshop pane of the Simulation Parameters dialog box. • Structures in the RTW Options section of the system target file. Any structures in the rtwoptions structure array that contain the field makevariable are expanded. The following example is extracted from matlabroot/rtw/c/grt/grt.tlc. The section starting with BEGIN_RTW_OPTIONS contains M-file code that sets up rtwoptions. The directive rtwoptions(2).makevariable = 'EXT_MODE' causes the |>EXT_MODE<| token to be expanded into 1 (on) or 0 (off), depending on how you set the External mode option in the Code generation options section of the Real-Time Workshop pane. 14-31
Related documents
Real-Time Workshop®
MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER User`s guide
Cisco DWDM XFP
Target Language Compiler Reference Guide
Real-Time Workshop
fulltext01 - DiVA Portal
Simulink PLC Coder User`s Guide
Motion Control of Industrial Printers
Target Language Compiler Reference Guide
DSP-2 Library for Simulink
Real-Time Workshop User`s Guide
Real-Time Workshop Release Notes