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
ce4c6ab8
Commit
ce4c6ab8
authored
8 years ago
by
klang
Browse files
Options
Downloads
Patches
Plain Diff
files have changed places since script was made.
parent
351a53fc
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/iocxxx/vxWorks/areaDetector.cmd
+17
-17
17 additions, 17 deletions
iocBoot/iocxxx/vxWorks/areaDetector.cmd
with
17 additions
and
17 deletions
iocBoot/iocxxx/vxWorks/areaDetector.cmd
+
17
−
17
View file @
ce4c6ab8
#
Create
a
simDetector
driver
simDetectorConfig
(
"SIM1"
,
640
,
480
,
1
,
50
,
50000000
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/ADBase.template"
,
"P=$(PREFIX),R=cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/simDetector.template"
,
"P=$(PREFIX),R=cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/ADBase.template"
,
"P=$(PREFIX),R=cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/simDetector.template"
,
"P=$(PREFIX),R=cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1"
)
#
Create
a
second
simDetector
driver
simDetectorConfig
(
"SIM2"
,
300
,
200
,
1
,
50
,
50000000
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/ADBase.template"
,
"P=$(PREFIX),R=cam2:,PORT=SIM2,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/simDetector.template"
,
"P=$(PREFIX),R=cam2:,PORT=SIM2,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/ADBase.template"
,
"P=$(PREFIX),R=cam2:,PORT=SIM2,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/simDetector.template"
,
"P=$(PREFIX),R=cam2:,PORT=SIM2,ADDR=0,TIMEOUT=1"
)
#
Create
a
standard
arrays
plugin
,
set
it
to
get
data
from
first
simDetector
driver
.
NDStdArraysConfigure
(
"SIM1Image"
,
3
,
0
,
"SIM1"
,
0
,
2000000
)
epicsEnvSet
(
"cmd"
,
"P=$(PREFIX),R=image1:,PORT=SIM1Image,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0"
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/NDPluginBase.template"
,
"$(cmd)"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/NDPluginBase.template"
,
"$(cmd)"
)
epicsEnvSet
(
"cmd"
,
"P=$(PREFIX),R=image1:,PORT=SIM1Image,ADDR=0,TIMEOUT=1,TYPE=Int8,FTVL=UCHAR,NELEMENTS=1392640"
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/NDStdArrays.template"
,
"$(cmd)"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/NDStdArrays.template"
,
"$(cmd)"
)
#
Create
a
standard
arrays
plugin
,
set
it
to
get
data
from
second
simDetector
driver
.
NDStdArraysConfigure
(
"SIM2Image"
,
1
,
0
,
"SIM2"
,
0
,
2000000
)
epicsEnvSet
(
"cmd"
,
"P=$(PREFIX),R=image2:,PORT=SIM2Image,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0"
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/NDPluginBase.template"
,
"$(cmd)"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/NDPluginBase.template"
,
"$(cmd)"
)
epicsEnvSet
(
"cmd"
,
"P=$(PREFIX),R=image2:,PORT=SIM2Image,ADDR=0,TIMEOUT=1,TYPE=Int8,FTVL=UCHAR,NELEMENTS=1392640"
)
dbLoadRecords
(
"$(A
REA_DETECT
OR)/ADApp/Db/NDStdArrays.template"
,
"$(cmd)"
)
dbLoadRecords
(
"$(A
DC
OR
E
)/ADApp/Db/NDStdArrays.template"
,
"$(cmd)"
)
#
Load
the
database
to
use
with
Stephen
Mudie
's IDL code
#dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/EPICS_AD_Viewer.template", "P=$(PREFIX), R=image1:")
#dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/EPICS_AD_Viewer.template", "P=$(PREFIX), R=image1:")
# Create a file saving plugin
NDFileNetCDFConfigure("SIM1File", 20, 0, "SIM1", 0)
epicsEnvSet("cmd","P=$(PREFIX),R=netCDF1:,PORT=SIM1File,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDPluginBase.template", "$(cmd)")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDFile.template", "P=$(PREFIX),R=netCDF1:,PORT=SIM1File,ADDR=0,TIMEOUT=1")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDPluginBase.template", "$(cmd)")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDFile.template", "P=$(PREFIX),R=netCDF1:,PORT=SIM1File,ADDR=0,TIMEOUT=1")
# Create an ROI plugin
NDROIConfigure("SIM1ROI", 20, 0, "SIM1", 0, 8, 20, 20000000)
epicsEnvSet("cmd","P=$(PREFIX),R=ROI1:, PORT=SIM1ROI,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDPluginBase.template", "$(cmd)")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDROI.template", "P=$(PREFIX),R=ROI1:, PORT=SIM1ROI,ADDR=0,TIMEOUT=1")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:0:,PORT=SIM1ROI,ADDR=0,TIMEOUT=1,HIST_SIZE=256")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:1:,PORT=SIM1ROI,ADDR=1,TIMEOUT=1,HIST_SIZE=256")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:2:,PORT=SIM1ROI,ADDR=2,TIMEOUT=1,HIST_SIZE=256")
dbLoadRecords("$(A
REA_DETECT
OR)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:3:,PORT=SIM1ROI,ADDR=3,TIMEOUT=1,HIST_SIZE=256")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDPluginBase.template", "$(cmd)")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDROI.template", "P=$(PREFIX),R=ROI1:, PORT=SIM1ROI,ADDR=0,TIMEOUT=1")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:0:,PORT=SIM1ROI,ADDR=0,TIMEOUT=1,HIST_SIZE=256")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:1:,PORT=SIM1ROI,ADDR=1,TIMEOUT=1,HIST_SIZE=256")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:2:,PORT=SIM1ROI,ADDR=2,TIMEOUT=1,HIST_SIZE=256")
dbLoadRecords("$(A
DC
OR
E
)/ADApp/Db/NDROIN.template", "P=$(PREFIX),R=ROI1:3:,PORT=SIM1ROI,ADDR=3,TIMEOUT=1,HIST_SIZE=256")
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