1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 <2022> 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Stream error when drive motro |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | tech-talk <tech-talk at aps.anl.gov>, 网易邮件中心 <l123173 at 163.com> |
Date: | Tue, 16 Aug 2022 12:19:31 +0000 |
Hi Liang,
The main problem is that when you built stepmotor.dbd you did not include base.dbd. That is why all of the records from base (aSub, aai, aao, ai, ao, etc.) are undefined.
The other problem is that it looks like you included stream.dbd before calcSupport.dbd. calcSupport.dbd must come before stream.dbd.
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of 网易邮件中心 via Tech-talk <tech-talk at aps.anl.gov>
Sent: Tuesday, August 16, 2022 3:56 AM To: tech-talk <tech-talk at aps.anl.gov> Subject: Stream error when drive motro Hi all,
I met a question. I use EPICS 3.15.8 ,linux os.
I want to use a driver in github https://github.com/iattarla/StepmotorEpics.
But failed.Here is the output of st.cmd. I have no idea about it.
**********************************************************************
[linxs@rhel8 iocstepmotor]$ ../../bin/linux-x86_64/stepmotor st.cmd.serial
#!../../bin/linux-x86_64/stepmotor
## You may have to change stepmotor to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("IOC","iocstepmotor")
epicsEnvSet("TOP","/home/linxs/Desktop/yy/StepmotorEpics-develop")
epicsEnvSet("EPICS_BASE","/usr/local/EPICS/base-3.15.8")
epicsEnvSet("SNCSEQ","/usr/local/EPICS/extensions/src/seq")
epicsEnvSet("ASYN","/usr/local/EPICS/extensions/src/asyn")
epicsEnvSet("STREAM","/usr/local/EPICS/extensions/src/streamdevice")
epicsEnvSet("CALC","/usr/local/EPICS/extensions/src/calc")
epicsEnvSet("STREAM_PROTOCOL_PATH", "/home/linxs/Desktop/yy/StepmotorEpics-develop/protocols/")
cd /home/linxs/Desktop/yy/StepmotorEpics-develop
## Register all support components
dbLoadDatabase "dbd/stepmotor.dbd"
Declaration of recordtype(scalcout) preceeded full definition.
Error at or before "}" in file "dbd/stepmotor.dbd" line 5567
stepmotor_registerRecordDeviceDriver pdbbase
registerRecordDeviceDriver failed aSub
registerRecordDeviceDriver failed aai
registerRecordDeviceDriver failed aao
registerRecordDeviceDriver failed ai
registerRecordDeviceDriver failed ao
registerRecordDeviceDriver failed bi
registerRecordDeviceDriver failed bo
registerRecordDeviceDriver failed calcout
registerRecordDeviceDriver failed dfanout
registerRecordDeviceDriver failed event
registerRecordDeviceDriver failed fanout
registerRecordDeviceDriver failed histogram
registerRecordDeviceDriver failed lso
registerRecordDeviceDriver failed mbbi
registerRecordDeviceDriver failed mbbiDirect
registerRecordDeviceDriver failed mbboDirect
registerRecordDeviceDriver failed permissive
registerRecordDeviceDriver failed printf
registerRecordDeviceDriver failed sel
registerRecordDeviceDriver failed state
registerRecordDeviceDriver failed sub
registerRecordDeviceDriver failed subArray
## Load record instances
#dbLoadRecords("db/xxx.db","user=bpmHost")
dbLoadRecords("db/stepmotor.db")
Record "motor_no" is of unknown type "ai"
Error at or before ")" in file "db/stepmotor.db" line 6
Error: syntax error
dbLoadRecords: failed to load db/stepmotor.db
drvAsynSerialPortConfigure("ipconn","/dev/ttyACM0",0,0,0)
asynSetOption("ipconn",-1,'baud',"115200")
asynSetOption("ipconn",-1,"bits","8")
asynSetOption("ipconn",-1,"parity","none")
asynSetOption("ipconn",-1,"stop","1")
asynSetTraceMask("ipconn",-1,0x9)
asynSetTraceIOMask("ipconn",-1,0x2)
cd /home/linxs/Desktop/yy/StepmotorEpics-develop/iocBoot/iocstepmotor
iocInit
Starting iocInit
############################################################################
## EPICS R3.15.8
## EPICS Base built Nov 4 2021
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=bpmHost"
epics> dbl
epics>
***********************************************************
I doubt:
a) I use epics 3.15.8,but the use 3.14 or 3.13 ,does it matter?
b) why so many registerRecordDeviceDriver failed error.
Any suggestion was appreciate.
Regards,
Liang
|