git-svn-id: https://subversion.xor.aps.anl.gov/synApps/areaDetector/trunk@15308 dc6c5ff5-0b8b-c028-a01f-ffb33f00fc8b
41 lines
2.1 KiB
Batchfile
Executable File
41 lines
2.1 KiB
Batchfile
Executable File
< envPaths
|
|
errlogInit(20000)
|
|
|
|
dbLoadDatabase("$(AREA_DETECTOR)/dbd/andorCCDApp.dbd")
|
|
andorCCDApp_registerRecordDeviceDriver(pdbbase)
|
|
|
|
epicsEnvSet("PREFIX", "13ANDOR1:")
|
|
epicsEnvSet("PORT", "ANDOR")
|
|
epicsEnvSet("QSIZE", "20")
|
|
epicsEnvSet("XSIZE", "2048")
|
|
epicsEnvSet("YSIZE", "2048")
|
|
epicsEnvSet("NCHANS", "2048")
|
|
|
|
# andorCCDConfig(const char *portName, int maxBuffers, size_t maxMemory,
|
|
# const char *installPath, int priority, int stackSize)
|
|
andorCCDConfig("$(PORT)", 0, 0, "/usr/local/etc/andor/", 0, 100000)
|
|
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/ADBase.template","P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1")
|
|
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDFile.template","P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1")
|
|
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/andorCCD.template", "P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1")
|
|
|
|
# Create a standard arrays plugin
|
|
NDStdArraysConfigure("Image1", 5, 0, "$(PORT)", 0, 0)
|
|
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDPluginBase.template","P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),NDARRAY_ADDR=0")
|
|
# Make NELEMENTS in the following be a little bigger than 2048*2048
|
|
# Use the following command for 32-bit images. This is needed for 32-bit detectors or for 16-bit detectors in acccumulate mode if it would overflow 16 bits
|
|
#dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int32,FTVL=LONG,NELEMENTS=4200000")
|
|
# Use the following command for 16-bit images. This can be used for 16-bit detector as long as accumulate mode would not result in 16-bit overflow
|
|
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int16,FTVL=SHORT,NELEMENTS=4200000")
|
|
|
|
# Load all other plugins using commonPlugins.cmd
|
|
< ../commonPlugins.cmd
|
|
|
|
#asynSetTraceMask("$(PORT)",0,3)
|
|
#asynSetTraceIOMask("$(PORT)",0,4)
|
|
|
|
iocInit()
|
|
|
|
# save things every thirty seconds
|
|
create_monitor_set("auto_settings.req", 30,"P=$(PREFIX),D=cam1:")
|
|
#asynSetTraceMask($(PORT), 0, 255)
|