diff --git a/iocBoot/iocUnix/save_restore.cmd b/iocBoot/iocUnix/save_restore.cmd index 312c393880f2d66a6c75c1d6553aab47ad288a14..f045af64fca14c8d955df4411ccc864ff7c86baa 100644 --- a/iocBoot/iocUnix/save_restore.cmd +++ b/iocBoot/iocUnix/save_restore.cmd @@ -1,4 +1,11 @@ ### save_restore setup +# +# The rest this file does not require modification for standard use, but... +# 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. +# This currently is supported only on vxWorks. +#save_restoreSet_NFSHost("oxygen", "164.54.52.4") + # status-PV prefix save_restoreSet_status_prefix("xxx:") # Debug-output level @@ -14,11 +21,6 @@ save_restoreSet_NumSeqFiles(3) # Time interval between sequenced backups save_restoreSet_SeqPeriodInSeconds(300) -# 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. -# This currently is supported only on vxWorks. -#save_restoreSet_NFSHost("oxygen", "164.54.52.4") - # specify where save files should be set_savefile_path(startup, "autosave") @@ -32,7 +34,7 @@ set_pass1_restoreFile("auto_settings.sav") # specify directories in which to to search for included request files set_requestfile_path(startup, "") set_requestfile_path(startup, "autosave") -set_requestfile_path(autosave, "autosaveApp/Db") +set_requestfile_path(autosave, "asApp/Db") set_requestfile_path(calc, "calcApp/Db") #set_requestfile_path(camac, "camacApp/Db") set_requestfile_path(ccd, "ccdApp/Db") @@ -49,3 +51,5 @@ set_requestfile_path(quadem, "quadEMApp/Db") set_requestfile_path(sscan, "sscanApp/Db") set_requestfile_path(std, "stdApp/Db") set_requestfile_path(vme, "vmeApp/Db") + +dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=xxx:") diff --git a/iocBoot/iocUnix/st.cmd b/iocBoot/iocUnix/st.cmd index 1d88cc7a271accc7f40afd1475652bab7998689f..8c0bace4abd3f285931e3026a3ab6d9929a087f7 100644 --- a/iocBoot/iocUnix/st.cmd +++ b/iocBoot/iocUnix/st.cmd @@ -35,8 +35,6 @@ initSerialServer("serial2", "serial2", 1000, 20, "") #initSerialServer("serial5","serial5",1000,20,"") #initSerialServer("serial6","serial6",1000,20,"") -< save_restore.cmd - # need more entries in wait/scan-record channel-access queue? #var recDynLinkQsize, 1024 @@ -45,9 +43,10 @@ initSerialServer("serial2", "serial2", 1000, 20, "") # plot doesn't display epicsEnvSet EPICS_CA_MAX_ARRAY_BYTES 64008 -### save_restore -#dbLoadRecords("$(AUTOSAVE)asApp/Db/SR_array_test.vdb", "P=xxx:,N=10") -dbLoadRecords("$(AUTOSAVE)asApp/Db/save_restoreStatus.db", "P=xxx:") +### save_restore setup +# We presume a suitable initHook routine was compiled into the executable. +# See also create_monitor_set(), after iocInit() . +< save_restore.cmd # Love Controllers #var devLoveDebug,1 diff --git a/iocBoot/iocvxWorks/save_restore.cmd b/iocBoot/iocvxWorks/save_restore.cmd index 64b0da9ecb199df39712bbedcc39dd9a54ca528c..1e05c96868bfbd374ae2128e59e51d1344a8f9e4 100644 --- a/iocBoot/iocvxWorks/save_restore.cmd +++ b/iocBoot/iocvxWorks/save_restore.cmd @@ -1,4 +1,11 @@ ### save_restore setup +# +# The rest this file does not require modification for standard use, but... +# 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. +# This currently is supported only on vxWorks. +save_restoreSet_NFSHost("oxygen", "164.54.52.4") + # status-PV prefix save_restoreSet_status_prefix("xxx:") # Debug-output level @@ -14,11 +21,6 @@ save_restoreSet_NumSeqFiles(3) # Time interval between sequenced backups save_restoreSet_SeqPeriodInSeconds(300) -# 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. -# This currently is supported only on vxWorks. -save_restoreSet_NFSHost("oxygen", "164.54.52.4") - # specify where save files should be set_savefile_path(startup, "autosave") @@ -32,7 +34,7 @@ set_pass1_restoreFile("auto_settings.sav") # specify directories in which to to search for included request files set_requestfile_path(startup, "") set_requestfile_path(startup, "autosave") -set_requestfile_path(autosave, "autosaveApp/Db") +set_requestfile_path(autosave, "asApp/Db") set_requestfile_path(calc, "calcApp/Db") #set_requestfile_path(camac, "camacApp/Db") set_requestfile_path(ccd, "ccdApp/Db") @@ -49,3 +51,5 @@ set_requestfile_path(quadem, "quadEMApp/Db") set_requestfile_path(sscan, "sscanApp/Db") set_requestfile_path(std, "stdApp/Db") set_requestfile_path(vme, "vmeApp/Db") + +dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=xxx:") diff --git a/iocBoot/iocvxWorks/st.cmd b/iocBoot/iocvxWorks/st.cmd index 89e911aae5f50c5c5ab90b2fca046062d81f5de6..30cf05747fba1ed54dcc2801605d0954b580dae3 100644 --- a/iocBoot/iocvxWorks/st.cmd +++ b/iocBoot/iocvxWorks/st.cmd @@ -41,8 +41,6 @@ localMessageRouterStart(0) # This IOC configures the MPF server code locally #< st_mpfserver.cmd -< save_restore.cmd - # override address, interrupt vector, etc. information in module_types.h #module_types() @@ -60,6 +58,11 @@ putenv "EPICS_CA_MAX_ARRAY_BYTES=64008" dbLoadDatabase("../../dbd/iocxxxVX.dbd") iocxxxVX_registerRecordDeviceDriver(pdbbase) +### save_restore setup +# We presume a suitable initHook routine was compiled into xxx.munch. +# See also create_monitor_set(), after iocInit() . +< save_restore.cmd + ############################################################################## # Insertion-device control @@ -143,10 +146,6 @@ oms58Setup(3, 8, 0x4000, 190, 5, 10) ############################################################################### -### save_restore -dbLoadRecords("$(AUTOSAVE)/asApp/Db/SR_array_test.vdb", "P=xxx:,N=10") -dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=xxx:") - ### Scalers: Joerger VSC8/16 #dbLoadRecords("$(VME)/vmeApp/Db/Jscaler.db","P=xxx:,S=scaler1,C=0") dbLoadRecords("$(STD)/stdApp/Db/scaler.db","P=xxx:,S=scaler1,C=0,DTYP=Joerger VSC8/16,FREQ=10000000")