Table of Contents
SRStask - Stanford Research current amplifier I/O service
SRStask
<argument list>
Serial I/O service for a
Stanford Research SR570
current amplifier.
The program expects to find a large number of RefNames
some of which are prefixed with SRS and corresponding to the parameter
names given in the SRS manual. Others are used by SRStask to control the
amplifier and for processing of the voltage output into a current.
- --dbman_host
<hn>
The host where dbman is running. If this argument is not supplied the default
is localhost.
The DBMAN_HOST environment variable is used of present.
This
argument overrides all.
- --local <path>
The pathname of the local device to connect to.
- --remote <host>,<sock>
The host and socket to connect to in remote mode.
- --label <label>
A label from the database.
- --config_tbl <file>
The pathname of a file in which to store configuration information. Presently
the offsets are the only thing stored. See the section SRStask offset processing
RefNames for more information.
If the file does not exist when the program
is started it is created.
Argument processing is done using
Unix long argument syntax. No specefic order of arguments is required. Note
that
local or
remote mode must be specified.
For remote mode the port number
is extracted from /etc/services.
The
RefNames in this group relate directly to functions in the current amplifier.
Please consult the manual for the current amplifier for more information.
Current amplifier input Sensitivity
Sensitivity Calibration
mode
Sensitivity uncalibrated value
Input offset status control
Input offset level
Input offset sign
Input offset
mode
Input offset uncalibrated value
Input Bias status control
Input Bias level
Filter selection
Low Pass filter
frequency
High Pass filter frequency
Filter clear
Gain
Mode
Output Invert
Input Blanking
RefNames
in this section are used by
SRStask to manage the current amplifier.
Autoranging
control. Actuating this parameter begins an autorange sequence.
Autoranging
status read. This parameter indicates the state of autoranging,
active or
nop.
Reset. This causes the computer to resend all values to the amplifier.
These parameter are written to by
SRStask. They contain
the current values of the scaling coefficents needed to convert a voltage
supplied by the current amplifier into a current read. The voltage is assumed
to be scaled from -5 to 5 volts and will be converted to a current by multiplying
by
SRSscale and adding
SRSoffse.
These scaling coefficents may be used by
other programs needing to scale voltage to current. For example TRtask does
this.
Amplifier voltage read. This parameter comes from an ADC elsewhere
in the system which is assumed to be scaled from -5 to 5 volts.
If this parameter
is not present the autorange function will not work and will write a nasty
message into the logging file.
If this parameter is present
SRStask will
process the incoming
VR data into a current read and update the database.
There are two possible ways of providing a current read from an SRS amplifier.
One method uses a VR and CR which are processed by SRStask.
The second method
uses SRSscale and SRSoffse to allow another task to process the voltage
read. This method is used by TRtask to process blocks of AMS data from the
multicups.
RefNames of the form
of_* are
used to provide an offset correction for each input range of the current
amplifier. The name is of the form of_<range_name> where
range_name corresponds
to an input range.
The offset value for each amplifier range is stored in
a configuration file. The values are loaded from the config file into the
AccelNET database when SRStask is started. If an offset value is changed
by operator command the configuration file is updated with the new value.
Valid RefNames are: of_1pA, of_2pA, of_5pA, of_10pA, of_20pA, of_50pA,
of_100pA, of_200pA, of_500pA, of_1nA, of_2nA, of_5nA, of_10nA, of_20nA,
of_50nA, of_100nA, of_200nA, of_500nA, of_1uA, of_2uA, of_5uA, of_10uA,
of_20uA, of_50uA, of_100uA, of_200uA, of_500uA, and of_1mA.
Polling is not done since the current amplifier doesn’t have any data
to read.
The ownership of most of the controls needs to be
GPIBtsk.
This is odd and may be changed in the future.
SRStask --dbman_host
csdev1 --local /dev/com2 --label "SRS 02-1" --config_tbl /AccelNET/nec/data/srs021_config.dat
SRStask --dbman_host csdev1 --remote csdev11,ETSraw1 --label "SRS 02-1" --config_tbl
/AccelNET/nec/data/srs021_config.dat
Note that the label will need to be
quoted for the shell to treat it as a single argument.
Note also that the
example lines are very long and have probably been wrapped by the software
which produced the formatted manual page.
$Id: SRStask.8,v
1.7 2007/07/17 16:30:45 kitchen Exp $
Table of Contents