Skip to content

Commit

Permalink
Merge pull request #171 from slactjohnson/smaract_screens
Browse files Browse the repository at this point in the history
ENH: Add check for SmarAct encoder
  • Loading branch information
slactjohnson authored Feb 2, 2024
2 parents bf092a6 + 0764e6c commit a3052b2
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 a3052b2

Please sign in to comment.