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  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: using hex numbers in calc records
From: Martin Konrad <konrad@ikp.tu-darmstadt.de>
To: EPICS Tech Talk <tech-talk@aps.anl.gov>
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 
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 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·