CAENet is a serial proprietary device control network developed by CAEN to control power supplies and NIM amplifiers. CAENet should not be confused with CANnet which is a completely different device control network.
This chapter describes how to incorporate a pure Tcl package caennet built on top of the the TCL Vme package that provides access to the CAEN VME CAENet controller (V288). For reference information see caenet(3tcl)
Incorporating the package into your Tcl scripts requires that you
Add the NSCLDAQ Tcl package repository to the Tcl directory searc list.
Explicitly load the package.
Optionally import the commands fromt he caennet namespace.
The remainder of this chapter describes how to perform these steps.
You can incorporate the NSCL DAQ Tcl pacakge repository in the Tcl
package search list either by setting an environment variable, or by
adding it to the list of directories in the Tcl global variable
auto_path
.
Suppose you have defined the environment variable
DAQROOT
to point to the top level directory in which
NSCLDAQ has been installed. To add the DAQ Tcl package repository to the
search path via an environment variable with the bash
shell:
The Tcl global variable auto_path
specifies a list of
directories that are also searched for packages. The same effect can be
gotten via:
Once the path to the NSCLDAQ Tcl library directory has been established, you must load the package. This is done via the package require command:
All of the caennet commands are located in the caennet namespace. You can use these commands directly e.g.:
You can also import these commands so that you con't have to qualify them with the caennet:: prefix: