StartTLU instructions
Pre-requisites
- Installation of PyChips
- Installation of uHAL Python library
Running startTLU_v4
Set up PATH and PYTHONPATH correctly then run "python startTLU_v4.py" . The easiest way of doing this is by using a shell script, e.g. startTLU_v4.sh
Command line options:
-bash-4.1$ ./startTLU_v4.sh --help
Command line arg = --help
PyChips v1.5.0_pre2
Usage: startTLU_v4.py [options]
Options:
-h, --help show this help message and exit
-r ROOTFNAME, --rootFname=ROOTFNAME
Path of output file
-o WRITETIMESTAMPS, --writeTimestamps=WRITETIMESTAMPS
Set True to write timestamps to ROOT file
-p PRINTTIMESTAMPS, --printTimestamps=PRINTTIMESTAMPS
Set True to print timestamps to screen
-s LISTENFORTELESCOPESHUTTER, --listenForTelescopeShutter=LISTENFORTELESCOPESHUTTER
Set True to veto triggers when shutter goes high
-d PULSEDELAY, --pulseDelay=PULSEDELAY
Delay added to input triggers. Four 5-bit numbers
packed into 32-bt word, Units of 6.125ns
-w PULSESTRETCH, --pulseStretch=PULSESTRETCH
Width added to input triggers. Four 5-bit numbers
packed into 32-bt word. Units of 6.125ns
-t TRIGGERPATTERN, --triggerPattern=TRIGGERPATTERN
Pattern match to generate trigger. Two 16-bit words
packed into 32-bit word.
-m DUTMASK, --DUTMask=DUTMASK
Three-bit mask selecting which DUTs are active.
-y IGNOREDUTBUSY, --ignoreDUTBusy=IGNOREDUTBUSY
Three-bit mask selecting which DUTs can veto triggers
by setting BUSY high. Low = can veto, high = ignore
busy.
-i TRIGGERINTERVAL, --triggerInterval=TRIGGERINTERVAL
Interval between internal trigers ( in units of
6.125ns ). Set to zero to turn off internal triggers
-v THRESHOLDVOLTAGE, --thresholdVoltage=THRESHOLDVOLTAGE
Threshold voltage for TLU inputs ( units of volts)
Trigger Pattern
The trigger pattern determines which combination(s) of the four inputs will cause a trigger to be issued.
Commands
When startTLU_v4.py is running it responds to three commands:
- c : turns on triggers and commences looping round reading out number of triggers ( and optionally writing to a ROOT file )
- f: finishes triggers ( sets a flag to veto triggers)
- t: terminates programme ( closes ROOT file and exits )
TORCH Oct 2015 Beam test
Log on to pclhcb50.cern.ch with username loptical , startTLU_v4.sh should be in the path