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: Loading NDOverlayN.template
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "'Miceli, Antonino'" <amiceli at anl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Piatak, Christopher" <cpiatak at anl.gov>
Date: Wed, 5 Feb 2020 22:20:24 +0000

Hi Nino,

 

There are no macros for the XWIDTH and YWIDTH.  They can be set in the GUI and then will be in autosave.  Or you can do a dbpf to those PVs at the end of the startup script.

 

[X,Y]Width=0 is not recommended.  The behavior of the [X,Y]Width is documented here: https://areadetector.github.io/master/ADCore/NDPluginOverlay.html. It says:

 

The X line width of this overlay. For the cross overlay this will increase the width of the line on both sides at the same time, to maintain the central point of the cross. For the rectangle and ellipse overlays the line thickness will grow inwards to the center. For cross overlay shapes the widths >1 are restricted to even numbers; odd widths >1 are decreased by 1.

 

Mark

 

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Miceli, Antonino via Tech-talk
Sent: Wednesday, February 5, 2020 3:33 PM
To: tech-talk at aps.anl.gov >> EPICS Tech Talk <tech-talk at aps.anl.gov>
Cc: Piatak, Christopher <cpiatak at anl.gov>
Subject: Loading NDOverlayN.template

 

Hi,

 

We are trying to load overlays in AD and would like to change the X and Y widths to be non-zero (this causes endless problems from users since a rectangular overlap won't display with width =0, but a cross will!).

 

I would guess that I just have to say YWIDTH=1, XWIDTH=1 but this does not seem to work. For example, in the commonPlugins.cmd:

 

dbLoadRecords("NDOverlayN.template","P=$(PREFIX),R=Over1:1:, NAME=Box1,  YWIDTH=1, XWIDTH=1,SHAPE=1,O=Over1:, XPOS=$(PREFIX)ROI1:MinX_RBV,  YPOS=$(PREFIX)ROI1:MinY_RBV,  XSIZE=$(PREFIX)ROI1:SizeX_RBV,  YSIZE=$(PREFIX)ROI1:SizeY_RBV,  PORT=OVER1,ADDR=0, TIMEOUT=1")

 

Advise?

 

Thanks,

Nino


References:
Loading NDOverlayN.template Miceli, Antonino via Tech-talk

Navigate by Date:
Prev: RE: areaDetector crashes EPICS IOC and autosave failure Mark Rivers via Tech-talk
Next: Re: areaDetector crashes EPICS IOC and autosave failure Jong Woo Kim 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: Loading NDOverlayN.template Miceli, Antonino via Tech-talk
Next: ThorLabs motor driver Valentyn Stadnytskyi 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, 05 Feb 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·