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  <20172018  2019  2020  2021  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  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Attributes XML problems
From: Hinko Kocevar <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 16 Aug 2017 11:59:11 +0200
Hi,

I'm trying to set some attributes using XML. If I want to have PV as source HDF5 file saving plugin complains heavily. If I use the parameter as source it is OK.

Example when fine:

<?xml version="1.0" standalone="no" ?>
<!-- Attributes -->
<Attributes
    xsi:noNamespaceSchemaLocation="../../../../../ADCore/XML_schema/NDAttributes.xsd"
    >
    <Attribute name="CameraManufacturer"  type="PARAM"    source="MANUFACTURER"                   datatype="STRING"     description="Camera manufacturer"/>
    <Attribute name="CameraModel"         type="PARAM"    source="MODEL"                          datatype="STRING"     description="Camera model"/>
    <Attribute name="ImageCounter"        type="PARAM"    source="ARRAY_COUNTER"                  datatype="INT"        description="Image counter"/>
    <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="AcquireTime"         type="PARAM"    source="ACQ_TIME"                       datatype="DOUBLE"     description="Camera acquire time"/>
</Attributes>
    

Example when bad:

<?xml version="1.0" standalone="no" ?>
<!-- Attributes -->
<Attributes
    xsi:noNamespaceSchemaLocation="../../../../../ADCore/XML_schema/NDAttributes.xsd"
    >
    <Attribute name="CameraManufacturer"  type="PARAM"    source="MANUFACTURER"                   datatype="STRING"     description="Camera manufacturer"/>
    <Attribute name="CameraModel"         type="PARAM"    source="MODEL"                          datatype="STRING"     description="Camera model"/>
    <Attribute name="ImageCounter"        type="PARAM"    source="ARRAY_COUNTER"                  datatype="INT"        description="Image counter"/>
    <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="AcquireTimePV"       type="EPICS_PV" source="13ANDOR1:cam1:AcquireTime_RBV"  dbrtype="DBR_NATIVE"  description="Camera acquire time"/>
</Attributes>
    
    

HDF5 file saving complaints:

epics> HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5Pdcpl.c line 3225 in H5Pset_fill_value(): not a datatype
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5D.c line 123 in H5Dcreate2(): not a datatype ID
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 265 in H5Acreate2(): not a location
    major: Invalid arguments to routine
    minor: Inappropriate type
  #001: ../H5Gloc.c line 253 in H5G_loc(): invalid object ID
    major: Invalid arguments to routine
    minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 634 in H5Awrite(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 1655 in H5Aclose(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 265 in H5Acreate2(): not a location
    major: Invalid arguments to routine
    minor: Inappropriate type
  #001: ../H5Gloc.c line 253 in H5G_loc(): invalid object ID
    major: Invalid arguments to routine
    minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 634 in H5Awrite(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 1655 in H5Aclose(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 265 in H5Acreate2(): not a location
    major: Invalid arguments to routine
    minor: Inappropriate type
  #001: ../H5Gloc.c line 253 in H5G_loc(): invalid object ID
    major: Invalid arguments to routine
    minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 634 in H5Awrite(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 1655 in H5Aclose(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 265 in H5Acreate2(): not a location
    major: Invalid arguments to routine
    minor: Inappropriate type
  #001: ../H5Gloc.c line 253 in H5G_loc(): invalid object ID
    major: Invalid arguments to routine
    minor: Bad value
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 634 in H5Awrite(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5A.c line 1655 in H5Aclose(): not an attribute
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5D.c line 908 in H5Dset_extent(): not a dataset
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5D.c line 375 in H5Dget_space(): not a dataset
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5Shyper.c line 6888 in H5Sselect_hyperslab(): not a data space
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5Dio.c line 225 in H5Dwrite(): not a dataset
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5S.c line 433 in H5Sclose(): not a dataspace
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.0-patch1) thread 139869132080896:
  #000: ../H5D.c line 334 in H5Dclose(): not a dataset
    major: Invalid arguments to routine
    minor: Inappropriate type


Any ideas?




On a related note, can I replace the attribute XML during IOC runtime (while acq is stopped) through 13ANDOR1:cam1:NDAttributesFile PV? I would like to edit to add new attributes witout restarting the IOC if possible..



Thanks,
Hinko



Replies:
RE: Attributes XML problems Mark Rivers

Navigate by Date:
Prev: Re: Replacement for dbGetPdbAddrFromLink ? Andrew Johnson
Next: RE: Attributes XML problems 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  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Archive Dump on Change Only Andrew Johnson
Next: RE: Attributes XML problems 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  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·