Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Problems running areaDetector to control simulation detector
From: "GONG Yu" <gongyu@ihep.ac.cn>
To: tech-talk@aps.anl.gov
Date: Sun, 15 Mar 2015 17:36:27 +0800 (GMT+08:00)
Hi everyone,
   I come into problems while I was trying to run the areaDetector to control a simulation detector.
   I follow the instuctions of "Using AreaDetector: Lab Handout" on http://www.aps.anl.gov/epics/docs/APS2015.php.
   The areaDetector has been installed in /home/gongyu/areaDetector-master
   I copy it to a new directory /home/gongyu/test_areaDetector/

   I change to the /home/gongyu/test_areaDetector/areaDetector-master/configure/, and edit the file RELEASE_PATHS.Local, and changed the line to
   AREA_DETECTOR= /home/gongyu/test_areaDetector/areaDetector-master
   
   Changing to the ADCore directory, and issue the following command:
   make -sj clean uninstall
   make -sj
   (I do not know if the option -j is needed, but I follow it)
   
   Changing to the directory
   /home/gongyu/test_areaDetector/areaDetector-master/ADCore/iocs/simDetectorIOC/iocBoot/iocSimDetector
   Edit st.cmd, change the line:
   epicsEnvSet("PREFIX", "SIM_1:")
   
   Then, I issue the command:
   medm -x -macro "P=SIM_1:, R=cam1:" simDetector.adl &
   and it shows that
----------------------------------------------------------------------------------------------
[1] 13437
[gongyu@gongyu iocSimDetector]$ 

medmInit: Unable to load font widgetDM_4
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_6
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_8
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_10
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_12
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_14
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_16
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_18
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_20
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_22
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_24
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_30
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_36
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_40
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_48
  Trying default (fixed) instead

medmInit: Unable to load font widgetDM_60
  Trying default (fixed) instead
MEDM Version 3.1.9: Loading aliased fonts.................
----------------------------------------------------------------------------------------------
I do not know why it is Unable to load font widgetDM_XX.

I just change to the directory /home/gongyu/ImageJ, double click the icon ImageJ.
(At this time, There is a warning in my os: SELinux is preventing ImageJ from loading /home/gongyu/ImageJ/jre/lib/i386/client/libjvm.so which requires text relocation. I do not know if it will influence the latter processing)

Then, in the directory:
/home/gongyu/test_areaDetector/areaDetector-master/ADCore/iocs/simDetectorIOC/iocBoot/iocSimDetector,
cp envPaths envPaths.linux
then, I issue the command:
../../bin/linux-x86/simDetectorApp st.cmd.linux
There is another problem, the results are listed below:
--------------------------------------------------------------------------------------------------
< envPaths.linux
epicsEnvSet("ARCH","linux-x86")
epicsEnvSet("IOC","iocSimDetector")
epicsEnvSet("TOP","/home/gongyu/test_areaDetector/areaDetector-master/ADCore/iocs/simDetectorIOC")
epicsEnvSet("AREA_DETECTOR","/home/gongyu/test_areaDetector/areaDetector-master")
epicsEnvSet("ADBINARIES","/home/gongyu/test_areaDetector/areaDetector-master/ADBinaries")
epicsEnvSet("ADCORE","/home/gongyu/test_areaDetector/areaDetector-master/ADCore")
< st.cmd
# Must have loaded envPaths via st.cmd.linux or st.cmd.win32
errlogInit(20000)
dbLoadDatabase("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/iocs/simDetectorIOC/dbd/simDetectorApp.dbd")
simDetectorApp_registerRecordDeviceDriver(pdbbase) 
epicsEnvSet("PREFIX", "SIM_1:")
epicsEnvSet("PORT",   "SIM1")
epicsEnvSet("QSIZE",  "20")
epicsEnvSet("XSIZE",  "1024")
epicsEnvSet("YSIZE",  "1024")
epicsEnvSet("NCHANS", "2048")
# The EPICS environment variable EPICS_CA_MAX_ARRAY_BYTES needs to be set to a value at least as large
# as the largest image that the standard arrays plugin will send.
# That vlaue is $(XSIZE) * $(YSIZE) * sizeof(FTVL data type) for the FTVL used when loading the NDStdArrays.template file.
# The variable can be set in the environment before running the IOC or it can be set here.
# It is often convenient to set it in the environment outside the IOC to the largest array any client 
# or server will need.  For example 10000000 (ten million) bytes may be enough.
# If it is set here then remember to also set it outside the IOC for any CA clients that need to access the waveform record.  
# Do not set EPICS_CA_MAX_ARRAY_BYTES to a value much larger than that required, because EPICS Channel Access actually
# allocates arrays of this size every time it needs a buffer larger than 16K.
# Uncomment the following line to set it in the IOC.
#epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "10000000")
# Create a simDetector driver
# simDetectorConfig(const char *portName, int maxSizeX, int maxSizeY, int dataType,
#                   int maxBuffers, int maxMemory, int priority, int stackSize)
simDetectorConfig("SIM1", 1024, 1024, 1, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/ADBase.template",     "P=SIM_1:,R=cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1")
# To have the rate calculation use a non-zero smoothing factor use the following line
#dbLoadRecords("$(ADCORE)/db/ADBase.template",     "P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1,RATE_SMOOTH=0.2")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/simDetector.template","P=SIM_1:,R=cam1:,PORT=SIM1,ADDR=0,TIMEOUT=1")
# Create a second simDetector driver
simDetectorConfig("SIM2", 300, 200, 1, 50, 50000000)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/ADBase.template",     "P=SIM_1:,R=cam2:,PORT=SIM2,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/simDetector.template","P=SIM_1:,R=cam2:,PORT=SIM2,ADDR=0,TIMEOUT=1")
# Create a standard arrays plugin, set it to get data from first simDetector driver.
NDStdArraysConfigure("Image1", 3, 0, "SIM1", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
# This creates a waveform large enough for 1024x1024x3 (e.g. RGB color) arrays.
# This waveform only allows transporting 8-bit images
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDStdArrays.template", "P=SIM_1:,R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int8,FTVL=UCHAR,NELEMENTS=3145728")
# This waveform only allows transporting 16-bit images
#dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int16,FTVL=USHORT,NELEMENTS=3145728")
# This waveform allows transporting 32-bit images
#dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int32,FTVL=LONG,NELEMENTS=3145728")
# Create a standard arrays plugin, set it to get data from second simDetector driver.
NDStdArraysConfigure("Image2", 1, 0, "SIM2", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=image2:,PORT=Image2,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM2,NDARRAY_ADDR=0")
# This creates a waveform large enough for 640x480x3 (e.g. RGB color) arrays.
# This waveform allows transporting 64-bit images, so it can handle any detector data type at the expense of more memory and bandwidth
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDStdArrays.template", "P=SIM_1:,R=image2:,PORT=Image2,ADDR=0,TIMEOUT=1,TYPE=Float64,FTVL=DOUBLE,NELEMENTS=921600")
# Load all other plugins using commonPlugins.cmd
< /home/gongyu/test_areaDetector/areaDetector-master/ADCore/iocBoot/commonPlugins.cmd
# Create a netCDF file saving plugin.
NDFileNetCDFConfigure("FileNetCDF1", 20, 0, "SIM1", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=netCDF1:,PORT=FileNetCDF1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFile.template",      "P=SIM_1:,R=netCDF1:,PORT=FileNetCDF1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFileNetCDF.template","P=SIM_1:,R=netCDF1:,PORT=FileNetCDF1,ADDR=0,TIMEOUT=1")
# Create a TIFF file saving plugin
NDFileTIFFConfigure("FileTIFF1", 20, 0, "SIM1", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=TIFF1:,PORT=FileTIFF1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFile.template",      "P=SIM_1:,R=TIFF1:,PORT=FileTIFF1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFileTIFF.template",  "P=SIM_1:,R=TIFF1:,PORT=FileTIFF1,ADDR=0,TIMEOUT=1")
# Create a JPEG file saving plugin
NDFileJPEGConfigure("FileJPEG1", 20, 0, "SIM1", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=JPEG1:,PORT=FileJPEG1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFile.template",      "P=SIM_1:,R=JPEG1:,PORT=FileJPEG1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFileJPEG.template",  "P=SIM_1:,R=JPEG1:,PORT=FileJPEG1,ADDR=0,TIMEOUT=1")
# Create a NeXus file saving plugin
NDFileNexusConfigure("FileNexus1", 20, 0, "SIM1", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Nexus1:,PORT=FileNexus1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFile.template",      "P=SIM_1:,R=Nexus1:,PORT=FileNexus1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFileNexus.template", "P=SIM_1:,R=Nexus1:,PORT=FileNexus1,ADDR=0,TIMEOUT=1")
# Create an HDF5 file saving plugin
NDFileHDF5Configure("FileHDF1", 20, 0, "SIM1", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=HDF1:,PORT=FileHDF1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFile.template",      "P=SIM_1:,R=HDF1:,PORT=FileHDF1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFileHDF5.template",  "P=SIM_1:,R=HDF1:,PORT=FileHDF1,ADDR=0,TIMEOUT=1")
# Create a Magick file saving plugin
NDFileMagickConfigure("FileMagick1", 20, 0, "SIM1", 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Magick1:,PORT=FileMagick1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFile.template",      "P=SIM_1:,R=Magick1:,PORT=FileMagick1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDFileMagick.template","P=SIM_1:,R=Magick1:,PORT=FileMagick1,ADDR=0,TIMEOUT=1")
# Create 4 ROI plugins
NDROIConfigure("ROI1", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=ROI1:,  PORT=ROI1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDROI.template",       "P=SIM_1:,R=ROI1:,  PORT=ROI1,ADDR=0,TIMEOUT=1")
NDROIConfigure("ROI2", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=ROI2:,  PORT=ROI2,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDROI.template",       "P=SIM_1:,R=ROI2:,  PORT=ROI2,ADDR=0,TIMEOUT=1")
NDROIConfigure("ROI3", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=ROI3:,  PORT=ROI3,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDROI.template",       "P=SIM_1:,R=ROI3:,  PORT=ROI3,ADDR=0,TIMEOUT=1")
NDROIConfigure("ROI4", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=ROI4:,  PORT=ROI4,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDROI.template",       "P=SIM_1:,R=ROI4:,  PORT=ROI4,ADDR=0,TIMEOUT=1")
# Create a processing plugin
NDProcessConfigure("PROC1", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Proc1:,  PORT=PROC1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDProcess.template",   "P=SIM_1:,R=Proc1:,  PORT=PROC1,ADDR=0,TIMEOUT=1")
# Create 5 statistics plugins
NDStatsConfigure("STATS1", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Stats1:,  PORT=STATS1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=ROI1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDStats.template",     "P=SIM_1:,R=Stats1:,  PORT=STATS1,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=1024,YSIZE=1024,NCHANS=2048")
NDStatsConfigure("STATS2", 20, 0, "ROI1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Stats2:,  PORT=STATS2,ADDR=0,TIMEOUT=1,NDARRAY_PORT=ROI2,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDStats.template",     "P=SIM_1:,R=Stats2:,  PORT=STATS2,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=1024,YSIZE=1024,NCHANS=2048")
NDStatsConfigure("STATS3", 20, 0, "ROI2", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Stats3:,  PORT=STATS3,ADDR=0,TIMEOUT=1,NDARRAY_PORT=ROI3,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDStats.template",     "P=SIM_1:,R=Stats3:,  PORT=STATS3,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=1024,YSIZE=1024,NCHANS=2048")
NDStatsConfigure("STATS4", 20, 0, "ROI3", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Stats4:,  PORT=STATS4,ADDR=0,TIMEOUT=1,NDARRAY_PORT=ROI4,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDStats.template",     "P=SIM_1:,R=Stats4:,  PORT=STATS4,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=1024,YSIZE=1024,NCHANS=2048")
NDStatsConfigure("STATS5", 20, 0, "ROI4", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Stats5:,  PORT=STATS5,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDStats.template",     "P=SIM_1:,R=Stats5:,  PORT=STATS5,ADDR=0,TIMEOUT=1,HIST_SIZE=256,XSIZE=1024,YSIZE=1024,NCHANS=2048")
# Create a transform plugin
NDTransformConfigure("TRANS1", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Trans1:,  PORT=TRANS1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDTransform.template", "P=SIM_1:,R=Trans1:,  PORT=TRANS1,ADDR=0,TIMEOUT=1")
# Create an overlay plugin with 8 overlays
NDOverlayConfigure("OVER1", 20, 0, "SIM1", 0, 8, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template","P=SIM_1:,R=Over1:, PORT=OVER1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlay.template",   "P=SIM_1:,R=Over1:, PORT=OVER1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,R=Over1:1:,NAME=ROI1,   SHAPE=1,O=Over1:,XPOS=SIM_1:ROI1:MinX_RBV,YPOS=SIM_1:ROI1:MinY_RBV,XSIZE=SIM_1:ROI1:SizeX_RBV,YSIZE=SIM_1:ROI1:SizeY_RBV,PORT=OVER1,ADDR=0,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,R=Over1:2:,NAME=ROI2,   SHAPE=1,O=Over1:,XPOS=SIM_1:ROI2:MinX_RBV,YPOS=SIM_1:ROI2:MinY_RBV,XSIZE=SIM_1:ROI2:SizeX_RBV,YSIZE=SIM_1:ROI2:SizeY_RBV,PORT=OVER1,ADDR=1,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,R=Over1:3:,NAME=ROI3,   SHAPE=1,O=Over1:,XPOS=SIM_1:ROI3:MinX_RBV,YPOS=SIM_1:ROI3:MinY_RBV,XSIZE=SIM_1:ROI3:SizeX_RBV,YSIZE=SIM_1:ROI3:SizeY_RBV,PORT=OVER1,ADDR=2,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,R=Over1:4:,NAME=ROI4,   SHAPE=1,O=Over1:,XPOS=SIM_1:ROI4:MinX_RBV,YPOS=SIM_1:ROI4:MinY_RBV,XSIZE=SIM_1:ROI4:SizeX_RBV,YSIZE=SIM_1:ROI4:SizeY_RBV,PORT=OVER1,ADDR=3,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,R=Over1:5:,NAME=Cursor1,SHAPE=1,O=Over1:,XPOS=junk,                  YPOS=junk,                  XSIZE=junk,                   YSIZE=junk,                   PORT=OVER1,ADDR=4,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,R=Over1:6:,NAME=Cursor2,SHAPE=1,O=Over1:,XPOS=junk,                  YPOS=junk,                  XSIZE=junk,                   YSIZE=junk,                   PORT=OVER1,ADDR=5,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,R=Over1:7:,NAME=Box1,   SHAPE=1,O=Over1:,XPOS=junk,                  YPOS=junk,                  XSIZE=junk,                   YSIZE=junk,                   PORT=OVER1,ADDR=6,TIMEOUT=1")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDOverlayN.template","P=SIM_1:,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, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template",   "P=SIM_1:,R=CC1:,  PORT=CC1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDColorConvert.template", "P=SIM_1:,R=CC1:,  PORT=CC1,ADDR=0,TIMEOUT=1")
NDColorConvertConfigure("CC2", 20, 0, "SIM1", 0, 0, 0)
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDPluginBase.template",   "P=SIM_1:,R=CC2:,  PORT=CC2,ADDR=0,TIMEOUT=1,NDARRAY_PORT=SIM1,NDARRAY_ADDR=0")
dbLoadRecords("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/db/NDColorConvert.template", "P=SIM_1:,R=CC2:,  PORT=CC2,ADDR=0,TIMEOUT=1")
# Load scan records
macLib: macro SSCAN is undefined (expanding string dbLoadRecords("$(SSCAN)/sscanApp/Db/scan.db", "P=$(PREFIX),MAXPTS1=2000,MAXPTS2=200,MAXPTS3=20,MAXPTS4=10,MAXPTSH=10"))
# Load sseq record for acquisition sequence
macLib: macro CALC is undefined (expanding string dbLoadRecords("$(CALC)/calcApp/Db/yySseq.db", "P=$(PREFIX), S=AcquireSequence"))
set_requestfile_path("./")
set_requestfile_path("/home/gongyu/test_areaDetector/areaDetector-master/ADCore/ADApp/Db")
macLib: macro CALC is undefined (expanding string set_requestfile_path("$(CALC)/calcApp/Db"))
macLib: macro SSCAN is undefined (expanding string set_requestfile_path("$(SSCAN)/sscanApp/Db"))
set_savefile_path("./autosave")
set_pass0_restoreFile("auto_settings.sav")
set_pass1_restoreFile("auto_settings.sav")
save_restoreSet_status_prefix("SIM_1:")
macLib: macro AUTOSAVE is undefined (expanding string dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=$(PREFIX)"))
#asynSetTraceIOMask("$(PORT)",0,2)
#asynSetTraceMask("$(PORT)",0,255)
#asynSetTraceIOMask("FileNetCDF",0,2)
#asynSetTraceMask("FileNetCDF",0,255)
#asynSetTraceMask("FileNexus",0,255)
#asynSetTraceMask("SIM2",0,255)
iocInit()
Starting iocInit
############################################################################
## EPICS R3.14.12.4 $Date: Mon 2013-12-16 15:51:45 -0600$
## EPICS Base built Jan 27 2015
############################################################################
reboot_restore: entry for file 'auto_settings.sav'
reboot_restore (v5.1): 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'

reboot_restore: entry for file 'auto_settings.sav'
reboot_restore (v5.1): 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'

iocRun: All initialization complete
# save things every thirty seconds
create_monitor_set("auto_settings.req", 30, "P=SIM_1:")
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
save_restore:readReqFile: unable to open file scan_settings.req. Exiting.
save_restore:readReqFile: unable to open file scan_settings.req. Exiting.
save_restore:readReqFile: unable to open file scan_settings.req. Exiting.
save_restore:readReqFile: unable to open file scan_settings.req. Exiting.
save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.
epics> save_restore: Can't connect to all status PV(s)
auto_settings.sav: 677 of 677 PV's connected
save_restore: Can't connect to status PV(s) for list 'auto_settings.sav'
-------------------------------------------------------------------------------------------------
I do not know what it means and how to solve this problem.
The areaDetector and medm are installed in the same computer (i.e. in my laptop. medm is a client, and areaDetector is a server, I do not know if my understanding is correct?).
I did not set the The EPICS_CA_ADDR_LIST and EPICS_CA_AUTO_ADDR_LIST variables (I don't know how to set these variables when areaDetector and medm are in the same computer?).
EPICS_CA_MAX_ARRAY_BYTES is set to 4154000 (I don't know how many pixels and dynamic range of the simulation detector)
EPICS_DISPLAY_PATH is set to /home/gongyu/EPICS/adls
ImageJ is in /home/gongyu/ImageJ

My letter is lengthy with so many questions, I hope someone could help me. Thank you in advance.

GongYu

Replies:
RE: Problems running areaDetector to control simulation detector Mooney, Tim M.
RE: Problems running areaDetector to control simulation detector Mark Rivers

Navigate by Date:
Prev: Re: SNL: state change statement in entry block Benjamin Franksen
Next: RE: Problems running areaDetector to control simulation detector Mooney, Tim M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020 
Navigate by Thread:
Prev: StatusCreate class with Throwable Ricardo Herrero
Next: RE: Problems running areaDetector to control simulation detector Mooney, Tim M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·