next up previous contents 5
Next: Maintaining the database.dat file Up: Installation Previous: Starting and Stopping DHS   Contents

Installing the detector simulator

The Q4 CCD detector portion of the DHS can be used with a det_emulator program which can be obtained separately from Area Detector Systems Corporation. The det_emulator program simulates a Q4 (or actually a Q1) detector, allowing a simulated beam line to collect 'data'.

The det_emulator generates artificial images and sends the images over socket connections following the same protocol as a the det_api program. The detector DHS is responsible for writing the images to disk.

  1. First install and configure a DHS as described in Installing DHS .

  2. Copy the correction files from somewhere for the simulated CCD (step not shown).

    blctlxx:~/release-3_2/dhs/linux > ls -alrt POSTNUF CALFIL NONUNF
    -rwxr-----    1 blctl    postgres   334520 May 23 10:53 POSTNUF
    -rwxr-----    1 blctl    postgres 25812118 May 23 10:53 CALFIL
    -rwxr-----    1 blctl    postgres 10617344 May 23 10:53 NONUNF
    

  3. Copy the CCD emulator and environment file.

    smbdcsdev:/usr/local/dcs/det_emulator >	scp blcpu2:~/release-3_2/dhs/det_emulator .
    det_emulator         100% |*****************************| 81920       00:00    
    
    smbdcsdev:~/release-3_2/det_emulator >	scp blcpu2:~/release-3_2/dhs/CCD_API.ENV .
    CCD_API.ENV          100% |*****************************|   198       00:00    
    smbdcsdev:~/release-3_2/det_emulator >
    

  4. Start the CCD emulator

    smbdcsdev:~/release-3_2/det_emulator >	det_emulator 
    ---------------------------------
           CCD Detector Control V1.1
           Copyright ADSC 1997
    ---------------------------------
    local column offset set to 35 for detector 0
    local column offset set to 69 for detector 1
    local column offset set to 20 for detector 2
    local column offset set to 17 for detector 3
    ccddet_init: CCD size is: 1242 (rows) x 1152 (cols)
    ccddet_init   : at Dec 19 15:03:51: initialized system for controller: 0
    ccddet_init   : at Dec 19 15:03:51: system properly initialized.
    

  5. Start up the detector dhs.

    	blctlxx:~/release-3_2/dhs/linux > ./dhs detector
    



Scott McPhillips 2003-03-11