Porting Over Autosave PVs to new IOCs
Brendan Chandler
13 Aug 2024
Introduction
We are going to split up the BPSC IOCs from one IOC per double sector, into one IOC per PSC. This will cause the IOCs to go from 20 to 200, but should allow faster communication at >100Hz speeds for changing setpoints.
One effect of splitting the IOCs up is that autosave from the old IOC names will not match the new IOC names. For example, the IOC previously named sioc2s02s03bpsc will split into: sioc2s02_1bpsc, sioc2s02_2bpsc, sioc2s02_3bpsc, etc.
Requirements
Two things need to be done:
- Capture existing autosave values, and then apply them to the new IOCs. The new IOCs should store these in their own saverestore system.
- Remove the old IOCs' saverestore directories, since they are no longer used.
Functionality
A small script was written which reads in all the .sav files and sets PVs using values from that file along with the caput executable. A typical session might be done like this:
caput_from_file /net/ajax/iocinfo/saverestore/sioc2s*bpsc/auto_settings.sav