function rtobj_getProjectList

% 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('localhost')
% Get a list of projects that are available on the real-time host
projectlist = rtobj1.getProjectList
% Set the current project to be Simulink
rtobj1.Project = 'Simulink'
rthosts = 

  simwb handle

  Properties:
    NumHosts: 1



ans = 

    'localhost'


rtobj1 = 

  simwb.rtobj handle
  Package: simwb

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



projectlist = 

    '<default>'
    'Simulink'
    'Hardware-Tests'
    'Hardware-Tests/Other'
    'Hardware-Tests/National-Instruments'
    'Hardware-Tests/AO16'
    'Hardware-Tests/AI64'
    'Hardware-Tests/CAN'
    'Hardware-Tests/1553'
    'Hardware-Tests/ARINC-429'
    'Hardware-Tests/AD3224-DS'
    'Hardware-Tests/LCAIO'
    'Hardware-Tests/FPGA_ENG'

rtobj1 = 

  simwb.rtobj handle
  Package: simwb

  Properties:
    RTHostName: 'localhost'
     Connected: 1
     RTWStruct: [1x1 struct]
         Group: 'default'
       Project: 'Simulink'


	Disconnected from real-time host.