EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  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  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: JCA2 example code
From: Rolf Keitel <[email protected]>
To: John Faucett <[email protected]>, tech_talk <[email protected]>
Date: Tue, 19 Jul 2005 13:27:11 -0700
John,
the following worked for me:

DBR_Int dbr = (DBR_Int) ch.get(DBRType.INT, 1);
ctxt.pendIO(5.0);
int[] val = dbr.getIntValue();


- rolf -

John Faucett wrote:

It's not at all obvious to me how to get EPICS data using JCA2. I tried adding

DBR_Int dbr = ( DBR_Int) ch.get( DBRType.INT, 1);

to the code in the configuration tutorial but all it returns is zero for a PV that has a non-zero VAL field. What am I missing?

John Faucett



--
+-------------------------------------------------+
| Rolf Keitel, TRIUMF         Tel: (604) 222-7453 |
| Group Leader ISAC Controls  Fax: (604) 222-7307 |
| and Electronics Development                     |
| Vancouver, B.C., Canada                         |
+-------------------------------------------------+


References:
JCA2 example code John Faucett

Navigate by Date:
Prev: JCA2 example code John Faucett
Next: #ifdef EPICS3_14 Steven Hartman
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: JCA2 example code John Faucett
Next: #ifdef EPICS3_14 Steven Hartman
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  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 ·