Experimental Physics and
| |||||||||||||||
|
I have a problem in streamDevice2. I use the streamDevice to control a VME monitor. As the example in streamApp,I have three files: vme.cmd, vme.db,vme.proto.These are parts of them: ------------------------------------------------------------------- vme.cmd !./streamApp dbLoadDatabase "O.Common/streamApp.dbd" streamApp_registerRecordDeviceDriver #where can protocols be located? epicsEnvSet "STREAM_PROTOCOL_PATH", ".:protocols:../protocols/" #setup the busses #example serial port setup drvAsynSerialPortConfigure "COM1", "/dev/ttyS0" asynOctetSetInputEos "COM1",0,"\r\n" asynOctetSetOutputEos "COM1",0,"\r\n" asynSetOption ("COM1", 0, "baud", "9600") asynSetOption ("COM1", 0, "bits", "8") asynSetOption ("COM1", 0, "parity", "none") asynSetOption ("COM1", 0, "stop", "1") asynSetOption ("COM1", 0, "clocal", "Y") asynSetOption ("COM1", 0, "crtscts", "N") dbLoadRecords "vme.db","PREFIX=VME" #dbLoadRecords "scalcout.db","PREFIX=DZ" iocInit #enable debug output var streamDebug 1 ------------------------------------------------- vme.db record(stringin, "$(PREFIX):T2") { field(DTYP, "stream") field(INP, "@vme1.proto spyT2 COM1") field (SCAN, "I/O Intr") } record(stringin, "$(PREFIX):T3") { field(DTYP, "stream") field(INP, "@vme1.proto spyT3 COM1") field (SCAN, "I/O Intr") } ....... ----------------------------------------------------- vme.proto Terminator =" "; ReplyTimeout = 10000; # 10 sec is very long, for keyboard input ReadTimeout = 2500; # also long for keyboard input spyT2{ in "T2:%2c"; } spyT3 { in "T3:%2c"; } ....... ------------------------------------------------------------ Last month,it works well, I can get the value from the VME monitor with it. Recently,I install CSS_EPICS_2.3.0-boy, I want to desire a manager display for it. But the problem happened.This is the error : ------------------------------------------------------------- #dbLoadRecords "scalcout.db","PREFIX=DZ" iocInit Starting iocInit ############################################################################ ## EPICS R3.14.11 $R3-14-11$ $2009/08/28 18:47:36$ ## EPICS Base built Aug 19 2010 ############################################################################ 2010/10/29 10:15:03.397 _main_ VME:HA: Wrong link type CONSTANT 2010/10/29 10:15:03.398 _main_ VME:HA: Record initialization failed 2010/10/29 10:15:03.398 _main_ VME:S1: Wrong link type CONSTANT 2010/10/29 10:15:03.398 _main_ VME:S1: Record initialization failed ............ 2010/10/29 10:15:03.399 _main_ VME:HA: No businterface attached 2010/10/29 10:15:03.399 _main_ VME:HA: Can't start "I/O Intr" protocol 2010/10/29 10:15:03.399 _main_ VME:S1: No businterface attached 2010/10/29 10:15:03.399 _main_ VME:S1: Can't start "I/O Intr" protocol ..................... ---------------------------------------------------------------------------------------- It works bad ,I don't know why this happen.I run "example.cmd","test.cmd",they have the same problem.Interesting,only "stringin" record performs error,others run well. Please help me,looking forward to your reply. Yiming
| ||||||||||||||
ANJ, 15 Nov 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |