Experimental Physics and
| |||||||||||||||||
|
Dehong Zhang wrote: Hi,
The easiest and closest thing I know of to what you want would be to use autosave to restore the array values. You can do this whether or not autosave is also used to save those values (i.e., you can write an autosave .sav file by hand). Here's an example .sav file that will restore a two-element array, (assuming that autosave is included in the ioc's software). # save/restore V4.9 xxx:myArray @array@ { "1.0" "2.3" } <END> (Note the above file must end with '\n' or "\r\n".) If the above file is named 'myArrays.sav', and is located in the directory, <myIocDir>, you can get autosave to restore it by including the following commands in st.cmd, before iocInit: set_savefile_path("<myIocDir>","") set_pass1_restoreFile("myArrays.sav") Here's a link to the autosave module: http://www.aps.anl.gov/bcda/synApps/autosave/autosave.html -- Tim Mooney ([email protected]) (630)252-5417 Beamline Controls & Data Acquisition Group Advanced Photon Source, Argonne National Lab.
| ||||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |