Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Autosave config file
From: Abadie Lana <Lana.Abadie@iter.org>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 16 Mar 2011 12:20:25 +0100
Hi all
I would like to know if somebody can help me with autosave utility. 
I have a few questions:
1. in the xxxsaveRestore.cmd 
There is the function save_restoreSet_status_prefix : what is the use of this function since we specify the value of the prefix when calling dbLoadRecords and assigning the proper value to the macro
I tried to out two different values as shown below. The only differences between the two is when I start the ioc, it complains that it could not read status value:

epics> save_restore: Can't connect to all status PV(s)
save_restore: Can't connect to status PV(s) for list 'plc-sample.sav'

### save_restore setup
# status-PV prefix
save_restoreSet_status_prefix("blabla:")

# Use status-PV
save_restoreSet_UseStatusPVs(1)

# Debug-output level
save_restoreSet_Debug(0)

# Ok to save/restore save sets with missing values (no CA connection to PV)?
save_restoreSet_IncompleteSetsOk(1)
# Save dated backup files?
save_restoreSet_DatedBackupFiles(1)

# Number of sequenced backup files to write
save_restoreSet_NumSeqFiles(3)
# Time interval between sequenced backups
save_restoreSet_SeqPeriodInSeconds(300)

# specify where save files should be
set_savefile_path("$(EPICS_AUTOSAVE_VAR)")

# specify what save files should be restored.  Note these files must be
# in the directory specified in set_savefile_path(), or, if that function
# has not been called, from the directory current when iocInit is invoked

# Save files associated with the request files 'auto-output.req' and
# 'auto-input.req'.  These files are the standard way to use autosave

set_pass1_restoreFile("plc-sample.sav")

# specify directories in which to to search for included request files
set_requestfile_path("./")

dbLoadRecords("$(EPICS_MODULES)/autosave/db/save_restoreStatus.db"), "P=TEST-S7-COMM:")


However the PVs related to autosave are there and autosave is working. So where i can see the impact?

2. I would like to check if i understood the policy for autosave generated files - the configuration used is the previous one
-  We have xxx.sav_<date> which says the initial values used when the ioc started : 
- Then it replicates this file to a savX (circular algorithm between .sav, .sav0, sav1)
- .sav has always a backup .savB and copied to .sav sav0 or sav1 every 5mn
- we also use 
create_monitor_set("plc-sample.req",30,"P=TEST-S7-COMM:") ->if a PV changes its value then it will be report on .sav or the most recent one? As i think .sav is the one used for restore



[root@current ~]# ll /var/opt/codac-2.0/autosave/ |grep plc-sample|grep 'Mar 16'
-rw-r--r-- 1 codac codac  392 Mar 16 11:58 plc-sample.sav
-rw-r--r-- 1 codac codac  392 Mar 16 11:57 plc-sample.sav0
-rw-r--r-- 1 codac codac  392 Mar 16 12:02 plc-sample.sav1
-rw-r--r-- 1 codac codac  392 Mar 16 10:53 plc-sample.sav_110316-105306
-rw-r--r-- 1 codac codac  392 Mar 16 11:02 plc-sample.sav_110316-110228
-rw-r--r-- 1 codac codac  392 Mar 16 11:57 plc-sample.sav_110316-115743
-rw-r--r-- 1 codac codac  392 Mar 16 11:52 plc-sample.sav2
-rw-r--r-- 1 codac codac  392 Mar 16 11:58 plc-sample.savB
[root@current ~]#

root@current ~]# ll /var/opt/codac-2.0/autosave/ |grep plc-sample|grep 'Mar 16'
-rw-r--r-- 1 codac codac  371 Mar 16 12:05 plc-sample.sav
-rw-r--r-- 1 codac codac  371 Mar 16 12:12 plc-sample.sav0
-rw-r--r-- 1 codac codac  392 Mar 16 12:02 plc-sample.sav1
-rw-r--r-- 1 codac codac  392 Mar 16 10:53 plc-sample.sav_110316-105306
-rw-r--r-- 1 codac codac  392 Mar 16 11:02 plc-sample.sav_110316-110228
-rw-r--r-- 1 codac codac  392 Mar 16 11:57 plc-sample.sav_110316-115743
-rw-r--r-- 1 codac codac  371 Mar 16 12:07 plc-sample.sav2
-rw-r--r-- 1 codac codac  371 Mar 16 12:05 plc-sample.savB
[root@current ~]#

Many thanks for your feedback and hope I'm clear

Lana


Replies:
Re: Autosave config file Kasemir, Kay
Re: Autosave config file Tim Mooney
Re: Autosave config file Tim Mooney
References:
How to use asyn with linux-GPIB Feng Laurence
How to use asyn with linux-GPIB Feng Laurence
Re: How to use asyn with linux-GPIB Rod Nussbaumer
Re: How to use asyn with linux-GPIB Feng Laurence

Navigate by Date:
Prev: Re: How to use asyn with linux-GPIB Feng Laurence
Next: Re: Autosave config file Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: How to use asyn with linux-GPIB Feng Laurence
Next: Re: Autosave config file Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·