#! /bin/bash

# Setup edm environment
export EPICS_SITE_TOP=/reg/g/pcds/package/epics/3.14
export EPICS_HOST_ARCH=$($EPICS_SITE_TOP/base/current/startup/EpicsHostArch.pl)

export EPICS_CA_MAX_ARRAY_BYTES=8000000
export EDMFILES=$EPICS_SITE_TOP/extensions/current/templates/edm
export EDMFILTERS=$EPICS_SITE_TOP/extensions/current/templates/edm
export EDMHELPFILES=$EPICS_SITE_TOP/extensions/current/src/edm/helpFiles
export EDMLIBS=$EPICS_SITE_TOP/extensions/current/lib/$EPICS_HOST_ARCH
export EDMOBJECTS=$EPICS_SITE_TOP/extensions/current/templates/edm
export EDMPVOBJECTS=$EPICS_SITE_TOP/extensions/current/templates/edm
export EDMUSERLIB=$EPICS_SITE_TOP/extensions/current/lib/$EPICS_HOST_ARCH
export EDMACTIONS=/reg/g/pcds/package/tools/edm/config
export EDMWEBBROWSER=mozilla
export PATH=$PATH:$EPICS_SITE_TOP/extensions/current/bin/$EPICS_HOST_ARCH
export PATH=$PATH:$EPICS_SITE_TOP/base/current/bin/$EPICS_HOST_ARCH
export EDMDATAFILES=".:.."

edm -x	-eolc		\
	-m "IOC=LAS:R52:IOC:49"	\
	-m "TC=LAS:R50:BHC:09:KL3314:SLOT2:TEMP3"	\
	Bk9000Screens/emb-thermocouple-detail.edl	\
	Bk9000Screens/thermocouple-detail-1.edl		\
	&

