Experimental Physics and Industrial Control System
|
Hi Heinrich,
In (posix) C, there is a function that can do this: putenv(). Overwrite any
environment variable you like in the initialization code of your application,
before starting channel access.
I strongly agree in one point: This max array size thing is a pain. Especially
for generic applications, such as the gateway, it is simply impossible to know
the maximal array length in advance.
Dirk
Kay-Uwe Kasemir wrote:
On Dec 12, 2007, at 01:23 , Heinrich du Toit wrote:
Wouldn't it be nice to specify the EPICS_CA_* values firstly through
functions in the library rather than environment variables only.
I agree, because environment variables can get set who knows where.
It's often preferable to have settings of this kind in
a per-application setup file, and for GUI programs one
should be able to display and change settings via preference pages.
With Java clients, that's possible to some extend:
You can use
System.setProperty("gov.aps.jca.jni.JNIContext.addr_list", "..your
address list..")
programmatically before(!) loading the JCA library,
or place these settings in Java property files.
(Example is for JNI. For CAJ, there are corresponding properties).
-Kay
--
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182
- Replies:
- Re: CA wishlist :) Andrew Johnson
- References:
- CA wishlist :) Heinrich du Toit
- Re: CA wishlist :) Kay-Uwe Kasemir
- Navigate by Date:
- Prev:
vxworks driver 4 realtek 8139? marco_hair
- Next:
Re: CA wishlist :) Andrew Johnson
- 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:
Re: CA wishlist :) Kay-Uwe Kasemir
- Next:
Re: CA wishlist :) Andrew Johnson
- 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
|
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|