diff --git a/iocBoot/iocvxWorks/save_restore.cmd b/iocBoot/iocvxWorks/save_restore.cmd index 730d0089773c558ea788740c653796f6e4f0d216..b30db24fe762ec95f13fdde7b0d2c460f118b5db 100644 --- a/iocBoot/iocvxWorks/save_restore.cmd +++ b/iocBoot/iocvxWorks/save_restore.cmd @@ -1,28 +1,24 @@ # BEGIN save_restore.cmd ------------------------------------------------------ -# Debug-output level -save_restoreSet_Debug(0) - -### save_restore setup -# -# This file does not require modification for standard use, but... - +# This file does not require modification for standard use, other than to +# specify the prefix. However... # If you want save_restore to manage its own NFS mount, specify the name and # IP address of the file server to which save files should be written, and # call set_savefile_path() with a path as the server sees it. This currently # is supported only on vxWorks. # If the NFS mount from nfsCommands is used, call set_savefile_path() with a # path as mounted by that file + # That is, do this... #set_savefile_path(startup, "autosave") + # ... or this... -save_restoreSet_NFSHost("oxygen", "164.54.52.4") +save_restoreSet_NFSHost("oxygen", "164.54.22.10") set_savefile_path("/export/oxygen4/MOONEY/epics/synApps/support/xxx/iocBoot/iocvxWorks", "autosave") # status PVs: default is to use them #save_restoreSet_UseStatusPVs(1) - save_restoreSet_status_prefix("xxx:") dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=xxx:, DEAD_SECONDS=5") @@ -50,8 +46,12 @@ save_restoreSet_CallbackTimeout(-1) # in the directory specified in set_savefile_path(), or, if that function # has not been called, from the directory current when iocInit is invoked set_pass0_restoreFile("auto_positions.sav") +# Note doAfterIocInit() supplied by std module. +doAfterIocInit("create_monitor_set('auto_positions.req',5,'P=xxx:')") + set_pass0_restoreFile("auto_settings.sav") set_pass1_restoreFile("auto_settings.sav") +doAfterIocInit("create_monitor_set('auto_settings.req',30,'P=xxx:')") # Note that you can restore a .sav file without also autosaving to it. #set_pass0_restoreFile("octupole_settings.sav") @@ -62,7 +62,7 @@ set_pass1_restoreFile("auto_settings.sav") # Note that the vxWorks variables (e.g., 'startup') are from cdCommands set_requestfile_path(startup, "") set_requestfile_path(startup, "autosave") -set_requestfile_path("area_detector", "ADApp/Db") +set_requestfile_path(adcore, "ADApp/Db") set_requestfile_path(autosave, "asApp/Db") set_requestfile_path(busy, "busyApp/Db") set_requestfile_path(calc, "calcApp/Db") @@ -86,4 +86,18 @@ set_requestfile_path(vac, "vacApp/Db") set_requestfile_path(vme, "vmeApp/Db") set_requestfile_path(top, "xxxApp/Db") +# Debug-output level +save_restoreSet_Debug(0) + +# Tell autosave to automatically build built_settings.req and +# built_positions.req from databases and macros supplied to dbLoadRecords() +# (and dbLoadTemplate(), which calls dbLoadRecords()). +# This requires EPICS 3.15.1 or later, or 3.14 patched as described in +# autosave R5-5 documentation. +#epicsEnvSet("BUILT_SETTINGS", "built_settings.req") +#epicsEnvSet("BUILT_POSITIONS", "built_positions.req") +#autosaveBuild("$(BUILT_SETTINGS)", "_settings.req", 1) +#autosaveBuild("$(BUILT_SETTINGS)", ".req", 1) +#autosaveBuild("$(BUILT_POSITIONS)", "_positions.req", 1) + # END save_restore.cmd --------------------------------------------------------