Experimental Physics and Industrial Control System
Hello
in order to write a regression test for my latest sequencer bugfix, I need to
persuade CA to respond to a ca_get_callback request with a certain delay, so
that I get a timeout and we can see if the variable recovers as it should.
I know how to do it for ca_put_callback, that's easy. But no matter what I
try, I have not been able to do it for ca_get_callback, i.e. I always get the
callback immediately.
I even went so far as to use a subroutine record with an epicsThreadSleep in
the subroutine (disclaimer: don't try that at home or in a production
system!). Then I caput to the PROC field to let the record process and
immediately after that do the ca_get_callback. I expected the callback to
arrive only after the record no longer holds the scan lock i.e. after the
epicsThreadSleep expires, but this is not the case: I do get the callback
immediately, and not even with an error status.
I am a bit perplexed by this: how can CA get the VAL from the record if
processing is holding the scan lock?
Is there any other way to delay the response to a get request?
Cheers
Ben
--
"Make it so they have to reboot after every typo." ― Scott Adams
________________________________
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: Another strange CA observation Benjamin Franksen
- Navigate by Date:
- Prev:
Re: multiple servers on the same (loopback) interface Jameson Graef Rollins
- Next:
Re: Another strange CA observation Benjamin Franksen
- 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:
New version of STAR EPICS Virtual Machine (July 2013) Jiro Fujita
- Next:
Re: Another strange CA observation Benjamin Franksen
- 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