项目作者: icshwi

项目描述 :
ESS Site-specific EPICS module : autosave
高级语言: Shell
项目地址: git://github.com/icshwi/e3-autosave.git
创建时间: 2017-10-20T11:36:42Z
项目社区:https://github.com/icshwi/e3-autosave

开源协议:

下载


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

  1. info(autosaveFields, "PREC SCAN DESC OUT")
  2. info(autosaveFields_pass0, "VAL")
  3. 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

  1. require autosave,5.10.0
  2. epicsEnvSet("TOP", "$(E3_CMD_TOP)/..")
  3. epicsEnvSet("IOCNAME", "as_test")
  4. 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.