Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  <20012002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  <20012002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: JCA and Arrays
From: Brian Tieman <tieman@aps.anl.gov>
To: Latif Albusairi <latif@inetw.net>
Cc: EPICS Tech-Talk <tech-talk@aps.anl.gov>
Date: Mon, 05 Feb 2001 14:52:56 -0600
Latif,

I routinely use JCA to get arrays without any problem (I haven't tried to put an
array yet).  Below is a brief snippet of code taken from one of my programs to show
how I do this.  If pv_name is an array pv, then pv.elementCount() should return the
number of elements in the array.  Passing this to the contructor of a DBR type
should create a DBR with the correct number of elements which can then be used to
do gets and puts.

pv = new PV (pv_name);
Ca.pendIO(10.0);

pv_value = new DBR_DBShort(pv.elementCount());

pv.get(pv_value);
Ca.pendIO(10.0);

Hope this helps.

Brian Tieman
Advanced Photon Source

Latif Albusairi wrote:

> Hello Everyone,
>
> Has anyone done any extension of JCA (Java Channel Access) to handle array puts
> and gets?
>
> It seems that the version we have cannot do that.  We are thinking of working
> on that but thought we check to see if it has been done already.
>
> Thanks,
>
> Latif Albusairi
> University of Florida



References:
JCA and Arrays Latif Albusairi

Navigate by Date:
Prev: another success for EPICS Pierre MATTEI
Next: JCA and Arrays Latif Albusairi
Index: 1994  1995  1996  1997  1998  1999  2000  <20012002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: JCA and Arrays Latif Albusairi
Next: UDP error Geoff Savage
Index: 1994  1995  1996  1997  1998  1999  2000  <20012002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·