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: caClient with PCAS
From: [email protected]
To: "Benjamin Franksen" <[email protected]>
Cc: [email protected]
Date: Tue, 26 Feb 2013 10:17:12 -0800 (PST)
Hi Ben,

Thank you for your reply. I have now disabled preemptive callback. I am
using ca_poll to process the CA client and FileDescriptorManager.process
to run the portable channel access server. These are called together in a
single loop. However, once the CA client has attached to a number of
process variables, the CA background activity that runs due to the ca_poll
seems to delay the call to FileDescriptorManager.process too much. This
results in calls to caget for process variables in the portable channel
access server timing out. Is there another way to do this? Also, is there
a way to avoid having the CA client search for process variables on the
portable channel access server, but still look for them on the localhost?

Thank you,
Patrick

> On Monday, February 25, 2013 14:58:36 [email protected] wrote:
>> I think it turns out that the problem was
>> that I actually had preemptive callback enabled and I should not have.
>
> Yes. If you use preemptive callback (i.e. multithreaded CA client) don't
> create a FileDescriptorManager. It is only needed for single-threaded
> clients
> and can be used to centralize the call to select in case the CA client is
> used
> together with other stuff that wants to call select (such as a GUI
> library).
>
> Cheers
> --
> Ben Franksen
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
>
>
> ________________________________
>
> Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
>
> Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher
> Forschungszentren e.V.
>
> Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv.
> Vorsitzende Dr. Beatrix Vierkorn-Rudolph
> Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
>
> Sitz Berlin, AG Charlottenburg, 89 HRB 5583
>
> Postadresse:
> Hahn-Meitner-Platz 1
> D-14109 Berlin
>
> http://www.helmholtz-berlin.de
>
>



Replies:
Re: caClient with PCAS Benjamin Franksen
References:
caClient with PCAS pthomas
Re: caClient with PCAS Xiaoqiang Wang
Re: caClient with PCAS pthomas
Re: caClient with PCAS Benjamin Franksen

Navigate by Date:
Prev: Re: caClient with PCAS Benjamin Franksen
Next: ProcServ patch Bruce Hill
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: caClient with PCAS Benjamin Franksen
Next: Re: caClient with PCAS Benjamin Franksen
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 ·