Running DAQ simulator

0/ checkout daq simulator from subversion :

cd $RESDIR/
svn checkout svn://heplx47/opt/pi/svn/pi/trunk/daq/ndir/results/simul
  1. get daq code from heplx43 or from svn server on heplx47, src and ndir directories
  2. run corba ( corba_nsd! )
  3. goto directory :
      cd $RESDIR/simul/ccddouble/
  4. run :
    ./run!
    or
    ccddouble
    and in second session :
    sendreq2 DAQ_START_ANALYSIS -mode=1 -ra_in_h=22.39691457 -dec_in_h=0.64060478
  5. simulator is running , unitl stoped from piman or with kill command, 10 frames are re-used continously
  6. check ouput with :
    tail -f out

2/ single camera mode




  1. get daq code from heplx43 or from svn server on heplx47, src and ndir directories
  2. run corba ( corba_nsd! )
  3. goto directory :
    cd $RESDIR/simul/ccdsingle/DAQ_SERVER
  4. run :
    daqserver -cam_no=1 -ORBInitRef NameService=corbaloc::heplx43.fuw.edu.pl:12456/NameService
    NOTE : heplx43.fuw.edu.pl should be replaced with name of machine on which you are running
  5. goto directory :
    cd $RESDIR/simul/ccdsingle/
  6. run :
    ./run!
    or :
    ccdsingle -cam_idx=0
    and in second session :
    sendreq2 DAQ_START_ANALYSIS -mode=1 -ra_in_h=22.39691457 -dec_in_h=0.64060478
  7. simulator is running , unitl stoped from piman or with kill command, 10 frames are re-used continously
  8. check ouput with :
    tail -f out

3/ Some informations

4/ Simulator details

There are currently two modes of running daq simulator :
By default second method is used, however in order to change to method 1 it is nessesary to remember that old frames have the following values for astromery :
     PIXSCALE=59.5
     CCD_ASAS_ASTROMETRY_FI=180.00
in order to switch to using METHOD 1 this values should be setup in cfg files.
In order to prepare files for simulator run script prepdaq_simul.sh which creates directory for new night in /data2/results/ and retrives satellites tle databases , also file simul.cfg
is included in the begining of ccd.cfg and simul0.cfg and simul1.cfg in the begining of ccd_pipeline0.cfg and ccd_pipeline1.cfg .
By default METHOD 2 is used. In order to change it edit file simul.cfg and set :
    CCD_SIMUL_USE_REAL_FITS_FILES=0
and comment :
    # uncomment lines below only when CCD_SIMUL_USE_REAL_FITS_FILES=1
    # PIXSCALE=59.5
then edit simul0.cfg and simul1.cfg and comment :
    # uncomment lines below only when CCD_SIMUL_USE_REAL_FITS_FILES=1
    # CCD_ASAS_ASTROMETRY_FI=180.00
    # PIXSCALE=59.5
 
and also change value of reverse parameter from 2 to 0 in simul0.cfg and simul1.cfg , set :
    CCD_ASAS_REVERSE_FOR_TRANSFORM=0

More info on daq simulator paramters can be found here.

5/ Simulator on heplx42

Currently heplx42 is prepared in such a way that simulator runs there every night in the same way as on pi2 , everything is done in crontab :

    # prepering night analysis
    20 17 * * * /opt/pi/dev/pisys/daq/ndir/bin/prepdaq_simul.sh >> /opt/pi/dev/pisys/log/prepdaq.log 2>&1
    # script generator specific for SMOK@LCO :
    30 17 * * * /opt/pi/dev/pisys/daq/custom/bin/autogen_cron.sh > /opt/pi/dev/pisys/log/genscript.log 2>&1
    # restarting gcn server :
    0 17 * * * /opt/pi/dev/pisys/daq/ndir/bin/run_gcn_server.sh restart  >> /opt/pi/dev/pisys/log/gcn_restart.log 2>&1
    # auto cleaner - removing older then 9 days :
    0 17 * * * /opt/pi/dev/pisys/daq/ndir/bin/clean_online.sh 10 >> /opt/pi/dev/pisys/log/crontab.trace 2>&1
    # start night analysis :
    0 18 * * * /opt/pi/dev/pisys/run_pisys! check_dome 36000 > /opt/pi/dev/pisys/log/pisys_start.log 2>&1

it may be temporary turned off , but it is very easy to enable it again by editing crontab for user pi.