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 | |
---|
1 | function 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 |
---|
15 | ConfigSetpoint = getmachineconfig('Simulator'); |
---|
16 | |
---|
17 | |
---|
18 | tmp = 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 | |
---|
24 | if strcmpi(tmp,'YES') |
---|
25 | % Set from the online machine |
---|
26 | setmachineconfig(ConfigSetpoint, 'Online'); |
---|
27 | else |
---|
28 | fprintf(' No change made to the Physics Data Structure\n'); |
---|
29 | return |
---|
30 | end |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.