Experimental Physics and
| |||||||||||||||
|
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 Attachment:
caput.patch
| ||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |