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
338086c2
Commit
338086c2
authored
13 years ago
by
mooney
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
b135281f
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/iocCygwin/areaDetector.cmd
+33
-0
33 additions, 0 deletions
iocBoot/iocCygwin/areaDetector.cmd
with
33 additions
and
0 deletions
iocBoot/iocCygwin/areaDetector.cmd
0 → 100644
+
33
−
0
View file @
338086c2
epicsEnvSet
EPICS_CA_MAX_ARRAY_BYTES
2000100
#
Create
a
simDetector
driver
simDetectorConfig
(
"SIM1"
,
640
,
480
,
1
,
50
,
50000000
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/ADBase.template"
,
"P=xxx:,R=SIM1:cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/simDetector.template"
,
"P=xxx:,R=SIM1:cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1"
)
#
Create
a
second
simDetector
driver
simDetectorConfig
(
"SIM2"
,
300
,
200
,
1
,
50
,
50000000
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/ADBase.template"
,
"P=xxx:,R=SIM1:cam2:,PORT=SIM2,ADDR=0,TIMEOUT=1"
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/simDetector.template"
,
"P=xxx:,R=SIM1: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
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/NDPluginBase.template"
,
"P=xxx:,R=image1:,PORT=SIM1Image,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0"
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/NDStdArrays.template"
,
"P=xxx:,R=image1:,PORT=SIM1Image,ADDR=0,TIMEOUT=1,TYPE=Int8,FTVL=UCHAR,NELEMENTS=1392640"
)
#
Create
a
standard
arrays
plugin
,
set
it
to
get
data
from
second
simDetector
driver
.
NDStdArraysConfigure
(
"SIM2Image"
,
1
,
0
,
"SIM2"
,
0
,
2000000
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/NDPluginBase.template"
,
"P=xxx:,R=image2:,PORT=SIM2Image,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0"
)
dbLoadRecords
(
"$(AREA_DETECTOR)/ADApp/Db/NDStdArrays.template"
,
"P=xxx:,R=image2:,PORT=SIM2Image,ADDR=0,TIMEOUT=1,TYPE=Int8,FTVL=UCHAR,NELEMENTS=1392640"
)
#
Load
the
database
to
use
with
Stephen
Mudie
's IDL code
#dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/EPICS_AD_Viewer.template", "P=xxx:, R=image1:")
# Create a file saving plugin
NDFileNetCDFConfigure("SIM1File", 20, 0, "SIM1", 0)
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDPluginBase.template", "P=xxx:,R=netCDF1:,PORT=SIM1File,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDFile.template", "P=xxx:,R=netCDF1:,PORT=SIM1File,ADDR=0,TIMEOUT=1")
# Create an ROI plugin
NDROIConfigure("SIM1ROI", 20, 0, "SIM1", 0, 8, 20, 20000000)
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDPluginBase.template", "P=xxx:,R=ROI1:, PORT=SIM1ROI,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDROI.template", "P=xxx:,R=ROI1:, PORT=SIM1ROI,ADDR=0,TIMEOUT=1")
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