man8/MBSdaTask

Table of Contents

Name

MBSdaTask - NEC Sequenced D/A converter service

Synopsis

MBSdaTask <argument list>

Description

I/O service for NEC Sequenced D/A converter CAMAC modules and NEC Sequenced D/A converter kbuss modules.

These modules are part of the Magnet Bias Sequencer system and are used to provide signals for driving power supplies in an AMS system.

Arguments

Argument processing is done using Unix long argument syntax.

The values of all of 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 supplied the default is localhost.

--dev_camac <path>

The pathname to the device to open when --drv specifies a CAMAC device.

The default is: /dev/camac

--dev_kbuss <path>

The pathname to the device to open when --drv specifies a KBUSS device.

The default is: /dev/kbuss

--drv <name>

The driver key.
--cmin

The minimum crate number in CAMAC.
The minimum board number in KBUSS.

If this is not supplied it defaults to 0.

--cmax

The maximum crate number in CAMAC.
The maximum board number in KBUSS.

If this is not supplied it defaults to 99.

--show_tbl

If this is supplied then the DATA table is printed to stderr.
--help

Print the internal help information and exit.

Driver Keys used by this program

These keys are used with CAMAC:

CAMAC
CAMAC_2
CAMAC_3
CAMAC_4

CAMAC_5

In this case the program opens /dev/camac by default.

These keys are used with KBUSS:

KBUSS_1
KBUSS_2
KBUSS_3
KBUSS_4
KBUSS_5

KBUSS_6

In this case the program opens /dev/kbuss by default.

Device Types used by this program

When using CAMAC C is the crate number, and N is the slot number.

When using KBUSS C is the board number, and N is not used and may be set to any value to facilitate sorting the database reports if desired.

DevNECda
There should be 7 DATA records of this type created for each D/A module in the system.

The ChNo fields should be 0 - 7. Each ChNo has a specific use. See "ChNo usage" below.

ChNo usage

ChNo=0

The control register.

Bit 0 is the norm/maint mode selection bit.

Bits 2-1 are used the select which value register is applied to the D/A output when in maint mode.

ChNo=1

D/A value register 0.
ChNo=2

D/A value register 1
ChNo=3

D/A value register 2
ChNo=4

D/A value register 3
ChNo=5

State selection register 0.
ChNo=6

State selection register 1.

I/O polling rates

There is nothing to poll.

Examples

#
# this example services crates 1 thru 4
# dbman is running on the same host
#
MBSdaTask --dbman_host localhost --drv CAMAC --cmin 1 --cmax 4
#
#
#
# this example services KBUSS modules
# dbman is running on the same host
# (the min and max board numbers aren’t specified)
#
MBSdaTask --dbman_host localhost --drv KBUSS_1

Notes

When using KBUSS the S2 line must be enabled when the driver is installed or by using the kbuss_ctl(8) utility program.

Yes, we need more info in this manual page..

See Also

kbuss(4)
kbuss_ctl(8)
nec_da(6)

Manual page revision

$Id: MBSdaTask.8,v 1.6 2007/07/19 15:35:30 kitchen Exp $


Table of Contents