![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||
|
Hi Matt, On Tue, 18 Jan 2022 at 16:38, Pearson, Matthew via Tech-talk <tech-talk at aps.anl.gov> wrote:
Careful. Your database is perfectly fine. But your Stream record 'setpoint' processes asynchronously, and in that case put_callback returns after the first phase of record processing, i.e. after the request to write the value has been issued. If your device is slow (and you're typing fast) you can execute the 'caget' and fetch the old value before the 'readback' record has been processed. (Add a wait command inside the write protocol to play with this.) Things are different when you set up a camonitor for 'readback'. In that case, the 'setpoint's FLNK processes the 'readback' record, and after the second phase of that processing, the monitor update will be sent. Asynchronously processing records are tricky. FLNK and monitors (i.e., CP input links) are your friends, as they fire after the second phase. The get, put and put_callback operations return after the first phase and may lead to less robust (timing/load dependent) operation. Cheers, ~Ralph
| ||||||||||||||
ANJ, 14 Sep 2022 |
![]() · Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |