function rtobj_createRTDB

% Create a new real-time host environment collection object
rthosts = simwb.rthosts
% Get names of real-time host environments present in the collection
rthosts.getRTEnvNames
% Create a new real-time host object and link it to the RedHawk1
% environment
rtobj1 = simwb.rtobj('RedHawk1')
% Display RTWStruct
rtobj1.RTWStruct
% Populate RTWStruct
% Use model created in Getting Started tutorial video
rtobj1.RTWStruct.modelname = 'my_sldemo_suspn'; % Name of the model
rtobj1.RTWStruct.rtdb      = 'sldemo_rtdb';     % Name of the RTDB
% System Target File is not required for creating the RTDB
rtobj1.RTWStruct.systemtargetfile ;
rtobj1.RTWStruct.SWprefix = 0; % SWprefix option take values 0,1, or 2
% Create RTDB for the my_sldemo_suspn model
rtobj1.createRTDB
% Peruse the signal.db file created in the current directory
edit signal.db
% Change the SWprefix option to 1
rtobj1.RTWStruct.SWprefix = 1; % SWprefix option take values 0,1, or 2
% Create RTDB again. This will overwrite the signal.db file created earlier
rtobj1.createRTDB
% Peruse the signal.db file created in the current directory
edit signal.db
% Change the SWprefix option to 2
rtobj1.RTWStruct.SWprefix = 2; % SWprefix option take values 0,1, or 2
% Create RTDB again. This will overwrite the signal.db file created earlier
rtobj1.createRTDB
% Peruse the signal.db file created in the current directory
edit signal.db
rthosts = 

  simwb handle

  Properties:
    NumHosts: 1



ans = 

    'RedHawk1'


rtobj1 = 

  simwb.rtobj handle
  Package: simwb

  Properties:
    RTHostName: 'RedHawk1'
     Connected: 1
     RTWStruct: [1x1 struct]



ans = 

           modelname: ''
                rtdb: ''
    systemtargetfile: ''
            SWprefix: ''

#### Creating RTDB for model my_sldemo_suspn
## Creating file signal.db in current folder...
## Analyzing sources in the model...
## Mapping all source blocks to RTDB variables.
## 
## Analyzing sinks in the model...
## Mapping all sink blocks to RTDB variables.
## signal.db successfully created in current folder.
*****END Creating RTDB for the model*****************
#### Creating RTDB for model my_sldemo_suspn
## Creating file signal.db in current folder...
## Analyzing sources in the model...
## Mapping all source blocks with 'SW' prefix to RTDB variables.
## 
## Analyzing sinks in the model...
## Mapping all sink blocks with 'SW' prefix to RTDB variables.
## signal.db successfully created in current folder.
*****END Creating RTDB for the model*****************
#### Creating RTDB for model my_sldemo_suspn
## Creating file signal.db in current folder...
## Analyzing sources in the model...
## Mapping all source blocks with 'SW' prefix to RTDB variables.
## Mapping all source blocks to RTDB variables.
## 
## Analyzing sinks in the model...
## Mapping all sink blocks with 'SW' prefix to RTDB variables.
## Mapping all sink blocks to RTDB variables.
## signal.db successfully created in current folder.
*****END Creating RTDB for the model*****************