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: | Error when running st.cmd of SmartMotor |
From: | 최원철 via Tech-talk <[email protected]> |
To: | <[email protected]> |
Date: | Fri, 10 Jan 2020 18:31:41 +0900 |
hi
I'm currently developing an IOC that runs a motor and I'm having trouble.
When I run "st.cmd" it produces this output:
odroid@odroid:~/App/epics/iocs/testMotor/iocBoot/ioctestMotor$ ./st.cmd
#!../../bin/linux-arm/testMotor
## You may have to change testMotor to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("IOC","ioctestMotor")
epicsEnvSet("TOP","/home/odroid/App/epics/iocs/testMotor")
epicsEnvSet("EPICS_BASE","/usr/local/epics/base")
epicsEnvSet("ASYN","/usr/local/epics/modules/asyn4-37")
epicsEnvSet("STREAM","/home/odroid/App/epics/modules/stream")
epicsEnvSet("MOTOR","/usr/local/epics/modules/motor-R6-10-1")
< epicsEnvSet(STREAM_PROTOCOL_PATH, "odroid/App/epics/iocs/testMotor/testMotorApp/Db")
st.cmd line 7: Can't open "epicsEnvSet": No such file or directory.
cd "/home/odroid/App/epics/iocs/testMotor"
## Register all support components
dbLoadDatabase "dbd/testMotor.dbd"
testMotor_registerRecordDeviceDriver pdbbase
drvAsynSerialPortConfigure("SERIALPORT","/dev/ttyS2",0,0,0)
asynSetOption("SERIALPORT",-1,"baud","19200")
asynSetOption("SERIALPORT",-1,"bits","8")
asynSetOption("SERIALPORT",-1,"parity","none")
asynSetOption("SERIALPORT",-1,"stop","1")
asynSetOption("SERIALPORT",-1,"clocal","Y")
asynSetOption("SERIALPORT",-1,"crtscts","N")
asynOctetSetInputEos("SERIALPORT",0,"\r")
asynOctetSetOutputEos("SERIALPORT",0,"\r")
KKTechSetup(1,8,10)
KKTechConfig(0,"SERIALPORT")
## Load record instances
#dbLoadRecords("db/xxx.db","user=odroid")
dbLoadRecords("db/testMotor.db","PORT='SERIALPORT'")
#dbLoadRecords("db/testMotor.db")
cd "/home/odroid/App/epics/iocs/testMotor/iocBoot/ioctestMotor"
iocInit
Starting iocInit
############################################################################
## EPICS R3.15.6
## EPICS Base built Dec 23 2019
############################################################################
drvStreamInit: Warning! STREAM_PROTOCOL_PATH not set. Defaults to "." <-------?????
devMotorAsyn::init_record IOC:m1 bad link invalid INST_IO Must be asyn(<port> <addr> <timeout>)userParams <-------?????
2020/01/09 17:46:06.002 devMotorAsyn::build_trans: IOC:m1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port <-------?????
2020/01/09 17:46:06.002 devMotorAsyn::build_trans: IOC:m1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port <-------?????
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=odroid"
epics>
Below is the contents of the st.cmd file.
#!../../bin/linux-arm/testMotor
## You may have to change testMotor to something else
## everywhere it appears in this file
< envPaths
< epicsEnvSet(STREAM_PROTOCOL_PATH, "odroid/App/epics/iocs/testMotor/testMotorApp/Db")
cd "${TOP}"
## Register all support components
dbLoadDatabase "dbd/testMotor.dbd"
testMotor_registerRecordDeviceDriver pdbbase
drvAsynSerialPortConfigure("SERIALPORT","/dev/ttyS2",0,0,0)
asynSetOption("SERIALPORT",-1,"baud","19200")
asynSetOption("SERIALPORT",-1,"bits","8")
asynSetOption("SERIALPORT",-1,"parity","none")
asynSetOption("SERIALPORT",-1,"stop","1")
asynSetOption("SERIALPORT",-1,"clocal","Y")
asynSetOption("SERIALPORT",-1,"crtscts","N")
asynOctetSetInputEos("SERIALPORT",0,"\r")
asynOctetSetOutputEos("SERIALPORT",0,"\r")
KKTechSetup(1,8,10)
KKTechConfig(0,"SERIALPORT")
## Load record instances
#dbLoadRecords("db/xxx.db","user=odroid")
dbLoadRecords("db/testMotor.db","PORT='SERIALPORT'")
#dbLoadRecords("db/testMotor.db")
cd "${TOP}/iocBoot/${IOC}"
iocInit
## Start any sequence programs
#seq sncxxx,"user=odroid"