-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevice.cmd
More file actions
executable file
·27 lines (21 loc) · 853 Bytes
/
device.cmd
File metadata and controls
executable file
·27 lines (21 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Standard configuration for Pilatus4 detector based on ADEiger.
#
# Configuration parameters:
#
# $(PREFIX)
# Prefix for all PVs.
# Register all support components
dbLoadDatabase("$(TOP)/dbd/Eiger.dbd")
Eiger_registerRecordDeviceDriver(pdbbase)
# Define detector driver port
epicsEnvSet("PORT", "PIL4")
# Include ADCore to path for loading its databases relatively
epicsEnvSet("EPICS_DB_INCLUDE_PATH", "$(ADCORE)/db:$(ADEIGER)/db")
# Configure connection to detector
eigerDetectorConfig("$(PORT)", "$(IP_ADDRESS)", 0, 0)
# Load device general records from ADEiger
dbLoadRecords("$(ADEIGER)/db/pilatus4.template", "P=$(PREFIX), R=cam1:, PORT=$(PORT), ADDR=0, TIMEOUT=1")
# Trace error and warning messages
asynSetTraceMask("$(PORT)", 0, ERROR | WARNING)
# Use larger callback queue to account for the high number of PVs
callbackSetQueueSize(5000)