rtobj.createRTDB(arg)
createRTDB is a method of the simwb.rtobj object. This method will create a RTDB for a Simulink model. The RTDB is in the form of an ASCII file with the name signal.db which will be created in the current working directory. The creation of the RTDB for a Simulink model is influenced by the SWprefix option. The RTDB maps Simulink sources and sink blocks to RTDB variables, and also to external hardware via these RTDB variables.
The SWprefix can take one of the following values:0 - RTDB Item variables will be created for all source and sink blocks in the model
Note:
Automatic SimWB RTDB generation currently supports the following block types:
|
1 (Recommended) - When then SWprefix value is set to 1, RTDB variables will be created only for
source and sink blocks that have a "SW" prefix in the block names. This option
provides a better control on which blocks map to RTDB variables. This option is not limited to the source and
sink blocks mentioned above. Any custom S-function source and sink blocks
can be mapped to RTDB variables using the SWprefix option.
2 - Combination of SWprefix = 0 and SWprefix = 1.3 - RTDB item variables are created for MLToolkit library blocks only. Use this option to speed up RTDB creation or code generation.
     SimWB Target Configuration Tool