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 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
<== Date ==> <== Thread ==>

Subject: RE: EPICS PV for data in Area Detector
From: Iain Marcuson <Iain.Marcuson@sydorinstruments.com>
To: Mark Rivers <rivers@cars.uchicago.edu>, "tech-talk@aps.anl.gov >> EPICS Tech Talk" <tech-talk@aps.anl.gov>
Date: Thu, 4 May 2017 12:25:16 +0000
> > I note there are no NDArrayCallbacks.
> 
> Please explain exactly what you mean by that statement.  What are you
> observing?
> 
> - Is your driver calling doCallbacksGenericPointer()?

The code is based on Mythen, and looks like:

getIntegerParam(NDArrayCallbacks, &arrayCallbacks);
if (arrayCallbacks) {
	this->unlock();
	doCallbacksGenericPointer(pImage, NDArrayData, 0);
	this->lock();
}

I put some printf()s to trace the flow and found that the if statement doesn't evaluate to true

> 
> - Are ArrayCallbacks enabled in your driver?
> 

> - Is the NDPluginStdArrays plugin enabled (EnableCallbacks)?  Is it configured
> to get its data from your driver?  Are the TimeStamp_RBV and UniqueId_RBV
> records in NDPluginStdArrays updating?
> 

I set $(P)$(R)ArrayCallbacks and $(P)$(R)EnableCallbacks to Enable and verified that with caget. TimeStamp_RBV and UniqueId_RBV do not update.

> > When I look at $(P)$(R)ArrayData, it appears to be all zeroes except the
> first value
> 
> How are you looking at $(P)$(R)ArrayData, i.e. with what tool?
> 

I am using caget -# 100 $(P)$(R)ArrayData.

> -----Original Message-----
> From: Mark Rivers [mailto:rivers@cars.uchicago.edu]
> Sent: Wednesday, May 03, 2017 9:52 PM
> To: Iain Marcuson <Iain.Marcuson@sydorinstruments.com>; tech-
> talk@aps.anl.gov >> EPICS Tech Talk <tech-talk@aps.anl.gov>
> Subject: RE: EPICS PV for data in Area Detector
> 
> Hi Iain,
> 
> Some questions:
> 
> > I note there are no NDArrayCallbacks.
> 
> Please explain exactly what you mean by that statement.  What are you
> observing?
> 
> - Is your driver calling doCallbacksGenericPointer()?
> 
> - Are ArrayCallbacks enabled in your driver?
> 
> - Is the NDPluginStdArrays plugin enabled (EnableCallbacks)?  Is it configured
> to get its data from your driver?  Are the TimeStamp_RBV and UniqueId_RBV
> records in NDPluginStdArrays updating?
> 
> > When I look at $(P)$(R)ArrayData, it appears to be all zeroes except the
> first value
> 
> How are you looking at $(P)$(R)ArrayData, i.e. with what tool?
> 
> Mark
> 
> 
> ________________________________________
> From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on
> behalf of Iain Marcuson [Iain.Marcuson@sydorinstruments.com]
> Sent: Wednesday, May 03, 2017 3:43 PM
> To: tech-talk@aps.anl.gov >> EPICS Tech Talk
> Subject: EPICS PV for data in Area Detector
> 
> I am trying to transfer pixel values from an Area Detector driver's private
> variable into an NDArray for viewing with ImageJ.  I have verified that the
> ImageJ plugin works.  I have also verified that the test data are generated
> correctly.  My code follows that of the Mythen driver, except with two
> dimensions instead of one.  I alloc() an NDArray and copy the pixel values
> over.  I have verified that the pixel values are transferred correctly to the
> pImage.  I note there are no NDArrayCallbacks.  When I look at
> $(P)$(R)ArrayData, it appears to be all zeroes except the first value, which
> appears to increment on both acquisition and "caget $(P)$(R)ArrayData".
> What might I be missing?
> 
> Thank you,
> 
> Iain.

Replies:
RE: EPICS PV for data in Area Detector Mark Rivers
References:
EPICS PV for data in Area Detector Iain Marcuson
RE: EPICS PV for data in Area Detector Mark Rivers

Navigate by Date:
Prev: Question about build StreamDevice application lzf neu
Next: RE: EPICS PV for data in Area Detector Mark Rivers
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
Navigate by Thread:
Prev: RE: EPICS PV for data in Area Detector Mark Rivers
Next: RE: EPICS PV for data in Area Detector Mark Rivers
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
ANJ, 04 May 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·