Skip to content
Snippets Groups Projects
Commit 7c29b770 authored by mooney's avatar mooney
Browse files

Split out save_restore.cmd from st.cmd, include the database load in save_restore.cmd

parent 7a9ef40b
No related branches found
No related tags found
No related merge requests found
### save_restore setup ### 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 # status-PV prefix
save_restoreSet_status_prefix("xxx:") save_restoreSet_status_prefix("xxx:")
# Debug-output level # Debug-output level
...@@ -14,11 +21,6 @@ save_restoreSet_NumSeqFiles(3) ...@@ -14,11 +21,6 @@ save_restoreSet_NumSeqFiles(3)
# Time interval between sequenced backups # Time interval between sequenced backups
save_restoreSet_SeqPeriodInSeconds(300) 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 # specify where save files should be
set_savefile_path(startup, "autosave") set_savefile_path(startup, "autosave")
...@@ -32,7 +34,7 @@ set_pass1_restoreFile("auto_settings.sav") ...@@ -32,7 +34,7 @@ set_pass1_restoreFile("auto_settings.sav")
# specify directories in which to to search for included request files # specify directories in which to to search for included request files
set_requestfile_path(startup, "") set_requestfile_path(startup, "")
set_requestfile_path(startup, "autosave") 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(calc, "calcApp/Db")
#set_requestfile_path(camac, "camacApp/Db") #set_requestfile_path(camac, "camacApp/Db")
set_requestfile_path(ccd, "ccdApp/Db") set_requestfile_path(ccd, "ccdApp/Db")
...@@ -49,3 +51,5 @@ set_requestfile_path(quadem, "quadEMApp/Db") ...@@ -49,3 +51,5 @@ set_requestfile_path(quadem, "quadEMApp/Db")
set_requestfile_path(sscan, "sscanApp/Db") set_requestfile_path(sscan, "sscanApp/Db")
set_requestfile_path(std, "stdApp/Db") set_requestfile_path(std, "stdApp/Db")
set_requestfile_path(vme, "vmeApp/Db") set_requestfile_path(vme, "vmeApp/Db")
dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=xxx:")
...@@ -35,8 +35,6 @@ initSerialServer("serial2", "serial2", 1000, 20, "") ...@@ -35,8 +35,6 @@ initSerialServer("serial2", "serial2", 1000, 20, "")
#initSerialServer("serial5","serial5",1000,20,"") #initSerialServer("serial5","serial5",1000,20,"")
#initSerialServer("serial6","serial6",1000,20,"") #initSerialServer("serial6","serial6",1000,20,"")
< save_restore.cmd
# need more entries in wait/scan-record channel-access queue? # need more entries in wait/scan-record channel-access queue?
#var recDynLinkQsize, 1024 #var recDynLinkQsize, 1024
...@@ -45,9 +43,10 @@ initSerialServer("serial2", "serial2", 1000, 20, "") ...@@ -45,9 +43,10 @@ initSerialServer("serial2", "serial2", 1000, 20, "")
# plot doesn't display # plot doesn't display
epicsEnvSet EPICS_CA_MAX_ARRAY_BYTES 64008 epicsEnvSet EPICS_CA_MAX_ARRAY_BYTES 64008
### save_restore ### save_restore setup
#dbLoadRecords("$(AUTOSAVE)asApp/Db/SR_array_test.vdb", "P=xxx:,N=10") # We presume a suitable initHook routine was compiled into the executable.
dbLoadRecords("$(AUTOSAVE)asApp/Db/save_restoreStatus.db", "P=xxx:") # See also create_monitor_set(), after iocInit() .
< save_restore.cmd
# Love Controllers # Love Controllers
#var devLoveDebug,1 #var devLoveDebug,1
......
### save_restore setup ### 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 # status-PV prefix
save_restoreSet_status_prefix("xxx:") save_restoreSet_status_prefix("xxx:")
# Debug-output level # Debug-output level
...@@ -14,11 +21,6 @@ save_restoreSet_NumSeqFiles(3) ...@@ -14,11 +21,6 @@ save_restoreSet_NumSeqFiles(3)
# Time interval between sequenced backups # Time interval between sequenced backups
save_restoreSet_SeqPeriodInSeconds(300) 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 # specify where save files should be
set_savefile_path(startup, "autosave") set_savefile_path(startup, "autosave")
...@@ -32,7 +34,7 @@ set_pass1_restoreFile("auto_settings.sav") ...@@ -32,7 +34,7 @@ set_pass1_restoreFile("auto_settings.sav")
# specify directories in which to to search for included request files # specify directories in which to to search for included request files
set_requestfile_path(startup, "") set_requestfile_path(startup, "")
set_requestfile_path(startup, "autosave") 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(calc, "calcApp/Db")
#set_requestfile_path(camac, "camacApp/Db") #set_requestfile_path(camac, "camacApp/Db")
set_requestfile_path(ccd, "ccdApp/Db") set_requestfile_path(ccd, "ccdApp/Db")
...@@ -49,3 +51,5 @@ set_requestfile_path(quadem, "quadEMApp/Db") ...@@ -49,3 +51,5 @@ set_requestfile_path(quadem, "quadEMApp/Db")
set_requestfile_path(sscan, "sscanApp/Db") set_requestfile_path(sscan, "sscanApp/Db")
set_requestfile_path(std, "stdApp/Db") set_requestfile_path(std, "stdApp/Db")
set_requestfile_path(vme, "vmeApp/Db") set_requestfile_path(vme, "vmeApp/Db")
dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=xxx:")
...@@ -41,8 +41,6 @@ localMessageRouterStart(0) ...@@ -41,8 +41,6 @@ localMessageRouterStart(0)
# This IOC configures the MPF server code locally # This IOC configures the MPF server code locally
#< st_mpfserver.cmd #< st_mpfserver.cmd
< save_restore.cmd
# override address, interrupt vector, etc. information in module_types.h # override address, interrupt vector, etc. information in module_types.h
#module_types() #module_types()
...@@ -60,6 +58,11 @@ putenv "EPICS_CA_MAX_ARRAY_BYTES=64008" ...@@ -60,6 +58,11 @@ putenv "EPICS_CA_MAX_ARRAY_BYTES=64008"
dbLoadDatabase("../../dbd/iocxxxVX.dbd") dbLoadDatabase("../../dbd/iocxxxVX.dbd")
iocxxxVX_registerRecordDeviceDriver(pdbbase) 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 # Insertion-device control
...@@ -143,10 +146,6 @@ oms58Setup(3, 8, 0x4000, 190, 5, 10) ...@@ -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 ### Scalers: Joerger VSC8/16
#dbLoadRecords("$(VME)/vmeApp/Db/Jscaler.db","P=xxx:,S=scaler1,C=0") #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") dbLoadRecords("$(STD)/stdApp/Db/scaler.db","P=xxx:,S=scaler1,C=0,DTYP=Joerger VSC8/16,FREQ=10000000")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment