Table of Contents
cwrite2 - write a single command to an AccelNET device driver
cwrite2
<long args> <C> <N> <A> <F> <data>
Write a command to an AccelNET device
driver. The command can be any valid read or write command.
Long
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.
- --dev <dev>
The device pathname. If this argument is not supplied the default is "/dev/camac".
If present the CWRITE_DEVICE environment variable is used.
- --info
Retrieve the driver capability information and exit.
- --loop
The command is executed in a loop until the program is exited.
- --quiet
The command is executed quietly.
- --verbose
Print option values and a sign on message to stderr.
- --help
If this is used, the help message is printed to stderr and the program
exits.
- C - required
The CAMAC crate number if writing to a CAMAC driver.
The board number for many other drivers.
- N - required
The CAMAC slot number within the crate (if writing to a CAMAC driver). The
N value for most other drivers.
- A - required
The CAMAC subaddress (if writing to a CAMAC driver). The A value for most
other drivers.
- F - required
The function code.
The function code may be specified as a number or a
string value. The string values for the function code may be retrieved by
using the --info option.
- data - optional
The write function codes are commands requiring data. This value is the
data used for the command.
CWRITE_DEVICE may be used
to override opening /dev/camac. For example:
export CWRITE_DEVICE=/dev/group3
cwrite2 1 1 0 0
This example reads from a Kinetic Systems 3471 located in crate
1 slot 4.
cwrite2 1 4 0 0
This example writes an alternating bit pattern
to a Kinetic Systems 3074 located in crate 2 slot 5.
cwrite2 2 5 0 16 0x555555
This program supercedes cwrite(8)
. cwrite is still available in order
to prevent breakage of existing shell scripts and TCL programs but new
software should use cwrite2.
$Id: cwrite2.8,v 1.1 2008/08/05
15:25:26 kitchen Exp $
Table of Contents