Skip to content

Commit

Permalink
Merge pull request #135 from vespos/motor_expert_smaract
Browse files Browse the repository at this point in the history
ENH/Add SmarAct MSC2 to motor-expert-screen
  • Loading branch information
vespos authored Oct 28, 2022
2 parents 5382bbd + 02f87ed commit 00bcb32
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/motor-expert-screen
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PREFIX=`echo $1 | cut -d . -f 1`
source /reg/g/pcds/setup/epicsenv-3.14.12.sh
export PCDS_EDMS=/reg/g/pcds/package/epics/3.14/screens/edm
#export EDMDATAFILES=.:${PCDS_EDMS}/xps8:${PCDS_EDMS}/ims # normal EDMDATAFILES line
export EDMDATAFILES=.:${PCDS_EDMS}/xps8:/reg/g/pcds/package/epics/3.14/ioc/common/ims/R2.2.3/imsScreens
export EDMDATAFILES=.:${PCDS_EDMS}/xps8:/reg/g/pcds/package/epics/3.14/ioc/common/ims/R2.2.3/imsScreens:/cds/group/pcds/epics/ioc/common/smaract/R1.0.11/motorScreens:/cds/group/pcds/epics/ioc/common/mmc/R1.0.6/mmcScreens

# this ldpathmunge gives access to xdotool for xpp-control, xpp-daq
source /reg/g/pcds/setup/pathmunge.sh
Expand All @@ -49,6 +49,7 @@ else
fi
fi


# xdotool is used to move the new window to the mouse location
# if xdotool is not installed, the move window commands will skip

Expand Down Expand Up @@ -76,10 +77,14 @@ if [ "${rtyp}" == 'xps8p' ]; then
ext=0000
fi
edm -x -eolc -m "CNAME=${base}_${ext},POS=$PREFIX" XPS8_Positioner.edl > /dev/null 2>&1 &
elif [ "${rtyp}" == 'mmca' ]; then # MMC-100 axis
edm -x -eolc -m "MOTOR=$PREFIX" mmc_main.edl > /dev/null 2>&1 &
elif [ "${rtyp}" == 'motor' ]; then
caget "$PREFIX:PN" > /dev/null 2>&1
if [ $? -eq 0 ]; then
/reg/g/pcds/package/epics/3.14//modules/pcds_motion/${OLD_VERSION}/launch-motor.sh "$PREFIX" > /dev/null 2>&1 &
elif [[ $PREFIX == *"MCS2"* ]]; then # smaracts have "motor" rtyp, so we catch them with the PREFIX
edm -x -eolc -m "MOTOR=$PREFIX" mcs2_main.edl > /dev/null 2>&1 &
else
cd /reg/neh/home/klg/epics/ioc/common/aerotech/current/motorScreens
#cd /reg/neh/home4/mcbrowne/trunk2/ioc/common/aerotech/current/motorScreens
Expand Down

0 comments on commit 00bcb32

Please sign in to comment.