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: stream device formatting question
From: Burkhard Kolb <[email protected]>
To: tech-talk Mailing List <[email protected]>
Date: Wed, 26 May 2010 17:45:12 +0200
Hi Dirk,
I am just writing protocol files for a Lauda chiller unit (RE 304 and RE 306).
http://www.lauda.de/hosting/lauda/website_en.nsf/urlnames/kaeltethermostate_produkte
It requires floats as parameters in a special way:
Example "OUT SP 00 20.01"
The parameter here can range from 1 to 3 digits in front and 2 digits behind the
decimal point.
If I use %6.2f it will work for "120.01", but will write " 20.01" in case of the
value "20.01".
The extra blank will cause the unit to flag the command as error.
I can use the "-" modifier to get rid of the leading space...
But then the string sent looks like "20.01 " and the unit will again
complain. Can I suppress leading and trailing spaces?
Cheers, Burkhard
--
Dr. Burkhard Kolb
Tel +49 6159 712667
GSI Helmholtzzentrum für Schwerionenforschung GmbH
Planckstraße 1 | D-64291 Darmstadt | www.gsi.de

Gesellschaft mit beschränkter Haftung
Sitz der Gesellschaft: Darmstadt
Handelsregister: Amtsgericht Darmstadt, HRB 1528

Geschäftsführung: Professor Dr. Dr. h.c. Horst Stöcker, Christiane Neumann, Dr. Hartmut Eickhoff
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertreter: Ministerialdirigent Dr. Rolf Bernhard






Replies:
Re: stream device formatting question Eric Norum

Navigate by Date:
Prev: CA web service Re: iPhone port Kasemir, Kay
Next: Re: stream device formatting question Eric Norum
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: a waveform record question Mark Rivers
Next: Re: stream device formatting question Eric Norum
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, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·