Skip to content

Fix how to restore Kp, Ki and Saturation parameters

Gabriel Fedel requested to merge ICSHWI-13089 into master

This change aims to fix the issue noticed on Control Room ( https://jira.esss.lu.se/browse/ICSHWI-13089 ) . The issue happens when the IOC is restarted after some of these parameters are set, on this scenario the SP values (e.g Kp), stays with a wrong timestamp and when it is compared with the archived values it seems wrong.

The issue happens because of the way these PVs are set and restored. These PVs has 2 components, I and Q and the users use a "soft" PV that will write to both of them. Before we kept the autosave on the I,Q components and on the input PV and use a fanout to restore the values only on I,Q components, this made the input PV not to be processed when the IOC starts.

To fix this we remove the fanounts and use the PINI = RUNNING, this way the values will be processed after the IOC is started and if there is no autosaved value it will load the default value.

The replacement of the fanouts (present on sis8300llrfrestore, for example) by the PINI = RUNNING should be done for all records but won't be done here, as in some cases there is a need to have the processing happening in a specific order at the startup.

Merge request reports