EPICS Controls 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  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Change Detector ( Q315 to Pilatus)
From: Mark Rivers <[email protected]>
To: mujin park <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 1 Feb 2016 04:07:23 +0000
Hi,

 >    i think bl5cApp must be remake. is it allright?

Yes, you will probably need to rebuilt that app unless it already include support for the Pilatus.

>    the pilatus related functions(pilatusDetectorConfig) must add in src ....
>    how can i add in  the pilatus related functions?

You need to do the following.

In your application Include.dbd or Makefile (depending how you do it) you need to replace adscSupport.dbd with pilatusDetectorSupport.dbd.

In your application Makefile you need to replace lines like:
$(PROD_NAME)_LIBS += adsc
ifeq (NO, $(USE_SIMADSC))
  $(PROD_NAME)_LIBS += detcon_th auxlib
endif

with

PROD_LIBS += pilatusDetector
PROD_LIBS += cbfad

>    Must the src code in bl5cApp be changed?

You should not need to change any C/C++ source code.

Mark


________________________________
From: [email protected] [[email protected]] on behalf of mujin park [[email protected]]
Sent: Sunday, January 31, 2016 9:10 PM
To: [email protected]
Subject: Change Detector ( Q315 to Pilatus)

Hello...


I will change Detector ( Q315r to Pilatus)

I want to see the steps before I start


1. st.cmd will be changed  (now -> to be)

    now
------------------------------------------------------------------------------------------------
################################## ADSC Detector ######################################################################
adscConfig("ADSC1","Q315r")
dbLoadRecords("db/ADBase.template","P=$(PREFIX):,R=ADSC:,PORT=ADSC1,ADDR=0,TIMEOUT=1")
dbLoadRecords("db/adsc.template",  "P=$(PREFIX):,R=ADSC:,PORT=ADSC1,ADDR=0,TIMEOUT=1")
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDFile.template","P=$(PREFIX):,R=ADSC:,PORT=ADSC1,ADDR=0,TIMEOUT=1")
################################# ADSC END ############################################################################
--------------------------------------------------------------------------------------------------
   to be
---------------------------------------------------------------------------------------------------
epicsEnvSet("PREFIX", "BL5C_:")
epicsEnvSet("PORT",   "PIL")
epicsEnvSet("QSIZE",  "20")
epicsEnvSet("XSIZE",  "487")
epicsEnvSet("YSIZE",  "195")
epicsEnvSet("NCHANS", "2048")
epicsEnvSet("CAMSERVER", "10.0.1.100")

###
# Create the asyn port to talk to the Pilatus on port 41234.
drvAsynIPPortConfigure("camserver","$(CAMSERVER):41234")
# Set the input and output terminators.
asynOctetSetInputEos("camserver", 0, "\030")
asynOctetSetOutputEos("camserver", 0, "\n")

#drvAsynIPPortConfigure("camserver","10.0.1.100:41234<http://10.0.1.100:41234><http://10.0.1.100:41234><http://10.0.1.100:41234>")
asynSetTraceIOMask("camserver", 0, 2)
asynSetTraceMark("camserver",0,9)

pilatusDetectorConfig("$(PORT)", "camserver", $(XSIZE), $(YSIZE), 50, 200000000)
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/pilatus.template","P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1,CAMSERVER_PORT=camserver")

# Create a standard arrays plugin
NDStdArraysConfigure("Image1", 5, 0, "$(PORT)", 0, -1)
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDPluginBase.template","P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),NDARRAY_ADDR=0")
dbLoadRecords("$(AREA_DETECTOR)/ADApp/Db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,TYPE=Int32,FTVL=LONG,NELEMENTS=94965")
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

2. now bl5cApp was maded.(Q513r)

    i think bl5cApp must be remake. is it allright?

    the pilatus related functions(pilatusDetectorConfig) must add in src ....

    how can i add in  the pilatus related functions?

    Must the src code in bl5cApp be changed?

Thanks for hearing

Best Regards






References:
Change Detector ( Q315 to Pilatus) mujin park

Navigate by Date:
Prev: Change Detector ( Q315 to Pilatus) mujin park
Next: Issues when building EDM on Ubuntu 14.04 Abdalla Ahmad
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Change Detector ( Q315 to Pilatus) mujin park
Next: Issues when building EDM on Ubuntu 14.04 Abdalla Ahmad
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·