next up previous contents
Next: Overview of command options Up: Set-up databases in cave B Previous: The DATABASE-menu

The CAVE-menu

   I/O with front end for set-up control.  


 * CAVE/CNAF branch crate number addr func [ data ]

   branch     I 'branch #'
   crate      I 'crate #'
   number     I 'slot #'
   addr       I 'subaddress'
   func       I 'function'
   data       C 'data word' D='0'

   Generic command with crate/number/address/function.  

      The default format of the data word is decimal. You can
      select other formats by a letter at the beginning:
      cdata = Znnnn : hex
      cdata = Hnnnn : hex
      cdata = Onnnn : octal



 * CAVE/LMU [ lunprnt ]

   lunprnt    I 'logical unit for print-out' D=0

   Read contents of logical matrix LMU2365.  

      Loop over all LMU2365-modules found in table ELECLOC,
      reconstruct matrices of coincidences and anti-
      coincidences and print them on the screen. If the
      optional parameter 'lun_print' is greater than zero,
      the matrices are also printed to the disk file
      connected to 'lun_print'.
      NOTE: This routine assumes that the LMUs contain only
      coincidences and anti-coincidences, i.e. they contain
      only logical ANDs and no ORs.

   /CAVE/MODULE

   Module-oriented operations 


 * CAVE/MODULE/RESTORE ParNam mod_id

   ParNam     C 'name of setup parameter'
   mod_id     C 'ID of module'

   Restore setup parameter(s) from ZEBRA-banks in front end.  

      'ParNam' specifies a single setup parameter (like THR_CF)
      or a group of setup parameters (like THR = THR_CF + THR_LE).
      MOD_ID specifies an electronics module.



 * CAVE/MODULE/GET ParNam mod_id [ chopt ]

   ParNam     C 'name of setup parameter'
   mod_id     C 'ID of module'
   chopt      C 'store values in memory' D=' '

   Get setup parameters from front end, write them to TTY.  

      Option:  M The values are stored in the ZEBRA-banks
                 in memory



 * CAVE/MODULE/SET ParNam mod_id

   ParNam     C 'name of setup parameter'
   mod_id     C 'ID of module'

   Prompt for value(s) from TTY, write them to front end.  

      If that is successful, update ZEBRA-banks
      The user is prompted until he/she hits <CR>

 * CAVE/MODULE/HVON mfrtyp mfrnum

   mfrtyp     I 'type of LeCroy main frame (1440/4032)'
   mfrnum     I 'number of LeCroy main frame          ' D=1 R=1:16

   Turn HV main frame on software-wise.  

      This command enables the high voltages, i.e. the values
      stored in the internal buffer of the main frame are
      actually applied.



 * CAVE/MODULE/HVOFF mfrtyp mfrnum

   mfrtyp     I 'type of LeCroy main frame (1440/4032)'
   mfrnum     I 'number of LeCroy main frame          ' D=1 R=1:16

   Turn HV main frame off software-wise.  

      This command disables the high voltages without affecting
      the values in the internal buffer of the main frame, i.e.
      the voltages go to zero, but may immediately be recovered
      by switching the main frame on again using the 'hvon'-
      command.



 * CAVE/MODULE/HVSTAT mfrtyp mfrnum

   mfrtyp     I 'type of LeCroy main frame (1440/4032)'
   mfrnum     I 'number of LeCroy main frame          ' D=1 R=1:16

   Get status information on HV main frame.  


 * CAVE/MODULE/HVINIT mfrtyp mfrnum

   mfrtyp     I 'type of LeCroy main frame (1440/4032)'
   mfrnum     I 'number of LeCroy main frame          ' D=1 R=1:16

   Initialize main frame.  

      This command resets all demand HVs in the internal
      buffer of the specified main frame to zero. You may
      want to use this command in a situation where the
      content of the main frame's internal buffer is ill
      defined, e.g. after a power failure: 'hvinit' makes sure
      that no damage occurs due to application of voltages
      too high for the device connected.



   /CAVE/DETECTOR

   Detector-oriented operations.  


 * CAVE/DETECTOR/RESTORE ParNam detspc detnam

   ParNam     C 'name of  setup parameter'
   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '

   Restore setup parameter(s) from ZEBRA-banks in front end.  

      'ParNam' specifies a single setup parameter (like THR_CF)
      or a group of setup parameters (like THR = THR_CF +
      THR_LE).
      'DetSpc' & 'DetNam' specify either a single signal
      (like SIG_PLA FPLA1231, SIG_ZER FZER098) or a group
      of signals (like SECTOR 1, RING_ZER 5).



 * CAVE/DETECTOR/GET ParNam detspc detnam [ chopt ]

   ParNam     C 'name of setup parameter'
   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '
   chopt      C 'store values in memory' D=' '

   Possible chopt values are:

    M  

   Get setup parameter(s) from front end, write them to TTY.  

      'ParNam' specifies a single setup parameter (like THR_CF)
      or a group of setup parameters (like THR = THR_CF +
      THR_LE).
      DetSpc & 'DetNam' specify either a single signal
      (like SIG_PLA FPLA1231, SIG_ZER FZER098) or a group
      of signals (like SECTOR 1, RING_ZER 5).
      Option:  M  The values are stored in the ZEBRA-banks
                  in memory.

 * CAVE/DETECTOR/SET ParNam detspc detnam [ chopt vecnam ]

   ParNam     C 'name of setup parameter'
   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '
   chopt      C 'option for common value' D=' '
   vecnam     C 'name of vector with values' D='TTY'

   Prompt for new values from TTY, write them to front end.  

      If that is successful, the ZEBRA-banks in memory
      are updated.
      If DETSPC & DETNAM specify more than one signal, but the
      common-option is 'C', the user is prompted for one value
      only which is then used for the entire group of detectors.



 * CAVE/DETECTOR/INCREMENT ParNam detspc detnam chopt [ vecnam ]

   ParNam     C 'name of setup parameter'
   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '
   chopt      C 'common, absolute/percent'
   vecnam     C 'name of vector with values' D='TTY'

   Possible chopt values are:

    C    
    A/P  

   Increment setup parameter.  

      Decrements are taken care of by a minus sign.
      Absolute changes are indicated by 'option'='a',
      relative changes are indicated by 'option'='p'.
      The additional letter 'c' indicates that the change is
      common to all detectors specified by DETSPC & DETNAM.
      Options:  C  If DETSPC & DETNAM specify more than one
                   signal, the user is prompted for one common
                   value only which is then used for the entire
                   group of detectors.
               A/P Increment is absolute or by percentage.
                   Either of these two must be present. In case
                   of P, from the input value a factor is
                   calculated (fact = (100+input)/100), and the
                   current value is multiplied by that factor.



 * CAVE/DETECTOR/HVZERO detspc detnam

   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '

   Set demand HV to zero in front end, but not in memory.  

      Thus the old values are available for a 'hvrestore'-command.



 * CAVE/DETECTOR/HVRESTORE detspc detnam [ chopt ]

   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '
   chopt      C 'option' D='N'

   Restore demand HVs to values in ZEBRA-banks.  

      The current values in memory are written to the
      front end without prompting the user. Demand and
      measured HVs are compared, and the user is notified
      when the discrepancy is more than 10 %.
      This command automatically generates the vector
      'errhvres' which contains an error code after execution
      of the command: 0 = everything fine
                      1 = error in setup database
                      2 = hardware error (e.g. RPC timeout)
      Options: V Verbose output of demand HVs and channel
                 numbers to the terminal (diagnostic)
               F Fast action, i.e. the reading of measured
                 HVs is suppressed.



 * CAVE/DETECTOR/HVGET detspc detnam [ chopt ]

   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '
   chopt      C 'store values in memory' D=' '

   Get demand and measured voltages from front end.  

      If the hardware action is successful, demand and
      measured HVs are compared, and the user is notified
      when the discrepancy is more than 10 %.
      Option: M  The values are stored in the ZEBRA-banks
                 in memory

 * CAVE/DETECTOR/HVSET detspc detnam [ chopt vecnam ]

   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '
   chopt      C 'option' D=' '
   vecnam     C 'name of vector with values' D='TTY'

   Prompt for new values for HVs, write them to front end.  

      The new values are either prompted from the terminal
      ('vecnam' = 'TTY'), or they are read from vector
      'vecnam' which must exist before you invoke the command.
      When the write-operation to the front end is successful,
      the ZEBRA-banks in memory are updated. Demand and
      measured HVs are compared, and the user is notified when
      the discrepancy is more than 10 %.
      Options: V Verbose output of demand HVs and channel
                 numbers to the terminal (diagnostic)
               F Fast action, i.e. the reading of measured
                 HVs is suppressed.
               C If DETSPC & DETNAM specify more than one
                 signal, the user is prompted for one common
                 value only which is then used for the entire
                 group of detectors.


 * CAVE/DETECTOR/HVINCREMENT detspc detnam chopt [ vecnam ]

   detspc     C 'single signal/group'
   detnam     C 'ID of signal/group '
   chopt      C 'option' D=' '
   vecnam     C 'name of vector with values' D='TTY'

   Increment high voltages by absolute amount or percentage.  

      Decrements are taken care of by a minus sign.
      Demand and measured HVs are compared, and the user is
      notified when the discrepancy is more than 10 %.
      Options: V  Verbose output of demand HVs and channel
                  numbers to the terminal (diagnostic)
               F  Fast action, i.e. the reading of measured
                  HVs is suppressed.
               C  If DETSPC & DETNAM specify more than one
                  signal, the user is prompted for one common
                  value only which is then used for the entire
                  group of detectors.
              A/P increment is absolute or by percentage.
                  Either of these two must be present. In case
                  of P, from the input value a factor is
                  calculated (fact = (100+input)/100), and the
                  current value is multiplied by that factor.



 * CAVE/DETECTOR/SCOPE sigspc signam

   sigspc     C 'specification of one single signal'
   signam     C 'actual name of that signal'

   Switch CFD multiplexers to specified signal.  

      If present, a daisy chain of RM2400 or RM4800
      multiplexers is also switched.



Back to GSI Home Page Back to FOPI Home Page Index

fopi
Fri Oct 25 16:39:46 CST 1996