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: AreaDetector bindings and RBV propagation
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: Wed, 10 May 2017 13:11:42 +0000
Thank you for your response, and sorry for not getting back to you sooner.

> >10. Caget $(P)$(R)DetectorState_RBV.  It is "Readout" (numeric value 2),
> not 3 as would be expected from step 9.
> 
> That does not make sense to me.  If your driver called
> setIntegerParam(ADStatus, 3) and then callParamCallbacks(addr) then the
> record should have the value 3, not 2.
> 

I found that when I toggled the passed to ADStatus (alternating from 3 to 4 and back), the caget read the new value.  It looks like it only updates on change.

Iain.
 
> 
> -----Original Message-----
> From: tech-talk-bounces@aps.anl.gov [ 
> The Get Status code is
> 
> if (function == detector_get_status_)
>     {
>       printf("Received SDGetStaus command.\n");
>       // XXX Does putting a Get make the set take effect?
>       getIntegerParam(ADStatus, &det_status);
>       printf("Detector status before set is %i.\n", det_status);
>       setIntegerParam(ADStatus, 3);
>     }
> 
> And the GetStatus record is:
> record(longout, $(P)$(R)GetStatus)
> {
> 	field(DTYP, "asynInt32")
> 	field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))SDGETSTATUS")
> }



Replies:
RE: AreaDetector bindings and RBV propagation Mark Rivers
References:
AreaDetector bindings and RBV propagation Iain Marcuson
RE: AreaDetector bindings and RBV propagation Mark Rivers

Navigate by Date:
Prev: Re: Switched PDUs with EPICS support gennaro.tortone@na.infn.it
Next: RE: AreaDetector bindings and RBV propagation 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: AreaDetector bindings and RBV propagation Mark Rivers
Next: RE: AreaDetector bindings and RBV propagation 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, 10 May 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·