#============================================================== # # Abs: Start the autosave task # # Name: start_restore.cmd # # Side: load this script after iocInit # # Upon entry this script expects the following # macros must be defined: # # TOP - path to TOP of application # # "In the lore that has built up around autosave, # PV's that should be restored only before record # initialization have been termed "positions". # All other PV's have been termed "settings". # # Thus, you might run across a file called # 'auto_positions.req', and now you'll know that # the parameters in this file are intended to be # restored only during autosave's pass-0." # - from autosave documentation # # This script expects the following # macros tobe defined upon entry: # a) TOP - Enviroment varilable for path to top of IOC Application # b) /data - NFS Mount for IOC data directory # c) the status prefix has been set for autosave # d) the request and save files locations have been dset # e) the save_restoreStatus.db has been loaded # # Facility: Temperature Controls # # Auth: 30-Nov-2010, Kristi Luchini (LUCHINI) # Rev: dd-mmm-yyyy, Reviewer's Name (USERNAME) #-------------------------------------------------------------- # Mod: # dd-mmm-yyyy, First Lastname (USERNAME): # comment # #============================================================== # # Wait before building autosave files epicsThreadSleep(1) # Generate the autosave PV list (Takes FOREVER!!!) chdir("/data/autosave-req") iocshCmd("makeAutosaveFiles()") # Start the save_restore task # save change on monitor, but no faster # than every 5 seconds. # Note: You cannot set the last arg to 0. create_monitor_set("info_positions.req", 5 ) create_monitor_set("info_settings.req" , 5 ) # Turn off debug messages save_restoreSet_Debug(0) # Change directory to the TOP of the Application chdir(getenv("TOP")) # End of script