EPICS Home

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: using hex numbers in calc records
From: Martin Konrad <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Mon, 14 Jun 2010 12:26:36 +0200
Hi,
I'm trying to use a hex number in a calc record:

record(calc, "foo") {
	field(CALC, "0x01")
	field(INPA, "bar")
}

This seems to work cleanly on Linux but fails on (a cross build for) Win32:

Syntax error, unknown operator/operand in CALC expression '0x01'
Can't set "foo.CALC" to "0x01"
Error at or before ")" in file ...

The record reference manual doesn't mention hex numbers. That's why I'm unsure 
if I can rely on this feature. Can anyone help?

Best regards

Martin

-- 
Dipl. Phys. Martin Konrad
Technische Universität Darmstadt
Institut für Kernphysik
Schlossgartenstr. 9
64289 Darmstadt
Tel: 06151-16-5121
Fax: 06151-16-4321


Replies:
Re: using hex numbers in calc records Andrew Johnson

Navigate by Date:
Prev: EPICS Collaboration Meeting June 2010 Di Maio Franck
Next: Channel Access Writes Failed on Asyn Record Writable Fields William Lu
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: EPICS Collaboration Meeting June 2010 Di Maio Franck
Next: Re: using hex numbers in calc records Andrew Johnson
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