function rtobj_uploadRTDB

% 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 = 'ccursldemo_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 = 2 % SWprefix option take values 0, 1, 2, or 3
% Create RTDB for the my_sldemo_suspn model
rtobj1.createRTDB
% Upload the RTDB to the Real-Time Host
rtobj1.uploadRTDB
% Get the name of the configuration RTDB
rtobj1.getConfigRTDBName
% Release the RTDB on the server to allow another client to access it
rtobj1.releaseRTDB
rthosts = 

  simwb handle

  Properties:
    NumHosts: 1



ans = 

    'RedHawk1'

	Connected to real-time host.

rtobj1 = 

  simwb.rtobj handle
  Package: simwb

  Properties:
    RTHostName: 'RedHawk1'
     Connected: 1
     RTWStruct: [1x1 struct]
         Group: 'default'
       Project: '<default>'



ans = 

             modelname: ''
                  rtdb: ''
      systemtargetfile: ''
              SWprefix: ''
          sourceregexp: ''
            sinkregexp: ''
    addcompileroptions: ''
      addlinkeroptions: ''
               mdlrefs: {}


rtobj1 = 

  simwb.rtobj handle
  Package: simwb

  Properties:
    RTHostName: 'RedHawk1'
     Connected: 1
     RTWStruct: [1x1 struct]
         Group: 'default'
       Project: '<default>'


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

ans =

     1


RTDB sldemo_rtdb appended on real-time host RedHawk1

ans =

sldemo_rtdb

Successfully unloaded the RTDB from the server.
	Disconnected from real-time host.