#!../../bin/linux-x86_64/eigerDetectorApp
< envPaths
epicsEnvSet("IOC","iocEiger")
epicsEnvSet("TOP","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADEiger/iocs/eigerIOC")
epicsEnvSet("ADEIGER","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADEiger/iocs/eigerIOC/../..")
epicsEnvSet("SUPPORT","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support")
epicsEnvSet("ASYN","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/asyn4-37")
epicsEnvSet("AREA_DETECTOR","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector")
epicsEnvSet("ADSUPPORT","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADSupport")
epicsEnvSet("ADCORE","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore")
epicsEnvSet("AUTOSAVE","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/autosave-R5-10")
epicsEnvSet("BUSY","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/busy-R1-7-2")
epicsEnvSet("CALC","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/calc-R3-7-3")
epicsEnvSet("SNCSEQ","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/seq-2-2-6")
epicsEnvSet("SSCAN","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/sscan-R2-11-3")
epicsEnvSet("DEVIOCSTATS","/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/iocStats-3-1-16")
epicsEnvSet("EPICS_BASE","/usr/local/CXLS_SW/EPICS7/base-7.0.3.1")
errlogInit(20000)
dbLoadDatabase("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADEiger/iocs/eigerIOC/dbd/eigerDetectorApp.dbd")
eigerDetectorApp_registerRecordDeviceDriver(pdbbase)
epicsEnvSet("PREFIX", "EIG1:")
epicsEnvSet("PORT", "EIG")
epicsEnvSet("QSIZE", "20")
epicsEnvSet("XSIZE", "2068")
epicsEnvSet("YSIZE", "2162")
epicsEnvSet("NCHANS", "2048")
epicsEnvSet("CBUFFS", "500")
epicsEnvSet("EIGERIP", "10.212.49.211")
epicsEnvSet("EPICS_DB_INCLUDE_PATH", "/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db")
epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "100000000")
eigerDetectorConfig("EIG", "10.212.49.211", 0, 0)
RestApi::get: [param=description] server returned error code 404
2020/03/05 15:11:30.912 Param[DESCRIPTION]::baseFetch: [param=description] unable to parse json response
[]
2020/03/05 15:11:30.912 Param[DESCRIPTION]::fetch<string>: [param=DESCRIPTION] underlying baseFetch failed
2020/03/05 15:11:30.912 eigerDetector::eigerDetector: Eiger seems to be uninitialized
Initializing... (may take a while)
RestApi::get: [param=description] server returned error code 404
2020/03/05 15:12:17.810 Param[DESCRIPTION]::baseFetch: [param=description] unable to parse json response
[]
2020/03/05 15:12:17.810 Param[DESCRIPTION]::fetch<string>: [param=DESCRIPTION] underlying baseFetch failed
RestApi::get: [param=link_0] server returned error code 404
2020/03/05 15:12:17.908 Param[LINK_0]::baseFetch: [param=link_0] unable to parse json response
[]
2020/03/05 15:12:17.908 Param[LINK_0]::fetch<int>: [param=LINK_0] underlying baseFetch failed
RestApi::get: [param=link_1] server returned error code 404
2020/03/05 15:12:17.912 Param[LINK_1]::baseFetch: [param=link_1] unable to parse json response
[]
2020/03/05 15:12:17.912 Param[LINK_1]::fetch<int>: [param=LINK_1] underlying baseFetch failed
RestApi::get: [param=link_2] server returned error code 404
2020/03/05 15:12:17.916 Param[LINK_2]::baseFetch: [param=link_2] unable to parse json response
[]
2020/03/05 15:12:17.916 Param[LINK_2]::fetch<int>: [param=LINK_2] underlying baseFetch failed
RestApi::get: [param=link_3] server returned error code 404
2020/03/05 15:12:17.919 Param[LINK_3]::baseFetch: [param=link_3] unable to parse json response
[]
2020/03/05 15:12:17.919 Param[LINK_3]::fetch<int>: [param=LINK_3] underlying baseFetch failed
RestApi::get: [param=builder/dcu_buffer_free] server returned error code 404
2020/03/05 15:12:17.922 Param[DCU_BUF_FREE]::baseFetch: [param=builder/dcu_buffer_free] unable to parse json response
[]
2020/03/05 15:12:17.922 Param[DCU_BUF_FREE]::fetch<double>: [param=DCU_BUF_FREE] underlying baseFetch failed
RestApi::get: [param=buffer_free] server returned error code 404
2020/03/05 15:12:18.019 Param[FW_FREE]::baseFetch: [param=buffer_free] unable to parse json response
[]
2020/03/05 15:12:18.019 Param[FW_FREE]::fetch<int>: [param=FW_FREE] underlying baseFetch failed
RestApi::get: [param=state] server returned error code 404
2020/03/05 15:12:18.023 Param[MONITOR_STATE]::baseFetch: [param=state] unable to parse json response
[]
2020/03/05 15:12:18.023 Param[MONITOR_STATE]::fetch<string>: [param=MONITOR_STATE] underlying baseFetch failed
2020/03/05 15:12:18.701 eigerDetector::eigerDetector: unable to set detector parameters
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADEiger/iocs/eigerIOC/../../db/eiger.template", "P=EIG1:,R=cam1:,PORT=EIG,ADDR=0,TIMEOUT=1")
Can't set "EIG1:cam1:FWNamePattern.VAL" to "series_$id" Error (512,512)
Error at or before ")" in file "/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADEiger/iocs/eigerIOC/../../db/eiger.template" line 206
# Debug
#asynSetTraceMask("$(PORT)", 0, 0x11)
# Create a standard arrays plugin
NDStdArraysConfigure("Image1", 5, 0, "EIG", 0, 0)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDStdArrays.template", "P=EIG1:,R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int32,FTVL=LONG,NELEMENTS=4471016, NDARRAY_PORT=EIG")
NDStdArraysConfigure("Image2", 5, 0, "EIG", 1, 0)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDStdArrays.template", "P=EIG1:,R=image2:,PORT=Image2,ADDR=0,TIMEOUT=1,TYPE=Int32,FTVL=LONG,NELEMENTS=4471016, NDARRAY_PORT=EIG")
# Load all other plugins using commonPlugins.cmd
< /usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/iocBoot/commonPlugins.cmd
# This is an example file for creating plugins
# It uses the following environment variable macros
# Many of the parameters defined in this file are also in commonPlugins_settings.req so if autosave is being
# use the autosave value will replace the value passed to this file.
# $(PREFIX) Prefix for all records
# $(PORT) The port name for the detector. In autosave.
# $(QSIZE) The queue size for all plugins. In autosave.
# $(XSIZE) The maximum image width; used to set the maximum size for row profiles in the NDPluginStats plugin and 1-D FFT
# profiles in NDPluginFFT.
# $(YSIZE) The maximum image height; used to set the maximum size for column profiles in the NDPluginStats plugin
# $(NCHANS) The maximum number of time series points in the NDPluginStats, NDPluginROIStats, and NDPluginAttribute plugins
# $(CBUFFS) The maximum number of frames buffered in the NDPluginCircularBuff plugin
# $(MAX_THREADS) The maximum number of threads for plugins which can run in multiple threads. Defaults to 5.
# Create a netCDF file saving plugin
NDFileNetCDFConfigure("FileNetCDF1", 20, 0, "EIG", 0)
dbLoadRecords("NDFileNetCDF.template","P=EIG1:,R=netCDF1:,PORT=FileNetCDF1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create a TIFF file saving plugin
NDFileTIFFConfigure("FileTIFF1", 20, 0, "EIG", 0)
dbLoadRecords("NDFileTIFF.template", "P=EIG1:,R=TIFF1:,PORT=FileTIFF1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create a JPEG file saving plugin
NDFileJPEGConfigure("FileJPEG1", 20, 0, "EIG", 0)
dbLoadRecords("NDFileJPEG.template", "P=EIG1:,R=JPEG1:,PORT=FileJPEG1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create a NeXus file saving plugin
NDFileNexusConfigure("FileNexus1", 20, 0, "EIG", 0)
dbLoadRecords("NDFileNexus.template", "P=EIG1:,R=Nexus1:,PORT=FileNexus1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create an HDF5 file saving plugin
NDFileHDF5Configure("FileHDF1", 20, 0, "EIG", 0)
dbLoadRecords("NDFileHDF5.template", "P=EIG1:,R=HDF1:,PORT=FileHDF1,ADDR=0,TIMEOUT=1,XMLSIZE=2048,NDARRAY_PORT=EIG")
# Create a Magick file saving plugin
#NDFileMagickConfigure("FileMagick1", $(QSIZE), 0, "$(PORT)", 0)
#dbLoadRecords("NDFileMagick.template","P=$(PREFIX),R=Magick1:,PORT=FileMagick1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT)")
# Create 4 ROI plugins
NDROIConfigure("ROI1", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDROI.template", "P=EIG1:,R=ROI1:, PORT=ROI1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
NDROIConfigure("ROI2", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDROI.template", "P=EIG1:,R=ROI2:, PORT=ROI2,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
NDROIConfigure("ROI3", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDROI.template", "P=EIG1:,R=ROI3:, PORT=ROI3,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
NDROIConfigure("ROI4", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDROI.template", "P=EIG1:,R=ROI4:, PORT=ROI4,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create 8 ROIStat plugins
NDROIStatConfigure("ROISTAT1", 20, 0, "EIG", 0, 8, 0, 0, 0, 0, 5)
dbLoadRecords("NDROIStat.template", "P=EIG1:,R=ROIStat1: ,PORT=ROISTAT1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:1:,PORT=ROISTAT1,ADDR=0,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:2:,PORT=ROISTAT1,ADDR=1,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:3:,PORT=ROISTAT1,ADDR=2,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:4:,PORT=ROISTAT1,ADDR=3,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:5:,PORT=ROISTAT1,ADDR=4,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:6:,PORT=ROISTAT1,ADDR=5,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:7:,PORT=ROISTAT1,ADDR=6,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDROIStatN.template", "P=EIG1:,R=ROIStat1:8:,PORT=ROISTAT1,ADDR=7,TIMEOUT=1,NCHANS=2048")
# Create a processing plugin
NDProcessConfigure("PROC1", 20, 0, "EIG", 0, 0, 0)
dbLoadRecords("NDProcess.template", "P=EIG1:,R=Proc1:, PORT=PROC1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create a TIFF file plugin to read dark and flatfield images into the processing plugin
NDFileTIFFConfigure("PROC1TIFF", 20, 0, "EIG", 0)
dbLoadRecords("NDFileTIFF.template", "P=EIG1:,R=Proc1:TIFF:,PORT=PROC1TIFF,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create a scatter plugin
NDScatterConfigure("SCATTER1", 20, 0, "EIG", 0, 0, 0)
dbLoadRecords("NDScatter.template", "P=EIG1:,R=Scatter1:, PORT=SCATTER1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create a gather plugin with 8 ports
NDGatherConfigure("GATHER1", 20, 0, 8, 0, 0)
dbLoadRecords("NDGather.template", "P=EIG1:,R=Gather1:, PORT=GATHER1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=1, PORT=GATHER1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=2, PORT=GATHER1,ADDR=1,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=3, PORT=GATHER1,ADDR=2,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=4, PORT=GATHER1,ADDR=3,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=5, PORT=GATHER1,ADDR=4,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=6, PORT=GATHER1,ADDR=5,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=7, PORT=GATHER1,ADDR=6,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDGatherN.template", "P=EIG1:,R=Gather1:, N=8, PORT=GATHER1,ADDR=7,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create 5 statistics plugins
NDStatsConfigure("STATS1", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDStats.template", "P=EIG1:,R=Stats1:, PORT=STATS1,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=2068,YSIZE=2162,NCHANS=2048,NDARRAY_PORT=EIG")
NDTimeSeriesConfigure("STATS1_TS", 20, 0, "STATS1", 1, 23)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDTimeSeries.template", "P=EIG1:,R=Stats1:TS:, PORT=STATS1_TS,ADDR=0,TIMEOUT=1,NDARRAY_PORT=STATS1,NDARRAY_ADDR=1,NCHANS=2048,ENABLED=1")
NDStatsConfigure("STATS2", 20, 0, "ROI1", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDStats.template", "P=EIG1:,R=Stats2:, PORT=STATS2,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=2068,YSIZE=2162,NCHANS=2048,NDARRAY_PORT=EIG")
NDTimeSeriesConfigure("STATS2_TS", 20, 0, "STATS2", 1, 23)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDTimeSeries.template", "P=EIG1:,R=Stats2:TS:, PORT=STATS2_TS,ADDR=0,TIMEOUT=1,NDARRAY_PORT=STATS2,NDARRAY_ADDR=1,NCHANS=2048,ENABLED=1")
NDStatsConfigure("STATS3", 20, 0, "ROI2", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDStats.template", "P=EIG1:,R=Stats3:, PORT=STATS3,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=2068,YSIZE=2162,NCHANS=2048,NDARRAY_PORT=EIG")
NDTimeSeriesConfigure("STATS3_TS", 20, 0, "STATS3", 1, 23)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDTimeSeries.template", "P=EIG1:,R=Stats3:TS:, PORT=STATS3_TS,ADDR=0,TIMEOUT=1,NDARRAY_PORT=STATS3,NDARRAY_ADDR=1,NCHANS=2048,ENABLED=1")
NDStatsConfigure("STATS4", 20, 0, "ROI3", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDStats.template", "P=EIG1:,R=Stats4:, PORT=STATS4,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=2068,YSIZE=2162,NCHANS=2048,NDARRAY_PORT=EIG")
NDTimeSeriesConfigure("STATS4_TS", 20, 0, "STATS4", 1, 23)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDTimeSeries.template", "P=EIG1:,R=Stats4:TS:, PORT=STATS4_TS,ADDR=0,TIMEOUT=1,NDARRAY_PORT=STATS4,NDARRAY_ADDR=1,NCHANS=2048,ENABLED=1")
NDStatsConfigure("STATS5", 20, 0, "ROI4", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDStats.template", "P=EIG1:,R=Stats5:, PORT=STATS5,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=2068,YSIZE=2162,NCHANS=2048,NDARRAY_PORT=EIG")
NDTimeSeriesConfigure("STATS5_TS", 20, 0, "STATS5", 1, 23)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDTimeSeries.template", "P=EIG1:,R=Stats5:TS:, PORT=STATS5_TS,ADDR=0,TIMEOUT=1,NDARRAY_PORT=STATS5,NDARRAY_ADDR=1,NCHANS=2048,ENABLED=1")
# Create a transform plugin
NDTransformConfigure("TRANS1", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDTransform.template", "P=EIG1:,R=Trans1:, PORT=TRANS1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create an overlay plugin with 8 overlays
NDOverlayConfigure("OVER1", 20, 0, "EIG", 0, 8, 0, 0, 0, 0, 5)
dbLoadRecords("NDOverlay.template", "P=EIG1:,R=Over1:, PORT=OVER1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:1:,NAME=ROI1, SHAPE=1,O=Over1:,XPOS=EIG1:ROI1:MinX_RBV,YPOS=EIG1:ROI1:MinY_RBV,XSIZE=EIG1:ROI1:SizeX_RBV,YSIZE=EIG1:ROI1:SizeY_RBV,PORT=OVER1,ADDR=0,TIMEOUT=1")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:2:,NAME=ROI2, SHAPE=1,O=Over1:,XPOS=EIG1:ROI2:MinX_RBV,YPOS=EIG1:ROI2:MinY_RBV,XSIZE=EIG1:ROI2:SizeX_RBV,YSIZE=EIG1:ROI2:SizeY_RBV,PORT=OVER1,ADDR=1,TIMEOUT=1")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:3:,NAME=ROI3, SHAPE=1,O=Over1:,XPOS=EIG1:ROI3:MinX_RBV,YPOS=EIG1:ROI3:MinY_RBV,XSIZE=EIG1:ROI3:SizeX_RBV,YSIZE=EIG1:ROI3:SizeY_RBV,PORT=OVER1,ADDR=2,TIMEOUT=1")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:4:,NAME=ROI4, SHAPE=1,O=Over1:,XPOS=EIG1:ROI4:MinX_RBV,YPOS=EIG1:ROI4:MinY_RBV,XSIZE=EIG1:ROI4:SizeX_RBV,YSIZE=EIG1:ROI4:SizeY_RBV,PORT=OVER1,ADDR=3,TIMEOUT=1")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:5:,NAME=Cursor1,SHAPE=1,O=Over1:,XPOS=junk, YPOS=junk, XSIZE=junk, YSIZE=junk, PORT=OVER1,ADDR=4,TIMEOUT=1")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:6:,NAME=Cursor2,SHAPE=1,O=Over1:,XPOS=junk, YPOS=junk, XSIZE=junk, YSIZE=junk, PORT=OVER1,ADDR=5,TIMEOUT=1")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:7:,NAME=Box1, SHAPE=1,O=Over1:,XPOS=junk, YPOS=junk, XSIZE=junk, YSIZE=junk, PORT=OVER1,ADDR=6,TIMEOUT=1")
dbLoadRecords("NDOverlayN.template","P=EIG1:,R=Over1:8:,NAME=Box2, SHAPE=1,O=Over1:,XPOS=junk, YPOS=junk, XSIZE=junk, YSIZE=junk, PORT=OVER1,ADDR=7,TIMEOUT=1")
# Create 2 color conversion plugins
NDColorConvertConfigure("CC1", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDColorConvert.template", "P=EIG1:,R=CC1:, PORT=CC1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
NDColorConvertConfigure("CC2", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDColorConvert.template", "P=EIG1:,R=CC2:, PORT=CC2,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create a circular buffer plugin
NDCircularBuffConfigure("CB1", 20, 0, "EIG", 0, 500, 0)
dbLoadRecords("NDCircularBuff.template", "P=EIG1:,R=CB1:, PORT=CB1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=EIG")
# Create an NDAttribute plugin with 8 attributes
NDAttrConfigure("ATTR1", 20, 0, "EIG", 0, 8, 0, 0, 0)
dbLoadRecords("NDAttribute.template", "P=EIG1:,R=Attr1:, PORT=ATTR1,ADDR=0,TIMEOUT=1,NCHANS=2048,NDARRAY_PORT=EIG")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:1:, PORT=ATTR1,ADDR=0,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:2:, PORT=ATTR1,ADDR=1,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:3:, PORT=ATTR1,ADDR=2,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:4:, PORT=ATTR1,ADDR=3,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:5:, PORT=ATTR1,ADDR=4,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:6:, PORT=ATTR1,ADDR=5,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:7:, PORT=ATTR1,ADDR=6,TIMEOUT=1,NCHANS=2048")
dbLoadRecords("NDAttributeN.template", "P=EIG1:,R=Attr1:8:, PORT=ATTR1,ADDR=7,TIMEOUT=1,NCHANS=2048")
NDTimeSeriesConfigure("ATTR1_TS", 20, 0, "ATTR1", 1, 8)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/db/NDTimeSeries.template", "P=EIG1:,R=Attr1:TS:, PORT=ATTR1_TS,ADDR=0,TIMEOUT=1,NDARRAY_PORT=ATTR1,NDARRAY_ADDR=1,NCHANS=2048,ENABLED=1")
# Create an FFT plugin
NDFFTConfigure("FFT1", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDFFT.template", "P=EIG1:, R=FFT1:, PORT=FFT1, ADDR=0, TIMEOUT=1, NDARRAY_PORT=EIG, NAME=FFT1, NCHANS=2068")
# Create 2 Codec plugins
NDCodecConfigure("CODEC1", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDCodec.template", "P=EIG1:, R=Codec1:, PORT=CODEC1, ADDR=0, TIMEOUT=1, NDARRAY_PORT=EIG")
NDCodecConfigure("CODEC2", 20, 0, "EIG", 0, 0, 0, 0, 0, 5)
dbLoadRecords("NDCodec.template", "P=EIG1:, R=Codec2:, PORT=CODEC2, ADDR=0, TIMEOUT=1, NDARRAY_PORT=EIG")
set_requestfile_path("./")
set_requestfile_path("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/ADApp/Db")
set_requestfile_path("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADCore/iocBoot")
set_savefile_path("./autosave")
set_pass0_restoreFile("auto_settings.sav")
set_pass1_restoreFile("auto_settings.sav")
save_restoreSet_status_prefix("EIG1:")
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/autosave-R5-10/asApp/Db/save_restoreStatus.db", "P=EIG1:")
# Optional: load NDPluginPva plugin
#NDPvaConfigure("PVA1", $(QSIZE), 0, "$(PORT)", 0, $(PREFIX)Pva1:Image, 0, 0, 0)
#dbLoadRecords("NDPva.template", "P=$(PREFIX),R=Pva1:, PORT=PVA1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT)")
# Must start PVA server if this is enabled
#startPVAServer
# Optional: load ffmpegServer plugin
#ffmpegServerConfigure(8081)
#ffmpegStreamConfigure("FfmStream1", 2, 0, "$(PORT)", 0, -1, 0)
#dbLoadRecords("$(FFMPEGSERVER)/db/ffmpegStream.template", "P=$(PREFIX),R=ffmstream1:,PORT=FfmStream1,NDARRAY_PORT=$(PORT)")
#ffmpegFileConfigure("FfmFile1", 16, 0, "$(PORT)", 0, -1, 0)
#dbLoadRecords("$(FFMPEGSERVER)/db/ffmpegFile.template", "P=$(PREFIX),R=ffmfile1:,PORT=FfmFile1,NDARRAY_PORT=$(PORT)")
# Optional: load NDPluginEdge plugin
#NDEdgeConfigure("EDGE1", $(QSIZE), 0, "$(PORT)", 0, 0, 0, 0)
#dbLoadRecords("$(ADPLUGINEDGE)/db/NDEdge.template", "P=$(PREFIX),R=Edge1:, PORT=EDGE1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT)")
#set_requestfile_path("$(ADPLUGINEDGE)/edgeApp/Db")
# Optional: load NDPluginCV plugin
#NDCVConfigure("CV1", $(QSIZE), 0, "$(PORT)", 0, 0, 0, 0, 0, $(MAX_THREADS=5))
#dbLoadRecords("$(ADCOMPVISION)/db/NDCV.template", "P=$(PREFIX),R=CV1:, PORT=CV1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT)")
#set_requestfile_path("$(ADCOMPVISION)/adcvApp/Db")
# Optional: load NDPluginBar plugin
#NDBarConfigure("BAR1", $(QSIZE), 0, "$(PORT)", 0, 0, 0, 0, 0, $(MAX_THREADS=5))
#dbLoadRecords("$(ADPLUGINBAR)/db/NDBar.template", "P=$(PREFIX),R=Bar1:, PORT=BAR1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT)")
#set_requestfile_path("$(ADPLUGINBAR)/barApp/Db")
# Optional: load scan records
#dbLoadRecords("$(SSCAN)/sscanApp/Db/scan.db", "P=$(PREFIX),MAXPTS1=2000,MAXPTS2=200,MAXPTS3=20,MAXPTS4=10,MAXPTSH=10")
set_requestfile_path("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/sscan-R2-11-3/sscanApp/Db")
# Optional: load sseq record for acquisition sequence
#dbLoadRecords("$(CALC)/calcApp/Db/sseqRecord.db", "P=$(PREFIX), S=AcquireSequence")
set_requestfile_path("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/calc-R3-7-3/calcApp/Db")
# Optional: load devIocStats records (requires DEVIOCSTATS module)
dbLoadRecords("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/iocStats-3-1-16/db/iocAdminSoft.db", "IOC=EIG1:")
# Optional: load alive record (requires ALIVE module)
#dbLoadRecords("$(ALIVE)/aliveApp/Db/alive.db", "P=$(PREFIX),RHOST=192.168.1.254")
# Set the callback queue size to 5000, up from default of 2000 in base.
# This can be needed to avoid errors "callbackRequest: cbLow ring buffer full".
callbackSetQueueSize(5000)
set_requestfile_path("/usr/local/CXLS_SW/EPICS7/synApps_6_1/support/areaDetector/ADEiger/iocs/eigerIOC/../../eigerApp/Db")
iocInit()
Starting iocInit
############################################################################
## EPICS R7.0.3.1
## EPICS Base built Mar 3 2020
############################################################################
reboot_restore: entry for file 'auto_settings.sav'
reboot_restore: Found filename 'auto_settings.sav' in restoreFileList.
*** restoring from './autosave/auto_settings.sav' at initHookState 6 (before record/device init) ***
reboot_restore: done with file 'auto_settings.sav'
RestApi::get: [param=detector_readout_time] server returned error code 404
2020/03/05 15:12:19.177 Param[EIG_DCD_detector_readout_time]::baseFetch: [param=detector_readout_time] unable to parse json response
[]
2020/03/05 15:12:19.177 Param[EIG_DCD_detector_readout_time]::fetch<double>: [param=EIG_DCD_detector_readout_time] underlying baseFetch failed
Error (511,511) PV: EIG1::TIMEZONE devStringinEnvVar (init_record) Illegal INP parm field
reboot_restore: entry for file 'auto_settings.sav'
reboot_restore: Found filename 'auto_settings.sav' in restoreFileList.
*** restoring from './autosave/auto_settings.sav' at initHookState 7 (after record/device init) ***
reboot_restore: done with file 'auto_settings.sav'
cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 43355,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)
iocRun: All initialization complete
2020-03-05T15:12:19.834 Using dynamically assigned TCP port 33885.
# Avoid deluge of messages when debugging
#dbpf $(PREFIX)cam1:PoolUsedMem.SCAN Passive
# save things every thirty seconds
create_monitor_set("auto_settings.req", 30, "P=EIG1:")
epics> auto_settings.sav: 2335 of 2335 PV's connected
epics>