Experimental Physics and
| |||||||||||||||
|
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" Below is the contents of the testMotor.db file. grecord(motor,"IOC:m1") { field(DESC,"$(DESC="motor $(M)")") field(DTYP,"KKTech") field(DIR,"$(DIR=Pos)") field(VELO,"$(VELO=1)") field(VBAS,"$(VBAS=.1)") field(ACCL,"$(ACCL=.2)") field(BDST,"$(BDST=0)") field(BVEL,"$(BVEL=1)") field(BACC,"$(BACC=.2)") field(OUT,"#C$(C=0) S$(S) @") field(MRES,"$(MRES=0.01)") field(PREC,"$(PREC=5)") field(EGU,"$(EGU=mm)") field(DHLM,"$(DHLM=100)") field(DLLM,"$(DLLM=-100)") field(INIT,"$(INIT="")") field(TWV,"1") } I can't solve the above 4 errors. I would appreciate a very small tip. Thank you.
| ||||||||||||||
ANJ, 10 Jan 2020 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |