man8/IGORtask_v2

Table of Contents

Name

IGORtask_v2 - CAMAC IGOR module service

Synopsis

IGORtask_v2 <argument list>

Description

IGOR module I/O service for CAMAC.

The program supports Kinetic Systems KSC3063 and perhaps similiar modules supplied by other manufacturers. This type of module is commonly used to operate bending magnet power supplies.

The program registers with dbman as IGORtask_v2.

Arguments

Argument processing is done using Unix long argument syntax.

The values of all the parameters listed here (whether or not they were supplied on the command line) are printed on stderr when the program starts.

--dbman_host <hn>

The host where dbman is running. If this argument is not specified the default is "localhost"
--dbman_name <rn>

Set the name used by the program to register with dbman.
--dev <path>

The pathname of the device to open. if this is not supplied the default is "/dev/camac".
--drv <drv>

The driver key. If this argument is not supplied the default is "CAMAC".
--cmin <C>

The minimum crate number. If this argument is not supplied the default is "1".
--cmax <C>

The maximum crate number. If this argument is not supplied the default is "99".
--log_flag <logging>

If this argument has the value bad I/O transactions with bad status will be logged each time the status changes.

If this argument has the value all I/O transactions are logged each time the value OR the status changes.

--diag

Don’t close stdin and stdout and allow SIGINT to kill the program.
--show_tbl

Print the contents of various tables to stderr.
--verbose=<level>

Print more information. If <level> is missing it defaults to 1.

--persist

Run the program in persist mode.

--tagname_ctl

parameter name to use for task control.

--tagname_status

parameter name to use for reporting task status.

--help

Print the help information to stderr.

DevKeys

IGORtask_v2 expects DATA records with these DevKeys.
Dev3063cc

Current control.
Dev3063sc
The data value of the Status control word is mapped in the following way. This generates a CAMAC transaction each time the value changes. The CAMAC transaction function code is F25.

0x01: A0
0x02: A1
0x04: A2
0x08: A3
other values do nothing.

Note that a value of 0x0 is not mapped to a transaction. Usually the database parameter is a momentary where 0 is the nop state.

Dev3063sr
Status read word. The meaning of the bits depends on the connected device.

I/O polling rates

Polling is normally performed at 1Hz. Fast polling is not supported.

Examples

#
# this example services crates 1 thru 4
# dbman is running on the same host
#
IGORtask_v2 --dbman_host localhost --cmin 1 --cmax 4

# the previous example could also simply be writen as
# the following due to the default values.
IGORtask_v2 --cmax 4

Notes

In at least one type of bending magnet power supply (Tokin) the Dev3063sc subaddresses are mapped in the following way:

0x01: A0 - DC power off
0x02: A1 - DC power on
0x04: A2 - reverse polarity
0x08: A3 - not used

This may not be true of other power supplies.

Manual page revision

$Id: IGORtask_v2.8,v 1.1 2009/03/26 16:29:25 mcnamer Exp $


Table of Contents