source: MML/trunk/machine/SOLEIL/LT2/aoinit.m @ 5

Last change on this file since 5 was 5, checked in by zhangj, 10 years ago

ThomX MML version on the LAL server @ 17/12/2013

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