几个注意点:
编译完synApps之后还需进入ADSimDetector目录进行编译
需要将/ADSimDetector/simDetectorAPP/op/adl 目录中的adl文件夹复制到 /ADSimDetector/iocs/simDetectorIOC/simDetectorApp/adl 目录下
并需要在.bashrc中添加adl路径,代码如下:
#medm
export EPICS_DISPLAY_PATH=/opt/EPICS/synApps_6_1/support/areaDetector-R3-7/ADSimDetector/iocs/simDetectorIOC/simDetectorApp/adl
修改start-epics文本内容为
medm -x -macro "P=13SIM1:, R=cam1:" /opt/EPICS/synApps_6_1/support/areaDetector-R3-7/ADSimDetector/iocs/simDetectorIOC/simDetectorApp/adl/simDetector.adl &
../../bin/linux-x86_64/simDetectorApp st.cmd.linux
即需要指明simDetector.adl的目录,不然会报错找不到simDetector.adl , 可能有更好的解决办法,暂时不知,可在评论区告知,感谢
更:或者将adl文件直接copy到start_epics同一目录下
如果在运行./start_epics后在MEDM Message Window窗口出现
cannot open file
filename:xxx.adl
则需要在去<support>或者 <support>/areaDetector-R3-3-1/ADCore/ADApp/op/adl 里copy缺少的文件到自己的adl文件夹里。
需要配置IP端口,在~目录中编辑.bashrc文件,添加如下代码,再source .bashrc
#多IP:端口 需加引号,空格隔开 epics channel access address lists="ip:5064 ip:5064 ip:5064"
export EPICS_CA_ADDR_LIST=localhost:5064
export EPICS_CA_AUTO_ADDR_LIST=NO
配置并运行成功之后可以通过下列命令进行尝试控制:
cainfo 13SIM1:cam1:ShutterOpenEPICS
caput 13SIM1:cam1:ArrayCallbacks Enable
caget 13SIM1:cam1:ArrayCallbacks
camonitor 13SIM1:cam1:ArrayCallbacks
主要配置步骤见下链接
参考,感谢:https://blog.csdn.net/weixin_51081817/article/details/121825407?spm=1001.2014.3001.5502