EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: streamDevice2(stringin) problem!
From: 黄一鸣 <[email protected]>
To: [email protected]
Date: Fri, 29 Oct 2010 11:17:35 +0800 (CST)
Hello
    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

















Replies:
Re: streamDevice2(stringin) problem! Dirk Zimoch

Navigate by Date:
Prev: Attention, poll: Who needs the sequencer's pv layer? Ben Franksen
Next: Re: Attention, poll: Who needs the sequencer's pv layer? Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Last chance to save the sequencer's pv layer Maren Purves
Next: Re: streamDevice2(stringin) problem! Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Nov 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·