CBDCamacCrate

Name

CBDCamacCrate -- group CBD8210 compatible modules into a crate

Synopsis

CBDCamacCrate create name base

CBDCamacCrate config name option value ...

CBDCamacCrate cget name

DESCRIPTION

The CBDCamacCrate command defines a container type driver that holds a registry of modules. It is designed to work on a CAMAC branch rooted in a VME crate by a CES CBD8210 device. If this is not the case, use of this driver will fail. In addition, the modules that are registered to this crate must also be capable of working with a CBD8210 device. This module cannot operate on its own and must be registered to a valid CBDCamacBranch.

At the start of every run, the initialization procedures will be called for all of the registered modules in the order the modules were listed.

At the end of every run, the end of run procedures will be called for all of the registered module in the order the modules were listed.

During stack execution initiated by an event trigger, the event-wise procedures of each of the registered modules will be executed in the order that they were listed.

OPTIONS

-crate value

Specifies the crate index. Default is 0.

-modules list

Specify a proper tcl list of modules to be registered with this crate. these must all be compatible with the CBD8210 branch driver. The order in which modules are listed will be the order in which each module is serviced. A single module can be registered to multiple CBDCamacCrates. Default is an empty list.

EXAMPLES

Example 1. Sample setup of a single LeCroy 2551


CBDLeCroy2551 create sclr -slot 10

# Create a crate to stick it in
CBDCamacCrate create crate0 -crate 1
CBDCamacCrate config crate0 -modules [list sclr]

# Create a branch to register the crate in
CBDCamacBranch create branch0 -branch 0
CBDCamacBranch config branch0 -crates [list crate0]
         

Defines a camac crate with a single LeCroy2551 to operate on with a CBD8210 branch driver. This crate is labeled with index 1 on the branch and the branch is labeled with index 0.