待办

@http://www.aps.anl.gov/epics/modules/soft/asyn/R4-23/HowToDoSerial/HowToDoSerial_StreamDevice.html


  9 # Allow PV name prefixes and serial port name to be set from the environment 
 10 epicsEnvSet "P" "$(P=hpE3631A)" 
 11 epicsEnvSet "R" "$(R=Test)" 
 12 epicsEnvSet "TTY" "$(TTY=/dev/tty.PL2303-000013FA)" 
 13

in IOC startup script  R=Test,设置两个不同的"host?"名,是不是方便两种模式?运行和测试?写成两份不同的recipe?


18 HPE3631Atest_registerRecordDeviceDriver pdbbase 
pdbbase是什么意思,见到几次了,有的example 里没有

dbLoadRecords("db/devHPE3631A.db","P=$(P),R=$(R),PORT=L0,A=0") 
另外别忘了 

epicsEnvSet "TTY" "$(TTY=/dev/tty.PL2303-000013FA)" 
在同设备时候指定设备

So, if you have a LAN/Serial adapter or network attached device which uses a raw TCP ('telnet' style) connection you would replace lines 23 through 29 with a single line like:

drvAsynIPPortConfigure("L0","192.168.0.23:4001",0,0,0) 


为什么在appnameApp/src/Makefile  里不用添加asyn.dbd


make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install
make[3]: Entering directory `/root/softw/epics/T110/T110App/src/O.linux-x86'
perl /root/softw/epics/base-3.14.12.4/bin/linux-x86/makeIncludeDbd.pl base.dbd stream.dbd drvAsynSerialPort.dbd  drvAsynIPPort.dbd T110Include.dbd
echo "../O.Common/T110Include.dbd : ../Makefile" >> T110.dbd.d
Expanding dbd
Can't open include file "stream.dbd"
Error at or before ""stream.dbd"" in file "../O.Common/T110Include.dbd" line 2
dbExpand: Input errors, no output generated
make[3]: *** [../O.Common/T110.dbd] Error 1
make[3]: Leaving directory `/root/softw/epics/T110/T110App/src/O.linux-x86'
make[2]: *** [install.linux-x86] Error 2
make[2]: Leaving directory `/root/softw/epics/T110/T110App/src'
make[1]: *** [src.install] Error 2
make[1]: Leaving directory `/root/softw/epics/T110/T110App'
make: *** [T110App.install] Error 2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值