prjemian / epics-docker

Provide EPICS IOCs in docker images
9 stars 4 forks source link

2slit.db needs an extra colon #46

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

In the custom synApps IOC setup, these lines: https://github.com/prjemian/epics-docker/blob/ac241362737ca4f04b2c53efbc8613efda4f924e/v1.1/n5_custom_synApps/ioc_files/customize_xxx.sh#L93-L96

need an extra : after the Slit1V and Slit1H:

 sed -i s/'Slit1V,mXp=m3,mXn=m4'/'Slit1V:,mXp=m41,mXn=m42'/g   ./optics.iocsh 
 sed -i s/'Slit1H,mXp=m3,mXn=m4'/'Slit1H:,mXp=m43,mXn=m44'/g   ./optics.iocsh

This is a BUG of pattern where the modifier should have a trailing :.

prjemian commented 2 years ago

Also note that Slit1H does not get the motor numbers correct, a real BUG: https://github.com/prjemian/epics-docker/blob/ac241362737ca4f04b2c53efbc8613efda4f924e/v1.1/n5_custom_synApps/ioc_files/customize_xxx.sh#L95

Final version of both lines should be:

sed -i s/'Slit1V,mXp=m3,mXn=m4'/'Slit1V:,mXp=m41,mXn=m42'/g   ./optics.iocsh
sed -i s/'Slit1H,mXp=m5,mXn=m6'/'Slit1H:,mXp=m43,mXn=m44'/g   ./optics.iocsh