![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
Hi Alfio, On Mon, Sep 9, 2019 at 10:08 AM Alfio Rizzo via Tech-talk <[email protected]> wrote:
Hm, I think this is mostly a timing issue, but we could try to make this better. Basically, in the first variation, the PV never asked for its CTRL fields, so it does not know what they are. When you ask for the units (or any other CTRL fields), it goes and fetches all of them (once) and includes those in the monitor callback. So doing mypv = epics.PV(pvname) mypv.get_ctrlvars() mypyv.add_callback(onChanges) is probably the best way to get the units into your callback. If you expect that the units might actually change, you should create the PV with `form='ctrl'` as Eric suggested. Hope that helps, --Matt
| ||||||||||||||||
ANJ, 09 Sep 2019 |
![]() · Download · Search · IRMIS · Talk · Documents · Links · Licensing · |