Skip to content

Commit

Permalink
Merge pull request #174 from KaushikMalapati/smaract
Browse files Browse the repository at this point in the history
motor-expert-screen checks for smaract-specific nvram pvs so it works…
  • Loading branch information
KaushikMalapati authored Feb 27, 2024
2 parents 1d2afcf + 13f15f4 commit f92d08a
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions scripts/motor-expert-screen
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,20 @@ 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
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
edm -x -eolc -m "MOTOR=${PREFIX}" ens_main.edl >& /dev/null &
# smaracts have "motor" rtyp, so we catch them with the PREFIX or with smaract specific pvs
if [[ $PREFIX == *"MCS2"* || $(caget "$PREFIX:PTYPE_RBV" > /dev/null 2>&1) -eq 0 ]]; then
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
edm -x -eolc -m "MOTOR=${PREFIX}" ens_main.edl >& /dev/null &
fi
fi
else
edm -x -eolc -m "MOTOR=$PREFIX" ims_main.edl > /dev/null 2>&1 &
Expand Down

0 comments on commit f92d08a

Please sign in to comment.