NOTE: the control of lov voltage cards is done from a seperate control laptop, which is configured with the ipnumber: 192.168.4.12 The network connection is not stable right after startup, one might need to configure the network manually on it. directory of code on the laptop is in: smalltpc/lvcard2 the scripts on the DAQ laptop writes status of the lvcards/mcms in csvfiles in the directory on the control laptop: smalltpc/lvcard2/csv The DAQ laptop is using ssh to issue the lvcard2 commands to the control laptop. On DAQ laptop: The scripts to run are in the directory: cd ilc/ilcdaq/smalltpc These instructions describes the use of lvcard2 and ssh to the control laptop. Init system ------------ ./smalltpc-init-lvcard2-ssh.sh and follow instructions. It will ask you to continue or exit after each command in the initialization. You should be used to see if there is any error after each command. NOTE: there are two configuration files for the SRU: srupup-0-hw.cfg - hardware trigger srupup-0-sw.cfg - software trigger there is a link: srupup-0.cfg is pointing to the file to use. Take a run ---------- ./smalltpc-test-lvcard2-ssh.sh <"fecs"> Example: fecs= "0 1", gain=0 shaper=0 samples=1008 channels=0(all) events=500 runnb=1 ./smalltpc-test-lvcard2-ssh.sh "0 1" 0 0 1008 0 500 1 wait for Set trigger... clear counter in the NIM crate. then enable the trigger (4th button on coincidense unit should be out) when run finshed disbale trigger (4th button on coincidense unit should in) for each run increment runnumber by one make new tab ------------ see output from readout tail -f srureadout.out Monitor ------- new window with ilc/ilcdaq/smalltpc ./plotevents.sh output in same directory: plotevent.pdf Monitor temperature and currents -------------------------------- ./smalltpc-poll-ssh.sh this will write in csvfiles on the control laptop csvfiles names -poll.csv It will on the screen print temperatures of MCMs and LVCARDs and currents as measured by the ADCs on the LVCARD. MCMTEMP M01: T-30.440 E-00000000 M02: T-29.690 E-00000000 Number of errors 0 LVTEMP M01: T-35 E-00000000 M02: T-35 E-00000000 Number of errors 0 ADC M01: C1V5-3161 C2V5-66 V1V5-1554 V2V5-2527 MCM1V5-1504 MCM2V5-2533 E-00000000 M02: C1V5-3102 C2V5-66 V1V5-1576 V2V5-2540 MCM1V5-1528 MCM2V5-2517 E-00000000 Number of errors 0 Data directory -------------- new window cd ~/wdir/ilcdaq/data/smalltpc/ mkdir after each run: cp chamber-fec01-debug-clk0-ped0-thr0-g0-s0-p1-1008-.dat /. cp chamber-fec01-debug-clk0-ped0-thr0-g0-s0-p1-1008-.root /. maintain a readme file in with settings. whenever convenient copy content in to external storage. turn off when finished: Stop the poll monitor: with CTRL-C. Shutdown power on the electronics: ./smalltpc-close-ssh.sh Fetch the csvfiles in: smalltpc/lvcard2/csv on the control laptop to the data directory: /home/jum/wdir/ilcdaq/data/smalltpc/ transfer to lunarc ------------------ goto directory on laptop /home/jum/wdir/ilcdaq/data/smalltpc/ login on lunarc and create directory ssh @cosmos.lunarc.lu.se transfer files: sftp @cosmos.lunarc.lu.se cd put *