Table of Contents

Name

cwrite - write any single command to CAMAC

Synopsis

cwrite [crate] [slot] [subaddress] [function code] [data] [loop] [quiet]

Description

Write a command to CAMAC. The command can be any valid read or write command.

Arguments

crate - required

The CAMAC crate number.
slot - required

The CAMAC slot number within the crate.
subaddress - required

The CAMAC subaddress.
function code - required

The CAMAC function code.
data - optional

The function codes between 16 and 23 are write commands requiring data. This value is the data used for the command.
loop - optional
If this keyword is present the CAMAC command will be repeated indefinitely.
quiet - optional
If this keyword is present error msgs and other text output will be suppressed.

Environment Variables

CWRITE_DEVICE may be used to override opening /dev/camac. For example:

export CWRITE_DEVICE=/dev/group3
cwrite 1 1 0 0

Examples

This example reads from a Kinetic Systems 3471 located in crate 1 slot 4.

cwrite 1 4 0 0

This example writes an alternating bit pattern to a Kinetic Systems 3074 located in crate 2 slot 5.

cwrite 2 5 0 16 0x555555

Notes

cwrite is considered deprecated. It is still available in order to prevent breakage of existing shell scripts and TCL programs. cwrite2(8) should be used for new software development.

Manual page revision

$Id: cwrite.8,v 1.3 2008/02/09 16:50:55 kitchen Exp $


Table of Contents