#!/bin/csh -f
#==============================================================
#
#  Abs:  Script to start Ethernet PS Controller display 
#
#  Name: mgnt_psc
#
#  Rem:  This script provides the appropriate macro
#        definitions to bring up the development 
#        Ethernet Power Supply display.
#
#        Prior to executing this script from the command
#        line the user is required to setup the EPICS
#        release and host architecture environment variables
#
#  Side: Development
#
#  Facility: SLAC/LCLS Magnet Controls
#
#  Auth: 16-Apr-2007, K. Luchini       (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name  (USERNAME)
#
#--------------------------------------------------------------
#  Mod: 
#        dd-mmm-yyyy, First Lastname   (USERNAME):
#          comments
#
#==============================================================
#
if ($#argv == 1) then
  set micro=$1
  if ($micro == "xx01") then
     edm -x -m "DEV=BEND:XX01:2,PDEV=PSC:XX01:MG01,LDISP=mgnt_limits_aux,DISP=mgnt_epsc" mgnt_unit.edl &
  else if ($micro == "xx02") then
     edm -x -m "DEV=BEND:XX02:2,PDEV=PSC:XX02:MG01,LDISP=mgnt_limits_aux,DISP=mgnt_epsc" mgnt_unit.edl &
  else if ($micro == "xx03")
     edm -x -m "DEV=BEND:XX03:2,PDEV=PSC:XX03:MG01,LDISP=mgnt_limits_aux,DISP=mgnt_epsc" mgnt_unit.edl &
  else if ($micro == "xx04")
     edm -x -m "DEV=BEND:XX04:2,PDEV=PSC:XX04:MG01,LDISP=mgnt_limits_aux,DISP=mgnt_epsc" mgnt_unit.edl &
  else if ($micro == "xx05")
     edm -x -m "DEV=BEND:XX05:231,PDEV=PSC:XX05:MG01,LDISP=mgnt_limits_aux,DISP=mgnt_epsc" mgnt_unit.edl &
  else if ($micro == "li21")
     edm -x -m "DEV=BEND:LI21:231,PDEV=PSC:LI21:MG01,LDISP=mgnt_limits_aux,DISP=mgnt_epsc" mgnt_unit.edl &
  else
    echo "Invalid dev micro"
  endif
endif

# End of script
