Experimental Physics and
| |||||||||||||||
|
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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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
| ||||||||||||||
ANJ, 21 Dec 2017 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |