source: MML/trunk/mml/family2units.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: 751 bytes
Line 
1function [Units, UnitsString] = family2units(varargin)
2%FAMILY2UNITS - Return the present family units and units string
3%  [Units, UnitsString] = family2units(Family, Field)
4%
5%  INPUTS
6%  1. Family - Family Name
7%              Data Structure
8%              Accelerator Object
9%              (or a cell array of the above types)
10%  2. Field - Accelerator Object field name ('Monitor', 'Setpoint', etc) {Default: 'Monitor'}
11%
12%  OUTPUTS
13%  1. Units - Units ('Physics' or 'Hardware') corresponding to the Family and Field
14%  2. UnitsSting - Units string corresponding to the Family and Field
15%
16%  NOTES
17%  1. If the inputs are cell arrays, then the outputs are cell arrays
18%
19%  Written by Greg Portmann
20
21
22[Units, UnitsString] = getunits(varargin{:});
Note: See TracBrowser for help on using the repository browser.