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  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: StreamDevice: Input "1" does not match format %1r
From: Martin Konrad <konrad@ikp.tu-darmstadt.de>
To: tech-talk@aps.anl.gov
Date: Mon, 31 Oct 2011 14:33:55 +0100
Hallo,
I get the following error from StreamDevice (StreamDevice 2.5 with asyn
R4-17 and base 3.14.11):

2011/10/31 14:15:24.807 a1sc01rfamp A1SC01:RFAmp:inStatus: Input "1"
does not match format %1r

As far as I understand the documentation every one-byte input should
match %1r. So why does StreamDevice complain?

The error message is printed in StreamCore.cc:1314. See the attached
file for debugging output of StreamDevice.

Any help appreciated

Martin

-- 
Dipl. Phys. Martin Konrad
Technische Universität Darmstadt
Institut für Kernphysik
Schlossgartenstr. 9
64289 Darmstadt
Tel.: +49-6151-16-5121
Fax: +49-6151-16-4321
2011/10/31 14:15:24.777 a1sc01rfamp AsynDriverInterface.cc:1393: AsynDriverInterface::handleRequest(A1SC01:RFAmp:inStatus) Lock
2011/10/31 14:15:24.777 a1sc01rfamp AsynDriverInterface.cc:558: AsynDriverInterface::lockHandler(A1SC01:RFAmp:inStatus)
2011/10/31 14:15:24.777 a1sc01rfamp AsynDriverInterface.cc:496: AsynDriverInterface::connectToAsynPort(A1SC01:RFAmp:inStatus)
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:529: AsynDriverInterface::connectToAsynPort(A1SC01:RFAmp:inStatus) is already connected
2011/10/31 14:15:24.778 a1sc01rfamp StreamCore.cc:818: StreamCore::lockCallback(A1SC01:RFAmp:inStatus, status=Success)
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:581: AsynDriverInterface::writeRequest(A1SC01:RFAmp:inStatus, "<80>", 100 msec)
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:1393: AsynDriverInterface::handleRequest(A1SC01:RFAmp:inStatus) Write
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:609: AsynDriverInterface::writeHandler(A1SC01:RFAmp:inStatus)
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:649: AsynDriverInterface::writeHandler(A1SC01:RFAmp:inStatus): write(..., outputSize=1, written=1) [timeout=0.100000 seconds] = asynSuccess
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:658: AsynDriverInterface::writeHandler(A1SC01:RFAmp:inStatus): device is connected
2011/10/31 14:15:24.778 a1sc01rfamp StreamCore.cc:850: StreamCore::writeCallback(A1SC01:RFAmp:inStatus, status=Success)
2011/10/31 14:15:24.778 a1sc01rfamp StreamCore.cc:553: StreamCore::evalCommand(A1SC01:RFAmp:inStatus): activeCommand = in
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:734: AsynDriverInterface::readRequest(A1SC01:RFAmp:inStatus, 1000 msec reply, 100 msec read, expect 11 bytes, asyn=no)
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:1393: AsynDriverInterface::handleRequest(A1SC01:RFAmp:inStatus) Read
2011/10/31 14:15:24.778 a1sc01rfamp AsynDriverInterface.cc:807: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus) input EOS set to 
2011/10/31 14:15:24.806 a1sc01rfamp AsynDriverInterface.cc:870: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus): read(..., bytesToRead=1, received=1...) [timeout=1.000000 seconds] = asynSuccess
2011/10/31 14:15:24.806 a1sc01rfamp AsynDriverInterface.cc:877: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus): device is connected
2011/10/31 14:15:24.806 a1sc01rfamp AsynDriverInterface.cc:918: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus): received 1 of 1 bytes "1" eomReason=CNT
2011/10/31 14:15:24.806 a1sc01rfamp StreamCore.cc:939: StreamCore::readCallback(A1SC01:RFAmp:inStatus, status=StreamIoSuccess input="1", size=1)
2011/10/31 14:15:24.806 a1sc01rfamp StreamCore.cc:995: StreamCore::readCallback(A1SC01:RFAmp:inStatus) inputBuffer="1", size 1
2011/10/31 14:15:24.806 a1sc01rfamp StreamCore.cc:1076: StreamCore::readCallback(A1SC01:RFAmp:inStatus) wait for more input
2011/10/31 14:15:24.806 a1sc01rfamp AsynDriverInterface.cc:1041: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus) readMore=10 bytesToRead=10
2011/10/31 14:15:24.806 a1sc01rfamp AsynDriverInterface.cc:870: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus): read(..., bytesToRead=10, received=10...) [timeout=0.100000 seconds] = asynSuccess
2011/10/31 14:15:24.806 a1sc01rfamp AsynDriverInterface.cc:877: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus): device is connected
2011/10/31 14:15:24.806 a1sc01rfamp AsynDriverInterface.cc:918: AsynDriverInterface::readHandler(A1SC01:RFAmp:inStatus): received 10 of 10 bytes "5.60000001" eomReason=CNT
2011/10/31 14:15:24.806 a1sc01rfamp StreamCore.cc:939: StreamCore::readCallback(A1SC01:RFAmp:inStatus, status=StreamIoSuccess input="5.60000001", size=10)
2011/10/31 14:15:24.806 a1sc01rfamp StreamCore.cc:995: StreamCore::readCallback(A1SC01:RFAmp:inStatus) inputBuffer="15.60000001", size 11
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1054: StreamCore::readCallback(A1SC01:RFAmp:inStatus) maxInput size reached
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1105: StreamCore::readCallback(A1SC01:RFAmp:inStatus) input line: "15.60000001"
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1203: StreamCore::matchInput(A1SC01:RFAmp:inStatus): format = %4f
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1057: Stream::matchValue(A1SC01:RFAmp:inStatus): buffer before: <00><00><00><00><00><00><00><00>
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1497: StreamCore::scanValue(A1SC01:RFAmp:inStatus, format=%f, double) input="15.60000001"
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1509: StreamCore::scanValue(A1SC01:RFAmp:inStatus) scanned 15.6000
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1083: Stream::matchValue(A1SC01:RFAmp:inStatus): A1SC01:RFAmp:coolingWaterTemp[0] = 15.6000 15.6000
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1101: Stream::matchValue(A1SC01:RFAmp:inStatus): buffer after: 333333/@
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1163: Stream::matchValue(A1SC01:RFAmp:inStatus): dbPutField(A1SC01:RFAmp:coolingWaterTemp.VAL,333333/@)
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1203: StreamCore::matchInput(A1SC01:RFAmp:inStatus): format = %3u
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1057: Stream::matchValue(A1SC01:RFAmp:inStatus): buffer before: <00><00><00><00>
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1466: StreamCore::scanValue(A1SC01:RFAmp:inStatus, format=%u, long) input="0000001"
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1478: StreamCore::scanValue(A1SC01:RFAmp:inStatus) scanned 0
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1064: Stream::matchValue(A1SC01:RFAmp:inStatus): A1SC01:RFAmp:outputPwr[0] = 0
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1101: Stream::matchValue(A1SC01:RFAmp:inStatus): buffer after: <00><00><00><00>
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1163: Stream::matchValue(A1SC01:RFAmp:inStatus): dbPutField(A1SC01:RFAmp:outputPwr.VAL,<00><00><00><00>)
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1203: StreamCore::matchInput(A1SC01:RFAmp:inStatus): format = %3u
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1057: Stream::matchValue(A1SC01:RFAmp:inStatus): buffer before: <00><00><00><00>
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1466: StreamCore::scanValue(A1SC01:RFAmp:inStatus, format=%u, long) input="0001"
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1478: StreamCore::scanValue(A1SC01:RFAmp:inStatus) scanned 0
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1064: Stream::matchValue(A1SC01:RFAmp:inStatus): A1SC01:RFAmp:reflectedPwr[0] = 0
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1101: Stream::matchValue(A1SC01:RFAmp:inStatus): buffer after: <00><00><00><00>
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1163: Stream::matchValue(A1SC01:RFAmp:inStatus): dbPutField(A1SC01:RFAmp:reflectedPwr.VAL,<00><00><00><00>)
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1203: StreamCore::matchInput(A1SC01:RFAmp:inStatus): format = %1r
2011/10/31 14:15:24.807 a1sc01rfamp StreamEpics.cc:1217: Stream::matchValue(A1SC01:RFAmp:inStatus): readData failed
2011/10/31 14:15:24.807 a1sc01rfamp A1SC01:RFAmp:inStatus: Input "1" does not match format %1r
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:1135: StreamCore::readCallback(A1SC01:RFAmp:inStatus) match failure                                                                                                                                                                            
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:511: starting exception handler
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:553: StreamCore::evalCommand(A1SC01:RFAmp:inStatus): activeCommand = end
2011/10/31 14:15:24.807 a1sc01rfamp StreamCore.cc:518: StreamCore::finishProtocol(A1SC01:RFAmp:inStatus, status=ScanError) bus owner
2011/10/31 14:15:24.807 a1sc01rfamp AsynDriverInterface.cc:569: AsynDriverInterface::unlock(A1SC01:RFAmp:inStatus)
2011/10/31 14:15:24.807 a1sc01rfamp AsynDriverInterface.cc:1373: AsynDriverInterface::finish(A1SC01:RFAmp:inStatus) start
2011/10/31 14:15:24.807 a1sc01rfamp AsynDriverInterface.cc:1383: AsynDriverInterface::finish(A1SC01:RFAmp:inStatus) done

Replies:
Re: StreamDevice: Input "1" does not match format %1r Dirk Zimoch

Navigate by Date:
Prev: RE: EZCA and ezcaIDL improvements? Mark Rivers
Next: Re: Delta Tau UK - Tech Talk - precision motion for Synchrotron Rings Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: EtherIP device support for stringout record William Lu
Next: Re: StreamDevice: Input "1" does not match format %1r Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·