EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Modifications to caput and caget
From: "Walters, M \(Malcolm\)" <[email protected]>
To: <[email protected]>
Date: Wed, 18 Jan 2006 11:56:00 -0000
I have made some changes to the R3.14.7 version of caput to allow me to
test completion of put calls.

This uses the ca_put_callback function and is specified using a new '-c'
command line option for caput. This is the same as for caget.

At the same time I added the option to allow printout of
timestamp/status/severity information in the same way as caget. Since
the '-a' option is already used I have used '-l'.

Hence "caput -c -l my_pv value" will wait for completion (or a timeout),
and report the value, timestamp, status and severity before and after
setting the value.

The timeout option '-w' is used to set how long to wait for completion.
This allows a timeout of 0 to be specified, in this case the function
waits indefinitely for the callback to occur.

While testing this I realised that caget hangs if both '-c' and '-w 0'
are specified. So I have included a patch that makes the caget wait
until all of the callbacks have been called when '-w 0' is specified.

I hope these are useful for other people.

Malcolm

Malcolm Walters
01235 778557
Diamond Light Source Ltd. 
Rutherford Appleton Laboratory,
Chilton, Didcot, Oxfordshire OX11 0QX
[email protected]

Attachment: caget.patch
Description: caget.patch

Attachment: caput.patch
Description: caput.patch


Navigate by Date:
Prev: Re: NTP time server problems Ralph Lange
Next: Linux Driver Problems Darrell Nineham
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Help for EPICS base 3.14.8 Jens Rekow
Next: Linux Driver Problems Darrell Nineham
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024