Hi Dirk,
Thanks for the new release. I can confirm it builds OK on Snow Leopard 10.6.5. I've run into a difference with the previous snapshot though. I have a protocol as follows
InTerminator = "> ";
OutTerminator = CR LF;
ExtraInput = Ignore;
get_airTemp {
out "R1";
in "R1\r\n%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s ,%*s \r\n%*f,%*f,%*f,%f,%*f,%*f,%*f,%*f,%*f,%*f,%*f,%*f,%*f,%*f,%*f";
}
to handle the follow command & 3 line response from my device
> R1
R1
WS= ,WD= ,RH= ,AT= ,RG= ,SR= ,BP= ,S1= ,S2= ,BV= ,LC= ,SV= ,CC= ,9R= ,Ev=
+000006.02,+000106.95,+000051.97,+000027.21,+000006.92,+000010.50,+000902.35,+000019.26,+000018.63,+000012.37,+000035.12,+000012.47,+000249.95,+000009.65,+000004.03
km/h ,Degrees,% ,Deg C ,mm ,W/m^2 ,hPa ,Deg C ,Deg C ,V ,mA ,V ,mA ,mm ,mm
The reason for using "> " for the input terminator is to handle a command prompt that the device sends without a CR LF. I then treat the 3 line response as a single line with "\r\n" in the format string. This worked quite well for the 20100615 snapshot but with the latest, I find that the last %*s before the \r\n also consumes the \r\n. So for the new snapshot I need to remove the 2nd "\r\n" in the format string. Not sure if this change was intentional or not. Other than that, works fine on Mac.
Regards
Craig
-------------------------------------------------------
Craig Haskins
Software Engineer
Australia Telescope National Facility
CSIRO Astronomy and Space Science
P.O.Box 76, Epping NSW 1710, Australia
Phone: +61 2 9372 4309
email: [email protected]
- Replies:
- Re: New StreamDevice version Dirk Zimoch
- Navigate by Date:
- Prev:
question about aSubRecord wantianmin
- Next:
Re: question about aSubRecord Tim Mooney
- 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:
New StreamDevice version Dirk Zimoch
- Next:
Re: New StreamDevice version Dirk Zimoch
- 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
|