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  <20132014  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  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CAJ/JCA question
From: Till Straumann <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 14 Jun 2013 15:45:24 -0500
My 2 cents:

I advise against setting this (or any) property from code.
This might surprise and/or frustrate users who *do* want
to use property files etc.

You can set 'jca.use_env' from a file or even on the command line

java -Djca.use_env=true

Cheers
- Till


On 06/14/2013 01:30 PM, Mark Rivers wrote:
In recent versions of JCA you can do the following:

             System.setProperty("jca.use_env", "true");
              // Get the JCALibrary instance.
              jca = JCALibrary.getInstance();
              ctxt = jca.createContext(JCALibrary.CHANNEL_ACCESS_JAVA);

By setting "jca.use_env" to "true" JCA will use the same environment variables as the C language Channel Access code.  I find this much easier than using the JCALibrary.properties, particularly because there can be multiple copies of that file in the Java search path, and finding them all can be a headache.  I have changed the EPICS areaDetector ImageJ plugin to use this mechanism.

Mark



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sinisa Veseli
Sent: Friday, June 14, 2013 12:58 PM
To: [email protected]
Subject: CAJ/JCA question

Hi,

Sorry if I am missing something obvious, but are there up to date
examples and documentation on configuring and using CAJ and JCA?

I'm using he latest versions available on sourceforge: 2.3.6 for JCA and
1.1.10 for CAJ.

I found a very old tutorial at
http://www.aps.anl.gov/bcda/jca/jca/2.1.2/tutorial.html (which still
seems to be relevant) and lots of more recent links (such as
http://caj.cosylab.com/manual.html), that do not seem to work any longer.

After going through some old training slides, I found the line of code
that allows me to use CAJContext for creating channels, but no matter
what I use
for com.cosylab.epics.caj.CAJContext.addr_list and auto_addr_list in
JCALibrary.properties file, my channels (for which caget works just
fine) are never connected.

Thanks for any help or hints,

Sinisa




Replies:
Re: CAJ/JCA question J. Lewis Muir
References:
CAJ/JCA question Sinisa Veseli
RE: CAJ/JCA question Mark Rivers

Navigate by Date:
Prev: Re: medm causes X11 crash on RHEL6 Paul Sichta
Next: Re: medm causes X11 crash on RHEL6 Faucett, John A
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: CAJ/JCA question Sinisa Veseli
Next: Re: CAJ/JCA question J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·