EPICS Home

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  2020  <20212022  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  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Saving hdf5 ADPilatus images along with ROI and stats data from the same frame
From: "Ivashkevych, Oksana via Tech-talk" <tech-talk at aps.anl.gov>
To: Tech-talk <tech-talk at aps.anl.gov>
Date: Tue, 23 Feb 2021 16:05:40 +0000

Hello,

I am trying to configure hdf5 plugin to save N images with 4 ROI data (start, size), and 4 Stats, connected to ROIs ( total , maxValue).

 

I have created Attributes.xml file  following example from ADSimDetector. type="EPICS_PV" works, however type="PARAM" does not for parameters from areaDetector/ADCore/ADApp/pluginSrc/, but does work for params from areaDetector/ADCore/ADApp/ADSrc/.

 

It looks like with "EPICS_PV" type statistics data come from the previous frame.

 

I was wondering if there is something I am missing, or there are other ways to get the correct statistics into the hdf5 file. I have tried using Stats, ROIStats, and ROI plugins.

The green attributes are correctly saved, others show NaN in hdf5 file.

 

I have ADCore 3.6.0; ADPilatus 2.6.0

Thank you

 

Attributes.xml:

 

<?xml version="1.0" standalone="no" ?>

<!-- Attributes -->

<Attributes

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:noNamespaceSchemaLocation="../../../../../ADCore/XML_schema/NDAttributes.xsd"

    >

    <Attribute name="DriverFileName"  type="PARAM"    source="FULL_FILE_NAME"                       datatype="STRING"     description="Driver file name"/>

    <Attribute name="ROI0Size"      type="PARAM"    source="DIM0_SIZE"              datatype="INT"     description="X size ROI 0"/>

    <Attribute name="ROI0Mean"      type="PARAM"    source="MEAN_VALUE"              datatype="DOUBLE"     description="Mean value ROI 0"/>

    <Attribute name="ROI1Mean"      type="PARAM"    source="MEAN_VALUE" addr="1"     datatype="DOUBLE"     description="Mean value ROI 0"/>

    <Attribute name="_ROI0Total"     type="PARAM"    source="ROISTAT_TOTAL"                   datatype="DOUBLE"     description="Total counts ROI 0"/>

    <Attribute name="_ROI1Total"     type="PARAM"    source="ROISTAT_TOTAL"      addr="1"     datatype="DOUBLE"     description="Total counts ROI 1"/>

    <Attribute name="MaxSizeX"            type="PARAM"    source="MAX_SIZE_X"                   datatype="INT"        description="Detector X size"/>

    <Attribute name="MaxSizeY"            type="PARAM"    source="MAX_SIZE_Y"                   datatype="INT"        description="Detector Y size"/>

    <Attribute name="CameraModel"         type="PARAM"    source="MODEL"                        datatype="STRING"     description="Camera model"/>

    <Attribute name="AttributesFileParam"  type="PARAM"   source="ND_ATTRIBUTES_FILE"            datatype="STRING"     description="Attributes file param"/>

    <Attribute name="CameraManufacturer"  type="PARAM"    source="MANUFACTURER"                 datatype="STRING"     description="Camera manufacturer"/>

</Attributes>

 

 


Replies:
Re: Saving hdf5 ADPilatus images along with ROI and stats data from the same frame Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Matlab 2020b crashes with labCA 3.7.2 Till Straumann via Tech-talk
Next: Re: Saving hdf5 ADPilatus images along with ROI and stats data from the same frame Mark Rivers 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  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Matlab 2020b crashes with labCA 3.7.2 Till Straumann via Tech-talk
Next: Re: Saving hdf5 ADPilatus images along with ROI and stats data from the same frame Mark Rivers 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  2020  <20212022  2023  2024