Experimental Physics and
| |||||||||||||||
|
Dear All and after running ioc the result is .....I want to send and receive data at port. I am successfully sending the data and verified it but I can't receive the data from the port. Please check the problem and suggest me how to correct it. I have attached my database file. My st.cmd file is: #!../../bin/linux-x86/serialTest ## You may have to change serialTest to something else ## everywhere it appears in this file < envPaths cd ${TOP} ## Register all support components dbLoadDatabase "dbd/serialTest.dbd" serialTest_registerRecordDeviceDriver pdbbase drvAsynIPPortConfigure("L0","localhost:5011",0,0,0) ## Load record instances #dbLoadRecords("db/xxx.db","user=tasaddaqHost") dbLoadRecords("db/asynRecord.db","P=a:,R=b,PORT=L0, ADDR=0,TIMEOUT=1,IMAX=100,OMAX=100") dbLoadRecords("db/serialTest.db","PORT=L0,R=b,ADDR=0,TIMEOUT=1") #asynOctetSetInputEos("L0",0,"\n") #asynOctetSetOutputEos("L0",0,"\n") cd ${TOP}/iocBoot/${IOC} iocInit ## Start any sequence programs #seq sncxxx,"user=tasaddaqHost" _________________________________________________________ #!../../bin/linux-x86/serialTest ## You may have to change serialTest to something else ## everywhere it appears in this file < envPaths epicsEnvSet("ARCH","linux-x86") epicsEnvSet("IOC","iocserialTest") epicsEnvSet("TOP","/home/tasaddaq/serialTest") epicsEnvSet("EPICS_BASE","/home/tasaddaq/epics/base-3.14.12.3") epicsEnvSet("ASYN","/home/tasaddaq/epics/asyn4-20") cd /home/tasaddaq/serialTest ## Register all support components dbLoadDatabase "dbd/serialTest.dbd" serialTest_registerRecordDeviceDriver pdbbase drvAsynIPPortConfigure("L0","localhost:5011",0,0,0) ## Load record instances #dbLoadRecords("db/xxx.db","user=tasaddaqHost") dbLoadRecords("db/asynRecord.db","P=a:,R=b,PORT=L0, ADDR=0,TIMEOUT=1,IMAX=100,OMAX=100") dbLoadRecords("db/serialTest.db","PORT=L0,R=b,ADDR=0,TIMEOUT=1") #asynOctetSetInputEos("L0",0,"\n") #asynOctetSetOutputEos("L0",0,"\n") cd /home/tasaddaq/serialTest/iocBoot/iocserialTest iocInit Starting iocInit ############################################################################ ## EPICS R3.14.12.3 $Date: Mon 2012-12-17 14:11:47 -0600$ ## EPICS Base built Jan 18 2013 ############################################################################ iocRun: All initialization complete ## Start any sequence programs #seq sncxxx,"user=tasaddaqHost" epics> 2014/12/23 15:25:16.007 b:in devAsynOctet: readIt failed localhost:5011 timeout: Resource temporarily unavailable epics> best regards, Tasaddaq Attachment:
serialTest.db
| ||||||||||||||
ANJ, 17 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |