source: MML/trunk/mml/sim2machine.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: 757 bytes
Line 
1function sim2machine
2%SIM2MACHINE - Sets the AT configuration to the online machine
3%
4%  Equivalent to:
5%  ConfigSetpoint = getmachineconfig('Simulator');
6%  setmachineconfig(ConfigSetpoint, 'Online');
7%
8%  See Also sim2machine, golden2sim
9
10%
11%  Written by Gregory J. Portmann
12
13
14% Get from the simulator
15ConfigSetpoint = getmachineconfig('Simulator');
16
17
18tmp = questdlg({ ...
19        'sim2machine change all the lattice magnet setpoint in the storage ring', ...
20        ' ', ...
21        'Are you sure you want to do this?'}, ...
22    'SIM2MACHINE','YES','NO','NO');
23
24if strcmpi(tmp,'YES')
25    % Set from the online machine
26    setmachineconfig(ConfigSetpoint, 'Online');
27else
28    fprintf('   No change made to the Physics Data Structure\n');
29    return
30end
31
Note: See TracBrowser for help on using the repository browser.