#============================================================== # # Abs: Start the autosave task (for an RTEMS ioc) # # Name: restore.cmd # # Side: load this script after iocInit # # "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 # #============================================================== # # 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 for positions and # every 30 seconds for settings. # Note: You cannot set the last arg to 0. create_monitor_set("info_positions.req", 30) create_monitor_set("info_settings.req", 30) #create_monitor_set("manual.req", 30) # Turn off debug messages save_restoreSet_Debug(0) # Change directory to the TOP of the Application #cd(getenv("TOP")) # End of file