package require crdcxlm72
ACrdcXLM72 dev-name
dev-name configure option value ?...?
dev-name cget option
addtcldriver create dev-stacknaame -ensemble dev-name
This is a IncrTcl driver intended to readout out the S800 and Sweeper magnet CRDC detectors via an XLM72 with appropriate firmware. I believe the original code was written by Daniel Bazin with a later port to the VMUSBReadout by Jeromy Tompkins.
Note that since this is a translator, at every start of data taking, the FPGA will be loaded. At some point in the future, we will arrange for the FGPA to be externally loaded via a utility like exists for the VMUSB.
Like the compiled drivers, ACrdcXLM72 objects have options to configure them. Once the object is created it has a configure subcommand that allows you to set option values. It also has a cget option which allows you to query the value of individual options. See SYNOPSIS above for more.
Options are:
-base vme-addressXLM Module VME base address.
-filename path-to-firmwareSpecifies the file that contains the CRDC FPGA firmware. This file will be loaded at initialization time.
-samples no-samples-per-padProvides the number of samples per pad that should be read. The samples on each pad allow for the determination of the particle's Y position through the detector.
-period valueSets the period.
-delay delaySets the delayparameter
-width widthSets the width parameter.
-shift shiftSets the shift parameter.
-thresholds list-of-thresholdsList of 256 threshold register values. Note that if the list is shorter than 256, the threshold values not given are set to the meximum values.