g+
g+ Communities
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  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: [CA][waveform]max array bytes on IOC
From: "J. Lewis Muir" <jlmuir@imca-cat.org>
To: Pavel Masloff <pavel.masloff@gmail.com>
Cc: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Fri, 18 May 2012 09:19:54 -0500
On 5/18/12 8:51 AM, Pavel Masloff wrote:
> It is very strange when I manually export the EPICS_CA_MAX_ARRAY_BYTES
> environmental variable on the IOC (export VAR=wahteverval), my waveforms on
> the client are connected.
> When I put this line to /root/.bashrc the client doesn't want to connect my
> waveform PVs....
> 
> What's wrong?

Hi, Pavel.

You need to set EPICS_CA_MAX_ARRAY_BYTES for both the CA server
and the client.  Did you do that?

Also, you're talking about setting EPICS_CA_MAX_ARRAY_BYTES in
/root/.bashrc.  Does that mean you're running the client as
root?  If yes, you need to ensure /root/.bashrc is being read by
bash.  Set EPICS_CA_MAX_ARRAY_BYTES in /root/.bashrc, start a
new shell in the way you normally would, and then execute the
following:

# echo $EPICS_CA_MAX_ARRAY_BYTES

Does that print what you expect?

If you're not running the client as root, then /root/.bashrc is
not the right place to set EPICS_CA_MAX_ARRAY_BYTES.  You either
need to do it for the user running the client, or you need to do
it in the system location (typically somewhere under /etc like
/etc/bashrc) for all users.

Also, for setting environment variables not specific to an
interactive shell, it's better to put that in the "profile" file
(e.g. ~/.bash_profile, ~/.profile, or /etc/profile) so that it's
available for non-interactive shells as well as interactive ones.

Lewis

References:
[CA][waveform]max array bytes on IOC Pavel Masloff

Navigate by Date:
Prev: RE: [EDM] on windows? Steiner, Mathias
Next: RE: [CA][waveform]max array bytes on IOC Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: [CA][waveform]max array bytes on IOC Pavel Masloff
Next: RE: [CA][waveform]max array bytes on IOC Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·