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  2013  <20142015  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  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: caget.c patch for dynamic array sizing
From: Andrew Johnson <[email protected]>
To: Bruce Hill <[email protected]>, Techtalk <[email protected]>
Date: Mon, 27 Jan 2014 14:56:23 -0600
Hi Bruce,

On 01/24/2014 06:32 PM, Bruce Hill wrote:
> We've been trying to reduce network bandwidth on
> CA image transfers by using ROI to reduce the required
> data, and just noticed that the default for the caget
> command line tool always fetches the full array, even
> if NORD is less than NELM.
> 
> This happens because caget currently defaults to synchronous
> get, and only the -c async option supports dynamic array sizing.
> 
> As async vs sync CA is a subtle distinction that doesn't matter for
> most of our users, I've added an option to our caget to request
> synchronous get and changed the default to async.
> 
> I think this could be useful for the broader community,
> so here's a patch that does this.

I could accept using an environment variable to control the default
asyn/sync behaviour of the caget/caput tools, but I would be concerned
about breaking existing scripts that call them if we were to change
their behaviour without at least allowing sites to easily switch back to
the old default.

My personal preference would be for the catools programs to take
defaults from environment variables like GNU's GREP_OPTIONS variable.
Then it would be up to you to add something like
    export EPICS_CAGET_OPTIONS=-c
to your systems' shell configurations.

Ralph Lange is the maintainer for the catools programs though, so I'm
waiting for a response from him.

- Andrew
-- 
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

Replies:
Re: caget.c patch for dynamic array sizing Ralph Lange
References:
caget.c patch for dynamic array sizing Bruce Hill

Navigate by Date:
Prev: RE: PV for both input AND output Mooney, Tim M.
Next: Re: PV for both input AND output Matteo Pardi
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: caget.c patch for dynamic array sizing Bruce Hill
Next: Re: caget.c patch for dynamic array sizing Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·