source: MML/trunk/machine/SOLEIL/StorageRing/insertions/idMeasElecBeamUnd.m @ 4

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

Initial import--MML version from SOLEIL@2013

File size: 1.1 KB
Line 
1function outStruct = idMeasElecBeamUnd(idName, inclPerturbMeas, fileNameCore, AddTime, dispData)
2%idMeasElecBeamUnd
3%
4%  INPUTS
5%  1. idName - Insertion device name
6%  2. inclPertubMeas - if 1 includes measurement of chromaticities and dispersion functions
7%                      if 0 nothing 
8%  3. fileNameCore - filename core for saving data
9%  4. dispData - Flag. 1 for displaying data, 0 otherwise
10%
11%  OUPUTS
12%  1. outStruct
13%
14%  EXAMPLE
15%  For measuring the corrector efficiency versus orbit
16%  first set the current to CVE to 6 A
17%  then compute the efficiency of CVE as follows:
18%  idMeasElecBeamUnd('U20_PROXIMA1test', 0, 'U20_PROXIMA1_CVE_6', 1)
19
20% outStruct.X = 0;
21outStruct=struct;
22
23% measrures data (orbit, etc.)
24outStruct = idMeasElecBeam(outStruct, inclPerturbMeas, dispData);
25
26% Reads tango state, encoders, correctors of undulator
27if strcmp(idName, '') == 0
28    outStruct = idReadUndState(outStruct, idName, dispData);
29end
30
31% Saves the data to a file
32if strcmp(fileNameCore, '') == 0
33    outStruct.file = idSaveStruct(outStruct, fileNameCore, idName, AddTime, dispData);
34end
Note: See TracBrowser for help on using the repository browser.