function rtobj_getSessionList

% 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')
% Get a list of tests that are available on the real-time host
testlist = rtobj1.getTestList
% Start the suspendion_demo test
rtobj1.startTestSession('suspension_demo')
% Get the name of the current test that is loaded
rtobj1.getCurrentTest
% Get the list of sessions that are available in the currently loaded test
sessionlist = rtobj1.getSessionList
% Get a list of session that are available in the autotrans test
sessionlist = rtobj1.getSessionList('autotrans')
% Get a detailed list of session that are available in the autotrans test
sessionlist = rtobj1.getSessionList('autotrans', '-a')
% Display details of the first session in the sessionlist
disp(sessionlist{1})
rthosts = 

  simwb handle

  Properties:
    NumHosts: 3



ans = 

    'RedHawk1'
    'RedHawk2'
    'RedHawk3'


rtobj1 = 

  simwb.rtobj handle
  Package: simwb

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



testlist = 

    '2Dparameter'
    'CAN_TestLoopBack'
    'New_mulit_model'
    'VectorTest'
    'anishtest1'
    'ao16wave'
    'arinc429FIFOSched'
    'autotrans'
    'carjoy'
    'd96_single_board'
    'ert_cardemojoy'
    'f14_1'
    'fgfsUAV'
    'flex_dyn'
    'fuelsys'
    'multi_models'
    'multigen'
    'rtdemo1'
    'rtdemo1_sigg_c'
    'rtdemo1_sigg_py'
    'rtdemo2'
    'rtdemo_ref'
    'st_cardemo'
    'suspension_demo'
    'testanish1'

Test session 'suspension_demo' started.

ans =

suspension_demo


sessionlist = 

    'Ses_0031'
    'Ses_0032'


sessionlist = 

    'Ses_0015'
    'Ses_0016'
    'Ses_0017'
    'Ses_0018'
    'ses1'


sessionlist = 

  Columns 1 through 2

    [1x271 char]    [1x271 char]

  Columns 3 through 4

    [1x271 char]    [1x271 char]

  Column 5

    [1x277 char]

sessionid=Ses_0015,initconditions=.default,description=N%2FA,createdate=1291074985,starttime=1291075026:148026,stoptime=1291075026:148026,fixedstep=10000,runframes=0,status=-101,swsstat=0,maxoverruns=10,maxconsecutiveoverruns=5,testoverruns=0,nodatalogging=0,nodirectio=0