scriptcalb - a command line script launcher
scriptcalb with tcl scripts can be used instead of compiled C commands
for most of the basic operations, like reseting a CALB, board
testing the FIFOs and so on.
In this page, you can find the syntax of the command and
a short script writing guide.
scriptcalb syntax
The syntax of the command is very simple:
scriptcalb chain_nr crate_nr slot_nr scriptname
The actual script name is:
$CALBTCL/scripts/scriptname.calb.tcl
Script description
A script should contain only two variable definitions:
- calb_user_description
- This variable should contain a detailed description of the script.
- calb_user_command
-
This variable should contain the script commands.
The following variables are defined:
- calb_user_args
- command line parameters
- chain_nr , crate_nr , slot_nr
- chain, crate and slot number
- calbcid
- CALB id
An example:
set calb_user_description {\
This command do:
- enable acquisition
- enable zero supression
}
set calb_user_command {
calb set acqen $calbcid 1
calb set zsen $calbcid 1
}
Created | : | 20.5.1997 |
Last modified | : | 20.5.1997 |