Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
/ e3-autosave Public archive

ESS Site-specific EPICS module : autosave

Notifications You must be signed in to change notification settings

icshwi/e3-autosave

Repository files navigation

Deprecation notice

2020-08-20: This remote has been deprecated. Moved to https://gitlab.esss.lu.se/e3/common/e3-autosave.

e3-autosave

Autosave settings

We try to enclose most possible autosave configuration within autosave.iocsh.

Preparation of DB

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 initialization

    • settings.sav : in $(AS_TOP)/$(IOCNAME)/save
    • settings.req : in $(AS_TOP)/$(IOCNAME)/req
  • autosaveFields_pass0 : before record initialization

    • values_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 the autosaveFields 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.

How to enable it within e3

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

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

request (req) files

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.

Dependency Plot

autosave dep
Figure 1 autosave Depdendency Tree.