source: MML/trunk/machine/SOLEIL/StorageRing/insertions/idMeasElecBeamUnd_NoTime.m @ 17

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

To have a stable version on the server.

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1function outStruct = idMeasElecBeamUnd_NoTime(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 = idMeasElecBeam_NoTime(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 = idSaveStruct_NoTime(outStruct, fileNameCore, idName, dispData);
33end
Note: See TracBrowser for help on using the repository browser.