cavget and cavput are useful tools (especially for well formatted PV names) which are available in the SDDSEpicsToolKit available here:
http://www.aps.anl.gov/Accelerator_Systems_Division/Accelerator_Operations_Physics/oagSoftware.shtmlHere are the help lines ...
nda@gaeaimac 1> cavget
cavget [-list=<string>[=<value>][,<string>[=<value>]...]]
[-range=begin=<integer>,end=<integer>[,format=<string>][,interval=<integer>]]
[-floatformat=<printfString>]
{ [-delimiter=<string>] [-labeled] [-noQuotes] [-embrace=start=<string>,end=<string>]
| [-cavputForm] }
[-statistics=number=<value>,pause=<value>[,format=[tagvalue][pretty][SDDS,file=<filename]]]
[-pendIoTime=<seconds>] [-repeat=number=<integer>,pause=<seconds>[,average[,sigma]]]
[-numerical] [-errorValue=<string>] [-excludeErrors]
[-despike[[neighbors=<integer>][,passes=<integer>][,averageOf=<integer>][,threshold=<value>]]
[-printErrors]
-list specifies PV name string components
-range specifies range of integers and format string
-floatFormat specifies printf-style format string for printing
single- and double-precision values. %g is the default.
-delimiter specifies string to print between values. The
default is a newline.
-labeled specifies that the PV name be echoed with the value.
A space separates the name and value.
-noQuotes Don't put quotes around string values that contain whitespace
or are blank.
-embrace Specifies putting braces around tag-value pairs.
Typically used only with -label.
-cavputForm Specifies printout output in a format that can be given directly to
cavput for restoration of readback values.
-pendIoTime specifies maximum time to wait for connections and
return values. Default is 1.0s
-dryRun specifies showing PV names and values but
not sending to IOCs.
-errorValue specifies a string to emit when there is a timeout or other
error for a PV. The default is ?.
-excludeErrors
specifies that when there is a timeout or other error for a PV,
there should be no output for that PV.
-numerical return a numerical value rather than a string for enumerated
types.
-repeat specifies repeated readings of the PVs at a specified time
interval. If the average qualifier is given, then numerical
readbacks are averaged; for nonnumerical outputs, the last value
is given.
-statistics specifies statistical calculations of the PVs with reading times of
giving number at a specified time interval.
if format=tagvalue is given, the output format would be
"mean <value> median <value> sigma <value> ...."
if format=pretty, the statistical values are printed in columns format.
if format=SDDS,file=<filename> is given, the results will be written
to file.
-despike despike must come along with repeat or statistics option which supplies
the number of readings. Despike specifies despiking of the number of
reading values given by repeat or statistics under the assumption
that consecutive readings are nearest neighbors. While,
<neighbors> is the number of neighbors for checking
despiking; <averageOf> is the number of consecutive readings around
the despiking for averaging and the averaged value (excluding the despike)
is going to replace this despiking data; <passes> is the number of times for
processing despiking; <threshold> is the despiking threshold, if the threshold
is zero or if the sum of absolute delta from the left most neighbor to
current reading is greater than <threshold>*<neighbors>, this reading value
is going to be replace by the averaged value of <averageOf> consecutive
readings around this reading and excluding this reading, i.e., if threshold
is zero, despiking works similar to averaging. The value of <neighbors> and
<averageOf> must be smaller than the number of readings.
printErrors print error message to standard error if channel not found.
Program by Michael Borland, ANL/APS (EPICS 3.14.11, May 12 2012)
nda@gaeaimac 2> cavput
usage: cavput [-list=<string>[=<value>][,<string>[=<value>]...]]
[-range=begin=<integer>,end=<integer>[,format=<string>][,interval=<integer>]]
[-pendIoTime=<seconds>] [-deltaMode[=factor=<value>]] [-ramp=step=<n>,pause=<sec>]
[-numerical] [-blunderAhead[=silently]]
-list specifies PV name string components
-range specifies range of integers and format string
-pendIoTime specifies maximum time to wait for connections and
return values. Default is 1.0s
-dryRun specifies showing PV names and values but
not sending to IOCs.
-deltaMode specifies that values are deltas from present values in
PVs.
-numerical forces conversion of the value to a number and sending as
a number. Default for -deltaMode.
-ramp ramp to the value by given steps (default is 1) with given pause
(default is 0.1 seconds) between steps.
-blunderAhead specifies that the program should blunder ahead with all the
puts it can do, even if some PVs don't connect.
Program by Michael Borland, ANL/APS (EPICS 3.14.11, May 12 2012)
From: "Gerrit Kühn" <[email protected]>
To: [email protected]
Sent: Tuesday, July 3, 2012 8:13:50 AM
Subject: multi caput/get
Hi all,
I could use some program to get and set multiple PVs from the commandline.
I found several references on the web to tools called caput1, caget1 and
similar, that should do exactly what I need. However, they appear not to
be included with my epics distribution (anymore?). Where can I get them,
or is there a recommended alternative?
cu
Gerrit