From 13fbaf475d4682e701265fd580ef856fb1ceb927 Mon Sep 17 00:00:00 2001 From: Mark Rivers Date: Thu, 19 Mar 2015 12:59:03 -0500 Subject: [PATCH] Changes for ADCore R2-2 --- iocs/andorIOC/iocBoot/iocAndor/st.cmd | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/iocs/andorIOC/iocBoot/iocAndor/st.cmd b/iocs/andorIOC/iocBoot/iocAndor/st.cmd index 516584e..89a37bf 100755 --- a/iocs/andorIOC/iocBoot/iocAndor/st.cmd +++ b/iocs/andorIOC/iocBoot/iocAndor/st.cmd @@ -10,14 +10,16 @@ epicsEnvSet("QSIZE", "20") epicsEnvSet("XSIZE", "2048") epicsEnvSet("YSIZE", "2048") epicsEnvSet("NCHANS", "2048") +# The maximum number of frames buffered in the NDPluginCircularBuff plugin +epicsEnvSet("CBUFFS", "500") +# The search path for database files +epicsEnvSet("EPICS_DB_INCLUDE_PATH", "$(ADCORE)/db") # andorCCDConfig(const char *portName, const char *installPath, int shamrockID, # int maxBuffers, size_t maxMemory, int priority, int stackSize) #andorCCDConfig("$(PORT)", "/usr/local/etc/andor/", 0, 0, 0, 0 ,0) andorCCDConfig("$(PORT)", "", 0, 0, 0, 0, 0) -dbLoadRecords("$(ADCORE)/db/ADBase.template","P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1") -dbLoadRecords("$(ADCORE)/db/NDFile.template","P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1") dbLoadRecords("$(ADANDOR)/db/andorCCD.template", "P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1") # Comment out the following lines if there is no Shamrock spectrograph @@ -27,12 +29,11 @@ dbLoadRecords("$(ADANDOR)/db/shamrock.template", "P=$(PREFIX),R=sham1:,PORT=SR # Create a standard arrays plugin NDStdArraysConfigure("Image1", 5, 0, "$(PORT)", 0, 0) -dbLoadRecords("$(ADCORE)/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("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int32,FTVL=LONG,NELEMENTS=4200000") +#dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),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("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int16,FTVL=SHORT,NELEMENTS=4200000") +dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int16,FTVL=SHORT,NELEMENTS=4200000") # Load all other plugins using commonPlugins.cmd < $(ADCORE)/iocBoot/commonPlugins.cmd