source: MML/trunk/machine/SOLEIL/StorageRing/insertions/idMeasElecBeamUndNoTime.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.0 KB
Line 
1function outStruct = idMeasElecBeamUndNoTime(idName, inclPerturbMeas, fileNameCore, 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
20outStruct.X = 0;
21
22% measrures data (orbit, etc.)
23outStruct = idMeasElecBeamNoTime(outStruct, inclPerturbMeas, dispData);
24
25% Reads tango state, encoders, correctors of undulator
26if strcmp(idName, '') == 0
27    outStruct = idReadUndState(outStruct, idName, dispData);
28end
29
30% Saves the data to a file
31if strcmp(fileNameCore, '') == 0
32    outStruct.file = idSaveStructNoTime(outStruct, fileNameCore, idName, dispData);
33end
Note: See TracBrowser for help on using the repository browser.