Skip to content

Commit

Permalink
Add check to motor-expert-screen to see if SmarAct motor is encoded or
Browse files Browse the repository at this point in the history
not, and bring up the appropriate screen
  • Loading branch information
slactjohnson committed Feb 2, 2024
1 parent bf092a6 commit 0764e6c
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 @@ -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
Expand Down

0 comments on commit 0764e6c

Please sign in to comment.