Table of Contents

Name

DSmngr - double slit manager

Synopsis

DSmngr <argument list>

Description

This program manages NEC double slits and other devices using a similiar control scheme.

Arguments

Arguments are processed using Unix long argument syntax.
--mngr <fn>

The CONFLIST file from which to obtain the configuration information.

If this is not specified it defaults to "MNGRconf" in the current working directory (i.e. the directory where the program was started).

--mngr_pn <fn>

The program name to use when parsing the CONFLIST file.

If this argument is not specified it generally defaults to the program name.

--show_tbl

If this argument is present the contents of the CONFLIST table is printed to stderr
--diag

If this argument is present stdout and stdin are left open and the program may be killed by SIGINT.
--verbose=<n>

Normally the program does it’s work silently. This sets the level of logging information. The number is optional but if provided it must include the "=". If no argument is provided the default level is 1.
0 - work silently
1 - print signon msg, option settings

Configuration name usage

The configuration file uses the libmngr(3mngr) facility to connect internal parameters to the AccelNET database. The mappings for this program are given below.

Parameters needed by this program can be combined with parameters belonging to other programs. The "program name" field in the configuration file differentiates the entries.

DSmngr uses "DSmngr" as the program name when searching the file.

One Group is assigned for each device to be managed. The maximum number of groups which can be managed is 15.

Displacement controls

These parameters are the analog position control for the slit controller. It should be owned by DSmngr and the permissions set for indirect update.

When a new position command is issued DSmngr intercepts the command checks the power status control (ctl5) and if the power is on the new position is written to the database. Next the enable status control (ctl1,2,3,4) is asserted momentarily to start the slit drive moving.

comm1

-XDC - the displacement control for the -X axis
comm2

+XDC - the displacement control for the +X axis
comm3

-YDC - the displacement control for the -Y axis
comm4

+YDC - the displacement control for the +Y axis

Displacement reads

These parameters are the analog position read for the slit controller. When the controller power is turned on (ctl5) this value is read and the corresponding analog position control (comm1, comm2, comm3. comm4) is set to the same value.
read1

-XDR - the displacement read for the -X axis
read2

+XDR - the displacement read for the +X axis
read3

-YDR - the displacement read for the -Y axis
read4

+YDR - the displacement read for the +Y axis

Enable status controls

These parameters are used to start the slit drive moving. Usually it has control type Mom and should be owned by (or at least writable by) DSmngr. When a position update is received (comm1, comm2, comm3, comm4) the control is asserted for one second. The rest value is 0.0 and the asserted value is 1.0.
ctl1

-XenaSC - the enable status control for the -X axis
ctl2

+XenaSC - the enable status control for the +X axis
ctl3

-YenaSC - the enable status control for the -Y axis
ctl4

+YenaSC - the enable status control for the +Y axis

Power Status control

ctl5

PwrSC - the power status control This control can be owned by DSmngr and set for indirect update.

However, this isn’t necessary, it can be owned by another task. If it is "indirect" the program will manage it as necessary. If it is "direct" the program only read the value, it doesn’t require write permission.

The expected values are 0.0 for off, and 1.0 for on.

If there is no power status control for the device then this parameter should be entered into the configuration file with Label and RefName set to NULL.

If this entry is missing DSmngr will complain about about not being able to start a move because the power is off.

If the parameter is "indirect" the program will emit a advice message saying that this isn’t necessary.

Notes

If it ever becomes a problem the expected values for the enable status controls etc. will be changed so they come from the config file.

See Also

libmngr(3mngr)

Manual page revision

$Id: DSmngr.8,v 1.14 2008/10/23 14:58:23 kitchen Exp $


Table of Contents