#!/bin/bash
# 2010 10 15 
# Use this script to start PDU trigger configuration tool to set up triggers
# in Sector 20 (testing in development)
#
# This script will eventually not be needed if PDU is built into lclshome.
#
# PDU_JAVA_APP_DIR is used by edm execute script widget as
# an input file to the java app "globalRuleChooser"
#
# PDU_JAVA_APP_DIR is also used by java to add the path to two classes:
# "globalRuleChooser" and "JayTable"
export PDU_JAVA_APP_DIR=/afs/slac/g/lcls/epics/iocTop/users/dayle/epics/ioc/pdu/pduApp/srcJava
export CLASSPATH=$PDU_JAVA_APP_DIR:$CLASSPATH

# Use PDUPatternChooser from here
export PATH=$PHYSICS_TOP/PDUPatternChooser:$PATH

# Use EDM Version 1-12-39
# mine export PATH=/afs/slac/g/lcls/epics/iocTop/users/dayle/epics/extensions/bin/linux-x86:$PATH
# Sergei's
export PATH=/afs/slac/g/lcls/epics/extensions/extensions-Sergei/bin/linux-x86:$PATH
edm -m "PDU_JAVA_APP_DIR=$PDU_JAVA_APP_DIR,GLOBAL_TOP=PDU2,REMOTE_TOP=TRIG" -x /afs/slac/g/lcls/epics/iocTop/users/dayle/epics/ioc/pdu/pduApp/srcDisplay/pdu_all_main.edl
