From 0764e6ce3e8e74b117609cda2ceada4d8c299d16 Mon Sep 17 00:00:00 2001 From: slactjohnson Date: Thu, 1 Feb 2024 19:38:39 -0800 Subject: [PATCH] Add check to motor-expert-screen to see if SmarAct motor is encoded or not, and bring up the appropriate screen --- scripts/motor-expert-screen | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/motor-expert-screen b/scripts/motor-expert-screen index 446ba7fa..32b56344 100755 --- a/scripts/motor-expert-screen +++ b/scripts/motor-expert-screen @@ -97,7 +97,12 @@ elif [ "${rtyp}" == 'motor' ]; then 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 & + enc=$(caget $PREFIX.UEIP) + if [[ $enc == *"Yes"* ]]; then + edm -x -eolc -m "MOTOR=$PREFIX" mcs2_main.edl > /dev/null 2>&1 & + else + edm -x -eolc -m "MOTOR=$PREFIX" mcs2_openloop.edl > /dev/null 2>&1 & + fi else cd /reg/neh/home/klg/epics/ioc/common/aerotech/current/motorScreens #cd /reg/neh/home4/mcbrowne/trunk2/ioc/common/aerotech/current/motorScreens