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  2010  2011  2012  2013  2014  <20152016  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  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Passing a raw byte value from st.cmd to a StreamDevice proto file
From: Michael Ritzert <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Wed, 29 Jul 2015 14:52:03 +0200
Hi all,

I'm looking for a way to pass a raw byte parameter from st.cmd through the
database to the format string in a StreamDevice proto file. I investigated both
passing a binary value through dbLoadRecords, but the obvious options \x24 or
\044 (e.g. dbLoadRecords("gf100.db","PORT=L0,ADDR=0,MAC=\x24")) do not work as
I had hoped (the \ is swallowed, the rest is taken verbose). I also tried to
have the string interpreted as a number in the proto file by putting it into a
formatting statement as if \$1 was another record name. All this got me was
error messages.

Does anybody have a suggestion?

Thanks,
Michael

PS: For now I'm good since for the test device I need to pass 0x24 which
happens to be easily represented as "$", but I will not always be so lucky.
-- 
Dr. Michael Ritzert                   Tel: +49 621 181 2883
Schaltungstechnik und Simulation      Fax: +49 621 181 2734
Technische Informatik, Uni Heidelberg [email protected]
68131 Mannheim, Germany               http://sus.ziti.uni-heidelberg.de

Replies:
Re: Passing a raw byte value from st.cmd to a StreamDevice proto file Andrew Johnson

Navigate by Date:
Prev: Re: MVME-5500 Universe II Michael Davidsaver
Next: Re: Multi-threading in BOY Python scripts Márcio Paduan Donadio
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: MVME-5500 Universe II Andy Cousins
Next: Re: Passing a raw byte value from st.cmd to a StreamDevice proto file Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·