#!/bin/bash

## Hi Diane,
## 
## I'll need to know if Kukhee needs any special event codes at 120hz,
## other than event codes 140 to 148.  I'll need to know what bits in the
## pattern his is examining for 120hz and if for testing, he can look at
## specific bits in the pattern that may be different from the normal bits
## he would look at in production.  
## 
## I just set the dev EVG to output event codes 140 to 148 to come out all
## the time so that they reflect 120hz processing.  And I changed the 3
## system EDEFs to come out all the time at 1hz, 10hz, and 120hz.  This
## will last until the dev EVG IOC is rebooted.
## 
## I can set the klystron accelerate event code (151) to 120hz too if
## Kukhee needs this.  Or other event codes.  Unfortunately, not the
## standby event code (until Kukhee changes his RF application to use a
## standby event code that can be controlled separate from other apps).
## 
## I currently have no easy way of changing the pockcel_perm, no_gun_perm,
## and bcsfault bits (the most popular RF-related bits) in the pattern to
## do what you want.  But there are other bits that can be checked that I
## can easily control.
## 
## Note that I've been rebooting the dev EVG a lot for MPS testing and that
## I'm not done.  Everytime I boot the EVG IOC, it'll revert back to
## production settings.  To set the dev EVG to do 120hz processing, run
## this script:
## 
## source ~saa/ca/eventcaput120
## 
## To set the dev EVG back to production settings:
## 
## source ~saa/ca/eventcaputfull 
## 
## I will change these scripts once I know more about what Kukhee needs for
## testing.  I can also change the EVG startup script to do the 120hz
## settings if this is something you'll want most of the time.
## 
## Steph

caput EVNT:SYS0:1:LCLSBEAMCHCK.J 0
caput EVNT:SYS0:1:LCLS_60_CHCK.J 0
caput EVNT:SYS0:1:LCLS_30_CHCK.J 0
caput EVNT:SYS0:1:LCLS_10_CHCK.J 0
caput EVNT:SYS0:1:LCLS_5_CHCK.J 0
caput EVNT:SYS0:1:LCLS_1_CHCK.J 0
caput EVNT:SYS0:1:LCLSHALFCHCK.J 0
caput EVNT:SYS0:1:LCLS_N-1CHCK.J 0
caput EVNT:SYS0:1:LCLS_N-2CHCK.J 0
caput EVNT:SYS0:1:LCLSBEAMCHCK.C 0
caput EVNT:SYS0:1:LCLS_60_CHCK.C 0
caput EVNT:SYS0:1:LCLS_30_CHCK.C 0
caput EVNT:SYS0:1:LCLS_10_CHCK.C 0
caput EVNT:SYS0:1:LCLS_5_CHCK.C 0
caput EVNT:SYS0:1:LCLS_1_CHCK.C 0
caput EVNT:SYS0:1:LCLSHALFCHCK.C 0
caput EVNT:SYS0:1:LCLS_N-1CHCK.C 0
caput EVNT:SYS0:1:LCLS_N-2CHCK.C 0
#
caput EDEF:SYS0:16:INCLUSION1 16777224
caput EDEF:SYS0:16:INCLUSION2 0
caput EDEF:SYS0:17:INCLUSION1 8
caput EDEF:SYS0:17:INCLUSION2 1024
caput EDEF:SYS0:18:INCLUSION2 0
caput EDEF:SYS0:16:BEAMCODE 0
caput EDEF:SYS0:17:BEAMCODE 0
caput EDEF:SYS0:18:BEAMCODE 0
#
caput PATT:SYS0:1:LCLS_BEAM.N 0
caput PATT:SYS0:1:LCLS_BEAM.I 0

