Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By convention, an AIDA data provider that supports setting values will accept either a single scalar or vector value, or a list of named scalar or vector values.  The EPICS channel access data provider is of the formere sort, and the SLC Magnet server is of the latter.

NB: Presently, only the EPICS Channel Access data provider supports this tool.  This is because it's the only data provider that knows how to convert the string you provide on the command-line into a value of the type appropriate for the underlying system.

An example of setting an a scalar EPICS process variable:

No Format
 aidasetaidaset HR81:STN:VOLT//VAL 0.227

And an example of setting a corrector via the Magnet server (*NOTE: need to mod magnet server to use DaValue conversions):

No Format

 aidaset MAGNETSET//BDES -params=MAGFUNC=TRIM /XCOR:LI31:41 4.0

In the EPICS channel access example, we set a single unnamed value.  In the magnet example, we set a single named value.  As you can see, value names are indicated as /NAME. 

Vector elements my be listed sequentially with whitespace separators as in the following contrived example:

No Format

aidaset MY:VECTOR//VAL 1 2 3 4 5 6 7 8 9 10 

And finally a contrived example illustrating how a data provider that accepts multiple named vector values per set might look:

No Format

 aidaset MY:NAMED:VECTORS//VAL /SILLYNAME 0 1 2 3 4 5 /ANOTHERNAME 6 7 8 9 10