source: MML/trunk/machine/SOLEIL/Booster/aoinit.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 1.4 KB
Line 
1function aoinit(SubMachineName)
2%AOINIT - Initialization function for the Matlab Middle Layer (MML)
3%
4%
5%  See Also boosterinit, setpathsoleil, setoperationalmode
6
7% Written by Laurent S. Nadolski
8
9if exist('SubMachineName', 'var') && ~strcmpi(SubMachineName, 'Booster')
10    error('Wrong SubMachine %s', SubMachineName)
11end
12
13% The path should not be modified in standalone mode
14if ~isdeployed_local
15
16    MMLROOT = getmmlroot;
17    MMLDATAROOT = getmmldataroot;
18   
19    addpath(fullfile(MMLDATAROOT, 'measdata', 'SOLEIL', 'Boosterdata'));
20    addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'BoosterOpsData'));
21    addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'Booster', 'applications'));
22    addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'Booster',  'bpm'));
23    addpath(fullfile(MMLROOT, 'machine', 'SOLEIL', 'Booster', 'Lattices'));
24   
25    % APPLICATIONS
26    addpath(fullfile(MMLROOT, 'mml', 'setorbitbumpgui'));       
27    addpath(fullfile(MMLROOT, 'mml', 'setorbitgui'));       
28         
29
30    % Make sure mml is high on the path
31    addpath(fullfile(MMLROOT, 'mml'),'-begin');
32
33    disp(['TANGO/MATLAB binding version: ' tango_version])
34    disp('Startup file for Matlab Middle Layer read with success');
35
36end
37
38% Initialize the MML for machine
39
40boosterinit;
41
42function RunTimeFlag = isdeployed_local
43% isdeployed is not in matlab 6.5
44V = version;
45if str2double(V(1,1)) < 7
46    RunTimeFlag = 0;
47else
48    RunTimeFlag = isdeployed;
49end
50
Note: See TracBrowser for help on using the repository browser.