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  2016  2017  2018  2019  <20202021  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  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: areaDetctor NDPluginProcess Background Saving
From: John Dobbins via Tech-talk <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>, Keara Louise Soloway <kls286 at cornell.edu>
Date: Wed, 2 Sep 2020 21:21:29 +0000
Mark,

Thanks for reducing my ignorance. I did indeed misunderstand.

Joh

On Sep 2, 2020, at 4:16 PM, Mark Rivers <rivers at cars.uchicago.edu> wrote:

Hi John,

I can verify that NDFileTIFF works and the NDPluginProcess will read an existing TIFF file successfully so it seems
the sequencer automation to save the file is broken in some way.

I think maybe you are misunderstanding what the Save button does. It does not save to a TIFF file. It saves the current NDArray to a memory buffer in the plugin to be used for subsequent background subtraction. The TIFF functionality in NDPluginProcess only reads an existing TIFF file, it does not save to a TIFF file.

To load that background buffer you should either use the Save button (to use the current NDArray as the background) or use the Read button to read a pre-existing TIFF file and use that as the background.

If you want to save an NDArray to a TIFF file for subsequent use in the NDProcess plugin (either as background or flat field) you can just use the normal NDFileTIFF plugin.

Mark






From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of John Dobbins via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, September 2, 2020 1:50 PM
To: EPICS Tech Talk
Cc: Keara Louise Soloway
Subject: areaDetctor NDPluginProcess Background Saving

areaDetector fans,

I have an IOC based on

base-7.0.2
alive-R1-1-1
asyn-R4-40
autosave-R5-10
busy-R1-7-2
calc-R3-7-3
iocStats-3-1-16
sscan-R2-11-3
seq-2-2-6

it happens to be for a ADVimba camera but I don't think my issue is related to this.

When I try to use "Save Background" in NDPluginProcess nothing happens ( well I can easily verify step 2-6 below don't happen).

[from areaDetector R3-3 release notes]

Add an sseq record to load the background image from a TIFF file. This executes all the following steps:

* Saves the current NDArrayPort for the Process plugin to a temporary location
* Sets the NDArrayPort to the TIFF plugin.
* Enables ArrayCallbacks for the TIFF plugin in case they were disabled.
* Process the ReadFile record in the TIFF plugin. This reads the TIFF file and does callback to the Process plugin.
* Loads the NDArray from the callback into the background image.
* Restores the previous NDArrayPort from the temporary location.

I can verify that NDFileTIFF works and the NDPluginProcess will read an existing TIFF file successfully so it seems the sequencer automation to save the file is broken in some way.


When I press my S7F:Proc1:SaveBackground button on the MEMD screen I see that both records

S7F:Proc1:SaveBackground

and

S7F:Proc1:SaveBackground_RBV

process,

S7F:Proc1:SaveBackground transitions to Yes and stays there.
S7F:Proc1:SaveBackground_RBV starts and stays at No.

I am hoping for a suggestion regarding what to check next.

Thanks,

John Dobbins

Research Support Specialist
Cornell High Energy Synchrotron Source
Cornell University

www.chess.cornell.edu<http://www.chess.cornell.edu>

Maybe it's all part of a great big ineffable plan. - Neil Gaiman, _Good Omens_






References:
areaDetctor NDPluginProcess Background Saving John Dobbins via Tech-talk
Re: areaDetctor NDPluginProcess Background Saving Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: CAEN R1470ET HVPS - Asyn + Stream Device auto connect does Mark Rivers via Tech-talk
Next: RE: PTP hardware timestamps in EPICS facilities Frank, William (STFC, RAL, ISIS) via Tech-talk
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  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: areaDetctor NDPluginProcess Background Saving Mark Rivers via Tech-talk
Next: RE: CAEN R1470ET HVPS - Asyn + Stream Device auto connect does Balakrishnan, Namrata via Tech-talk
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  2018  2019  <20202021  2022  2023  2024 
ANJ, 03 Sep 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·