function rtobj_loadConfigRTDB

% 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')
% Upon successful connection with the real-time host, display a list of
% RTDB's present on the real-time host
list = rtobj1.getRTDBList
% Load the autotrans RTDB
rtobj1.loadConfigRTDB('autotrans');
% Get the name of the configuration RTDB that is currently loaded
rtobj1.getConfigRTDBName
rthosts = 

  simwb handle

  Properties:
    NumHosts: 3



ans = 

    'RedHawk1'
    'RedHawk2'
    'RedHawk3'


rtobj1 = 

  simwb.rtobj handle
  Package: simwb

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



list = 

    'autotrans'
    'cardemo'
    'f14'
    'flex_cl_8'
    'flex_dyn'
    'fuelsys'
    'moxatest_rtdb'
    'multigen'
    'multiuav'
    'rtdemo1'
    'suspension_demo'
    'suspension_demo_anish'
    'testdb'
    'vector_test'


ans =

autotrans