2020-08-20: This remote has been deprecated. Moved to https://gitlab.esss.lu.se/e3/common/e3-autosave.
We try to enclose most possible autosave configuration within autosave.iocsh
.
Each record in database file that needs to have values saved by autosave
must have the one of following info
tags. Such as
info(autosaveFields, "PREC SCAN DESC OUT")
info(autosaveFields_pass0, "VAL")
info(autosaveFields_pass1, "VAL")
Each info tag should be matched with what one would like to use such as
-
autosaveFields
: before and after record initializationsettings.sav
: in$(AS_TOP)/$(IOCNAME)/save
settings.req
: in$(AS_TOP)/$(IOCNAME)/req
-
autosaveFields_pass0
: before record initializationvalues_pass0.sav
: in$(AS_TOP)/$(IOCNAME)/save
values_pass0.req
: in$(AS_TOP)/$(IOCNAME)/req
-
autosaveFields_pass1
: after record initialization (Most autosave values can be restored at Pass 0 and Pass 1 using theautosaveFields
info tag.)values_pass1.sav
: in$(AS_TOP)/$(IOCNAME)/save
values_pass1.req
: in$(AS_TOP)/$(IOCNAME)/req
Please look at the example in Autosave DB example.
require autosave,5.10.0
epicsEnvSet("TOP", "$(E3_CMD_TOP)/..")
epicsEnvSet("IOCNAME", "as_test")
iocshLoad("$(autosave_DIR)/autosave.iocsh", "AS_TOP=$(TOP),IOCNAME=$(IOCNAME)")
asVerify is avaiable in ${EPICS_BASE}/bin/${EPICS_HOST_ARCH}/asVerify_VERSION
. Once e3 environment is sourced, it can be executable in that terminal. Please see its usage at https://epics.anl.gov/bcda/synApps/autosave/autoSaveRestore_R5-5.html#asVerify
The req files can be used, however, one should copy all req files into db
folder, by TEMPLATE
variable. In order to integrate an IOC, please check README : How to use existent req files. However, it is highly recommended NOT to use this method if possible.
Figure 1 autosave Depdendency Tree. |