> From: Dirk Zimoch [mailto:[email protected]]
>
> it seems I misunderstood what the current problem was.
>
> Indeed, stream first tries to read 1 byte with a quite long
> timeout (reply timeout) and then the rest with shorter timeout
> (read timeout). Also any very long message may be read in
> pieces from the underlying asyn driver.
>
> Even though this should be legal according to the asyn
> documentation (and works perfectly for serial and TCP), the
> GPIB driver did not support it, returned "asynOverflow" and
> destroyed the message. I had modified StreamDevice some time
> ago not to read a single byte at the beginning any more if he
> device is GPIB.
> But still there might be a problem with very long messages.
>
> As far as I know, the lastest version of asyn also fixes this
> problem and the GPIB driver does not return "asynOverflow" any
> more.
>
> Thus, either upgrading asyn or stream (or both) to the the
> latest version should fix your problem. Please report if that
> worked.
>
> Yours,
> Dirk
Using streamDevice CVS snapshot 20070511 works with both asyn 4-6 and
asyn 4-8. We didn't test the original stream device (2-1+all patches)
with the new (4-8) asyn, but I guess that doesn't matter. Many thanks
--
Peter Denison, Senior Software Engineer
Diamond Light Source Ltd., Diamond House, Chilton, Didcot, Oxon
OX11 0DE Tel: +44 1235 778511
- References:
- Re: problem using streams with asyn for Agilent E5810A Ethernet->GPIB Dirk Zimoch
- Navigate by Date:
- Prev:
RE: waveform problem with asyn 4-8 Mark Rivers
- Next:
CAJ Options David Dudley
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: problem using streams with asyn for Agilent E5810A Ethernet->GPIB Dirk Zimoch
- Next:
JCA Library usage David Dudley
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|