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  2016  2017  <20182019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
<== Date ==> <== Thread ==>

Subject: RE: areaDetector question
From: Mark Rivers <rivers@cars.uchicago.edu>
To: Jörn Dreyer <j.dreyer@hzdr.de>, EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Tue, 17 Apr 2018 14:03:39 +0000
Hi Jorn,

areaDetector definitely works with float or double arrays.

I am not sure if this is your problem, but I see an incompatibility here:

> dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$ (PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Float64,FTVL=FLOAT,NELEMENTS=8000")

Note that you have told it TYPE=Float64, which selects the asynFloat64Array interface.  However, you told it FTVL=FLOAT, which is for 32-bit floats.  These fields need to be consistent, i.e. TYPE=Float64 and FTVL=DOUBLE or TYPE=Float32 and FTVL=FLOAT.

Mark

-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Jörn Dreyer
Sent: Tuesday, April 17, 2018 7:24 AM
To: EPICS Tech Talk <tech-talk@aps.anl.gov>
Subject: areaDetector question

I'm currently developing an areaDetector module for a sensor that delivers its information as double values. The code is ready, but I'm somehow not able to setup the ioc correctly to deliver the data in the NDStdArray. Looking with caget at the ArrayData it shows all values as zero.

Here is what my dbLoadRecords line looks like: 

dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$ (PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$
(PORT),TYPE=Float64,FTVL=FLOAT,NELEMENTS=8000")

My question is, has anybody before tried to read floats? With another driver that reads UInt32 values, I succeeded to setup the ioc.

Regards,

Jörn Dreyer



Replies:
Re: areaDetector question Jörn Dreyer
References:
areaDetector question Jörn Dreyer

Navigate by Date:
Prev: Re: areaDetector question Hinko Kocevar
Next: Request for OSI and RTEMS citations Matt Rippa
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
Navigate by Thread:
Prev: Re: areaDetector question Hinko Kocevar
Next: Re: areaDetector question Jörn Dreyer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019 
ANJ, 18 Apr 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·