Experimental Physics and
| |||||||||||||||||
|
Hi Marco, On Thu, Jan 19, 2023 at 9:43 AM Marco A. Barra Montevechi Filho <marco.filho at lnls.br> wrote:
'VAL', 'DESC', 'RTYP', 'RBV', 'PREC', 'TWV', 'FOFF', 'VELO', 'STAT', 'SET', 'LLM', 'HLM', 'SPMG', 'LVIO', 'HLS', 'LLS' but will not create PVs on all of the other ~80 fields of the Motor record until you ask for them. If you add a callback (to be clear, on "monitor events") when creating a PV, that will be called when it gets the initial value. So for an `epics.Motor()`, PVs other than those above should get an event with the initial value on PV creation. I also see that writing to the DHLM and DLLM of the Motor Record causes two nearly simultaneous events with the same new value. I don't see that for all other fields, but the motor record is complicated, and setting some values will cause a cascade of events. I suspect that setting DHLM will also set HLM (or maybe LLM if the direction is negative), which might then also update the DHLM value.
General answer: Some things are easier to control than other things. If you first fetch the value of "CNEN" or "DHLM", and then add the callback, you should only see changes from that initial value (all assuming that connections happen in time). I don't know how to get only 1 callback if DHLM is changed. --Matt
| ||||||||||||||||
ANJ, 23 Jan 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |