Instructions to modify epics database tables to account for newly installed/modified boards: updated 2002-5-1 SG updated 2003-4-10 SG Unless spare slots are made active, there is nothing to do here !! =============================================================== - Ask CFT shifter to enable all new AFE boards in GUI, including setting of proper SEQ hdi_mask, power_bit and VRB chan_enable bit sequence: 0/1 0/2 for VRB: top = low byte 0/4 0/8 bot = high byte e.g.:0x14 = x 0 0 0 0 0 x 0 - Get list of positions (AFE-crate/slot) for newly installed/modified boards from the AFE installation spreadsheet on the web http://d0server1.fnal.gov/projects/scifi/database/dbapplet/cryoslot.html . - Depending on the AFE crate location the epics data base on PPC d0olctl55 and/or d0olctl58 needs to be updated. crates 0x1 to 0x7: d0olctl55 crates 0x8 to 0xd: d0olctl58 - cd /online/ioc/ppc/mv2304/d0olctlXX (XX=55 or 58) - edit d0olctlXX.dbg - The AFE records are defined after SEQ and SEQC records, first boards with firmware <=3 (current template: afe_as.dbt), then the new ones with firmware >=4 (afe_vsn7.dbt). All boards are now version 5. ================================= - Copy the corresponding line from old to new area (ordered by sub-detector and crate number) and comment the line in the old area (do not remove). - After all modifications, generate the data-base files, type: setup onl_ioc gmake install - Warn CFT shifter and, if convenient, also check with Silicon shifter (tell them to ignore the Sequencer power supply monitoring for a moment). - Reboot d0olctlXX from terminal server connection and check for boot success (no error messages). terminal server: t-d0-mch3 account: ioc password: ???????? for d0olctl55: connect 10 for d0olctl58: connect 42 reboot with Ctrl-X, if it hangs, press reset button of PPC ctrl_] to exit - Ask CFT shifter to restart the cft_gui and double-check that all installed boards are enabled. - Recreate configuration files for COMICS (pickle files and tree-structure) and channel archiver: - run ~d0cft/commiss/comics/db2pickle/CreateCftPickle.py (on d0ol24 or wherever) - run /cft2/archive/prepare_config.py on d0ol08 (both as a member of D0cft group (e.g. d0cft group account), if new files need to be created (done automatically) in /online/comics/cft you need to be member in d0run as well)(account stefan has been added to d0run [or vice versa]) Note: 1.For right setups in d0cft account run ~/bin/commiss/bash or similar.[not really] 2.Usually it seems to work ok when run from the d0cft account, but sometimes it doesn't.... (reason: see above). - Ask the CFT shifter to - turn off the bias everywhere, start set2normal and wait until temperature settles. Set2normal is not needed for verison 5 boards ! ===================================================== - Switch on bias again. - Channel Archiver [on D0ol37] 2003-4-10: the archiver now lives on d0ol37 in /archive/cft The start and stop scripts have pretty obvious names. ================================================================== 2002-5-1: fast archiver no longer used (but still kept around). - stop channel archivers on d0ol08, 'source /cft2/archive/stop_cft_archiver' 'source /cft2/fastarchive/stop_cft_archiver' signs that the channel archiver is running: a) presence of file 'archive_active.lck' in /cft2/archive/data and /cft2/fastarchive/data (unless d0ol08 crashed or was stopped without running the shutdown procedure, in which case this file needs to be deleted manually) b) 2 processes without terminal (listed with 'ps -x'), as shown in this sample output (three processes per archiver appear, but that's Unix bookkeeping): 14192 ? S 0:00 /d0usr/products/chan_archiver/v1_9_1/Linux/bin/ArchiveEngine /home/d0cft/commiss/chan_archiver/archive/co 14193 ? S 0:00 /d0usr/products/chan_archiver/v1_9_1/Linux/bin/ArchiveEngine /home/d0cft/commiss/chan_archiver/archive/co 14194 ? S 0:00 /d0usr/products/chan_archiver/v1_9_1/Linux/bin/ArchiveEngine /home/d0cft/commiss/chan_archiver/archive/co It can take several minutes until the lock file and the last two of the processes disappear! - after the lock file etc. are gone: start channel archiver 'source /cft2/archive/start_cft_archiver' 'source /cft2/fastarchive/start_cft_archiver' on d0ol08! Check that all 'six' processes are there. - channel archiver logs large amout of data in /cft2/archive/data on d0ol08 and /cft2/fastarchive/data on d0ol08 Clean up at least every month (e.g. by moving files to d0mino project disks.) - plotting from the archive: Use Xarr.py dir. ===================================== 'tcplot' (defined by .login for d0cft) 'tcplot ' to include the last archives (useful immediately after a restart) for the fast archive, no shorthand is defined; look at the file tcar_plot on d0ol08 in /cft2/archive, and, in /cft2/fastarchive/data, enter the necessary commands by hand ('setup chan_archiver', 'Xarr.py &') or, use striptool: setup d0online StripTool & a few configuration files are stored in d0cft/commiss/chan_archiver/xxx_strip.setup