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
d2829695
Commit
d2829695
authored
20 years ago
by
mooney
Browse files
Options
Downloads
Patches
Plain Diff
new
parent
6506da5d
No related branches found
No related tags found
No related merge requests found
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iocBoot/iocSolaris/softMotor.substitutions
+15
-0
15 additions, 0 deletions
iocBoot/iocSolaris/softMotor.substitutions
iocBoot/iocSolaris/st.cmd
+142
-0
142 additions, 0 deletions
iocBoot/iocSolaris/st.cmd
with
157 additions
and
0 deletions
iocBoot/iocSolaris/softMotor.substitutions
0 → 100644
+
15
−
0
View file @
d2829695
file "$(STD)/stdApp/Db/softMotor.db"
{
pattern
{P, SM}
{xxx:, SM1}
{xxx:, SM2}
{xxx:, SM3}
{xxx:, SM4}
{xxx:, SM5}
{xxx:, SM6}
{xxx:, SM7}
{xxx:, SM8}
{xxx:, SM9}
{xxx:, SM10}
}
This diff is collapsed.
Click to expand it.
iocBoot/iocSolaris/st.cmd
0 → 100644
+
142
−
0
View file @
d2829695
#
vxWorks
startup
script
#
Read
environment
variables
<
envPaths
#
save_restore
.cmd
needs
the
full
path
to
the
startup
directory
,
which
#
envPaths
currently
does
not
provide
epicsEnvSet
(
STARTUP
,
$
(
TOP
)
/iocBoot
/$
(
IOC
))
################################################################################
#
Tell
EPICS
all
about
the
record
types
,
device
-support
modules
,
drivers
,
#
etc
.
in
the
software
we
just
loaded
(
xxx
.munch
)
dbLoadDatabase
(
"../../dbd/iocxxx_solaris.dbd"
)
iocxxx_solaris_registerRecordDeviceDriver
(
pdbbase
)
#
Increase
size
of
buffer
for
error
logging
from
default
1256
errlogInit
(
5000
)
#
debug
sseq
record
#var
sseqRecDebug
,
10
#
need
more
entries
in
wait
/scan-record
channel
-access
queue
?
#var
recDynLinkQsize
,
1024
#
Specify
largest
array
CA
will
transport
#
Note
for
N
sscanRecord
data
points
,
need
(
N
+
1
)*
8
bytes
,
else
MEDM
#
plot
doesn
't display
epicsEnvSet EPICS_CA_MAX_ARRAY_BYTES 64008
### save_restore setup
# We presume a suitable initHook routine was compiled into the executable.
# See also create_monitor_set(), after iocInit() .
< save_restore.cmd
dbLoadRecords("$(TOP)/xxxApp/Db/busy.db", "P=xxx:,B=busy")
# Motors
dbLoadTemplate("softMotor.substitutions")
# interpolation
dbLoadRecords("$(CALC)/calcApp/Db/interp.db", "P=xxx:,N=2000")
### Scan-support software
# crate-resident scan. This executes 1D, 2D, 3D, and 4D scans, and caches
# 1D data, but it doesn'
t
store
anything
to
disk
.
(
See
'saveData'
below
for
that
.
)
dbLoadRecords
(
"$(SSCAN)/sscanApp/Db/scan.db"
,
"P=xxx:,MAXPTS1=4000,MAXPTS2=200,MAXPTS3=10,MAXPTS4=10,MAXPTSH=4000"
)
#
A
set
of
scan
parameters
for
each
positioner
.
This
is
a
convenience
#
for
the
user
.
It
can
contain
an
entry
for
each
scannable
thing
in
the
#
crate
.
dbLoadTemplate
(
"scanParms.substitutions"
)
#
Slits
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/2slit.db"
,
"P=xxx:,SLIT=Slit1V,mXp=m3,mXn=m4"
)
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/2slit.db"
,
"P=xxx:,SLIT=Slit1H,mXp=m5,mXn=m6"
)
#
2
-post
mirror
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/2postMirror.db"
,
"P=xxx:,Q=M1,mDn=m1,mUp=m2,LENGTH=0.3"
)
#
User
filters
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/filterMotor.db"
,
"P=xxx:,Q=fltr1:,MOTOR=m1,LOCK=fltr_1_2:"
)
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/filterMotor.db"
,
"P=xxx:,Q=fltr2:,MOTOR=m2,LOCK=fltr_1_2:"
)
#
Optical
tables
#var
tableRecordDebug
,
1
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/table.db"
,
"P=xxx:,Q=Table1,T=table1,M0X=m1,M0Y=m2,M1Y=m3,M2X=m4,M2Y=m5,M2Z=m6,GEOM=SRI"
)
###
Monochromator
support
###
#
Kohzu
and
PSL
monochromators
:
Bragg
and
theta
/Y/Z
motors
#
standard
geometry
(
geometry
1
)
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/kohzuSeq.db"
,
"P=xxx:,M_THETA=m1,M_Y=m2,M_Z=m3,yOffLo=17.4999,yOffHi=17.5001"
)
#
modified
geometry
(
geometry
2
)
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/kohzuSeq.db"
,
"P=xxx:,M_THETA=m1,M_Y=m2,M_Z=m3,yOffLo=4,yOffHi=36"
)
#
Spherical
grating
monochromator
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/SGM.db"
,
"P=xxx:,N=1,M_x=m1,M_rIn=m2,M_rOut=m3,M_g=m4"
)
#
4
-bounce
high
-resolution
monochromator
#dbLoadRecords
(
"$(OPTICS)/opticsApp/Db/hrSeq.db"
,
"P=xxx:,N=1,M_PHI1=m1,M_PHI2=m2"
)
###
Stuff
for
user
programming
###
dbLoadRecords
(
"$(CALC)/calcApp/Db/userCalcs10.db"
,
"P=xxx:"
)
dbLoadRecords
(
"$(CALC)/calcApp/Db/userStringCalcs10.db"
,
"P=xxx:"
)
dbLoadRecords
(
"$(CALC)/calcApp/Db/userTransforms10.db"
,
"P=xxx:"
)
#
extra
userCalcs
(
must
also
load
userCalcs10
.db
for
the
enable
switch
)
dbLoadRecords
(
"$(CALC)/calcApp/Db/userCalcN.db"
,
"P=xxx:,N=I_Detector"
)
#dbLoadRecords
(
"$(CALC)/calcApp/Db/userAve10.db"
,
"P=xxx:"
)
dbLoadRecords
(
"$(CALC)/calcApp/Db/userCalcOuts10.db"
,
"P=xxx:"
)
#
string
sequence
(
sseq
)
record
dbLoadRecords
(
"$(STD)/stdApp/Db/yySseq.db"
,
"P=xxx:,S=Sseq1"
)
dbLoadRecords
(
"$(STD)/stdApp/Db/yySseq.db"
,
"P=xxx:,S=Sseq2"
)
dbLoadRecords
(
"$(STD)/stdApp/Db/yySseq.db"
,
"P=xxx:,S=Sseq3"
)
#
4
-step
measurement
#dbLoadRecords
(
"$(STD)/stdApp/Db/4step.db"
,
"P=xxx:"
)
###
serial
support
###
#
generic
serial
ports
#dbLoadRecords
(
"$(IP)/ipApp/Db/generic_serial.db"
,
"P=xxx:,C=0,SERVER=serial1"
)
#dbLoadRecords
(
"$(IP)/ipApp/Db/generic_serial.db"
,
"P=xxx:,C=0,SERVER=serial2"
)
#
serial
O
/I
block
(
generic
serial
record
with
format
and
parse
string
calcs
)
#
on
epics
/mpf
processor
#dbLoadRecords
(
"$(IP)/ipApp/Db/serial_OI_block.db"
,
"P=xxx:,N=0_1,C=0,SERVER=serial5"
)
#
on
stand
-alone
mpf
processor
#dbLoadRecords
(
"$(IP)/ipApp/Db/serial_OI_block.db"
,
"P=xxx:,N=1_1,C=0,SERVER=serial5"
)
#
Miscellaneous
PV
's, such as burtResult
dbLoadRecords("$(STD)/stdApp/Db/misc.db","P=xxx:")
###############################################################################
iocInit
### startup State Notation Language programs
#seq &kohzuCtl, "P=xxx:, M_THETA=m1, M_Y=m2, M_Z=m3, GEOM=1, logfile=kohzuCtl.log"
#seq &hrCtl, "P=xxx:, N=1, M_PHI1=m1, M_PHI2=m2, logfile=hrCtl1.log"
### Start up the autosave task and tell it what to do.
# The task is actually named "save_restore".
# Note that you can reload these sets after creating them: e.g.,
# reload_monitor_set("auto_settings.req",30,"P=xxx:")
#
# save positions every five seconds
create_monitor_set("auto_positions.req",5,"P=xxx:")
# save other things every thirty seconds
create_monitor_set("auto_settings.req",30,"P=xxx:")
### Start the saveData task.
# saveData_MessagePolicy
# 0: wait forever for space in message queue, then send message
# 1: send message only if queue is not full
# 2: send message only if queue is not full and specified time has passed (SetCptWait()
# sets this time.)
# 3: if specified time has passed, wait for space in queue, then send message
# else: don'
t
send
message
#var
"debug_saveData"
2
#saveData_MessagePolicy
=
2
#saveData_SetCptWait_ms
(
100
)
saveData_Init
(
"saveData.req"
,
"P=xxx:"
)
#saveData_PrintScanInfo
(
"xxx:scan1"
)
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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