man1/poll_par
Table of Contents
poll_par - poll a parameter at a regular interval
poll_par <argument
list>
This program connects to dbman running on the host specified
by the
dbman_host argument.
It subscribes to the parameter named by the
label and refname arguments.
The value of the parameter is written to stdout
at intervals of one second unless overridden by the time argument.
- --dbman_host
<hn>
The host where dbman is running. If this argument is not specified the default
is localhost or the DBMAN_HOST environment variable.
- --tagname <label>|<refname>
An AccelNET label and refname describing the AccelNET parameter to poll.
This argument is required, and the label and refname are to be seperated
by a pipe. Also, the tag will likely need to be enclosed in double quotes
to ensure it’s handled as one argument.
- --time <time>
The polling time, this argument is optional. The default polling time is
1 sec.
This may be overridden by specifying a value for this argument. A
value of the form 1.5 means to poll every 1.5 secs. The minimum value for
time is 0.1 seconds.
The time value is quantize to 100mS.
- --verbose
Sets the program loquacity. Can optionally be passed a number to change
the amount of statements used. Defaults to 1, passing 2 or higher would
be considered to enable debugging information.
- --help
Prints a brief help message.
This example outputs the value of
the cathode power supply current readback once per second.
poll_par --dbman_host
csdev1 --tagname "CAT S1-1|CR"
This example outputs the value of the cathode
power supply current readback once per minute.
poll_par --dbman_host csdev1
--tagname "CAT S1-1|CR" --time 60
Please note that poll_par actually subscribes
to the parameter and outputs the locally known copy of the value at the
prescribed interval rather than actually polling dbman each time to obtain
the value. This results in better efficency for AccelNET overall.
$Id: poll_par.1,v 1.4 2007/10/04 16:49:43 kitchen Exp $
Table of Contents