Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxx-R6-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
synApps_6_1_Working
xxx-R6-1
Commits
49d08940
Commit
49d08940
authored
10 years ago
by
mooney
Browse files
Options
Downloads
Patches
Plain Diff
use doAfterIocInit(). Commented-out example of autosaveBuild
parent
a1b54f91
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iocBoot/iocvxWorks/save_restore.cmd
+24
-10
24 additions, 10 deletions
iocBoot/iocvxWorks/save_restore.cmd
with
24 additions
and
10 deletions
iocBoot/iocvxWorks/save_restore.cmd
+
24
−
10
View file @
49d08940
#
BEGIN
save_restore
.cmd
------------------------------------------------------
#
Debug
-output
level
save_restoreSet_Debug
(
0
)
###
save_restore
setup
#
#
This
file
does
not
require
modification
for
standard
use
,
but
...
#
This
file
does
not
require
modification
for
standard
use
,
other
than
to
#
specify
the
prefix
.
However
...
#
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
,
and
#
call
set_savefile_path
()
with
a
path
as
the
server
sees
it
.
This
currently
#
is
supported
only
on
vxWorks
.
#
If
the
NFS
mount
from
nfsCommands
is
used
,
call
set_savefile_path
()
with
a
#
path
as
mounted
by
that
file
#
That
is
,
do
this
...
#set_savefile_path
(
startup
,
"autosave"
)
# ...
or
this
...
save_restoreSet_NFSHost
(
"oxygen"
,
"164.54.
5
2.
4
"
)
save_restoreSet_NFSHost
(
"oxygen"
,
"164.54.
2
2.
10
"
)
set_savefile_path
(
"/export/oxygen4/MOONEY/epics/synApps/support/xxx/iocBoot/iocvxWorks"
,
"autosave"
)
#
status
PVs
:
default
is
to
use
them
#save_restoreSet_UseStatusPVs
(
1
)
save_restoreSet_status_prefix
(
"xxx:"
)
dbLoadRecords
(
"$(AUTOSAVE)/asApp/Db/save_restoreStatus.db"
,
"P=xxx:, DEAD_SECONDS=5"
)
...
...
@@ -50,8 +46,12 @@ save_restoreSet_CallbackTimeout(-1)
#
in
the
directory
specified
in
set_savefile_path
(),
or
,
if
that
function
#
has
not
been
called
,
from
the
directory
current
when
iocInit
is
invoked
set_pass0_restoreFile
(
"auto_positions.sav"
)
#
Note
doAfterIocInit
()
supplied
by
std
module
.
doAfterIocInit
(
"create_monitor_set('auto_positions.req',5,'P=xxx:')"
)
set_pass0_restoreFile
(
"auto_settings.sav"
)
set_pass1_restoreFile
(
"auto_settings.sav"
)
doAfterIocInit
(
"create_monitor_set('auto_settings.req',30,'P=xxx:')"
)
#
Note
that
you
can
restore
a
.sav
file
without
also
autosaving
to
it
.
#set_pass0_restoreFile
(
"octupole_settings.sav"
)
...
...
@@ -62,7 +62,7 @@ set_pass1_restoreFile("auto_settings.sav")
#
Note
that
the
vxWorks
variables
(
e
.g.
,
'startup'
)
are
from
cdCommands
set_requestfile_path
(
startup
,
""
)
set_requestfile_path
(
startup
,
"autosave"
)
set_requestfile_path
(
"area_detect
or
"
,
"ADApp/Db"
)
set_requestfile_path
(
adc
or
e
,
"ADApp/Db"
)
set_requestfile_path
(
autosave
,
"asApp/Db"
)
set_requestfile_path
(
busy
,
"busyApp/Db"
)
set_requestfile_path
(
calc
,
"calcApp/Db"
)
...
...
@@ -86,4 +86,18 @@ set_requestfile_path(vac, "vacApp/Db")
set_requestfile_path
(
vme
,
"vmeApp/Db"
)
set_requestfile_path
(
top
,
"xxxApp/Db"
)
#
Debug
-output
level
save_restoreSet_Debug
(
0
)
#
Tell
autosave
to
automatically
build
built_settings
.req
and
#
built_positions
.req
from
databases
and
macros
supplied
to
dbLoadRecords
()
#
(
and
dbLoadTemplate
(),
which
calls
dbLoadRecords
())
.
#
This
requires
EPICS
3
.15.1
or
later
,
or
3
.14
patched
as
described
in
#
autosave
R5
-
5
documentation
.
#epicsEnvSet
(
"BUILT_SETTINGS"
,
"built_settings.req"
)
#epicsEnvSet
(
"BUILT_POSITIONS"
,
"built_positions.req"
)
#autosaveBuild
(
"$(BUILT_SETTINGS)"
,
"_settings.req"
,
1
)
#autosaveBuild
(
"$(BUILT_SETTINGS)"
,
".req"
,
1
)
#autosaveBuild
(
"$(BUILT_POSITIONS)"
,
"_positions.req"
,
1
)
#
END
save_restore
.cmd
--------------------------------------------------------
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment