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
--
Sinisa Veseli
Software Services Group
APS Engineering Support Division
Argonne National Laboratory
[email protected]
(630)252-9182
- Replies:
- Re: CAJ/JCA question Sinisa Veseli
- Re: CAJ/JCA question Till Straumann
- References:
- CAJ/JCA question Sinisa Veseli
- Navigate by Date:
- Prev:
EPICS device disconnects and reconnects Mark Rivers
- Next:
Re: CAJ/JCA question Sinisa Veseli
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
CAJ/JCA question Sinisa Veseli
- Next:
Re: CAJ/JCA question Sinisa Veseli
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|