-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathNXsensor.nxdl.xml
178 lines (174 loc) · 5.77 KB
/
NXsensor.nxdl.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="nxdlformat.xsl" ?>
<!--
# NeXus - Neutron and X-ray Common Data Format
#
# Copyright (C) 2008-2024 NeXus International Advisory Committee (NIAC)
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# For further information, see http://www.nexusformat.org
-->
<definition xmlns="http://definition.nexusformat.org/nxdl/3.1" category="base"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://definition.nexusformat.org/nxdl/3.1 ../nxdl.xsd"
name="NXsensor"
type="group" extends="NXcomponent">
<doc>
A sensor used to monitor an external condition
The condition itself is described in :ref:`NXenvironment`.
</doc>
<field name="model">
<doc>Sensor identification code/model number</doc>
</field>
<field name="name">
<doc>Name for the sensor</doc>
</field>
<field name="short_name">
<doc>Short name of sensor used e.g. on monitor display program</doc>
</field>
<field name="attached_to">
<doc>where sensor is attached to ("sample" | "can")</doc>
</field>
<group name="geometry" type="NXgeometry" deprecated="Use the field `depends_on` and :ref:`NXtransformations` to position the beamstop and NXoff_geometry to describe its shape instead">
<doc>
Defines the axes for logged vector quantities if they are not the global instrument axes.
</doc>
</group>
<field name="measurement">
<doc>name for measured signal</doc>
<enumeration open="true">
<item value="temperature" />
<item value="pH" />
<item value="magnetic_field" />
<item value="electric_field" />
<item value="current" />
<item value="conductivity" />
<item value="resistance" />
<item value="voltage" />
<item value="pressure" />
<item value="flow" />
<item value="stress" />
<item value="strain" />
<item value="shear" />
<item value="surface_pressure" />
</enumeration>
</field>
<field name="type">
<doc>
The type of hardware used for the measurement.
Examples (suggestions but not restrictions):
:Temperature:
J | K | T | E | R | S | Pt100 | Rh/Fe
:pH:
Hg/Hg2Cl2 | Ag/AgCl | ISFET
:Ion selective electrode:
specify species; e.g. Ca2+
:Magnetic field:
Hall
:Surface pressure:
wilhelmy plate
</doc>
</field>
<field name="run_control" type="NX_BOOLEAN">
<doc>
Is data collection controlled or synchronised to this quantity:
1=no, 0=to "value", 1=to "value_deriv1", etc.
</doc>
</field>
<field name="high_trip_value" type="NX_FLOAT" units="NX_ANY">
<doc>
Upper control bound of sensor reading if using run_control
</doc>
</field>
<field name="low_trip_value" type="NX_FLOAT" units="NX_ANY">
<doc>
Lower control bound of sensor reading if using run_control
</doc>
</field>
<field name="value" type="NX_FLOAT" units="NX_ANY">
<doc>
nominal setpoint or average value
- need [n] as may be a vector
</doc>
<dimensions>
<dim index="1" value="n"/>
</dimensions>
</field>
<field name="value_deriv1" type="NX_FLOAT" units="NX_ANY">
<doc>
Nominal/average first derivative of value
e.g. strain rate
- same dimensions as "value" (may be a vector)
</doc>
<dimensions>
<dim index="1" ref="value"/>
</dimensions>
</field>
<field name="value_deriv2" type="NX_FLOAT" units="NX_ANY">
<doc>
Nominal/average second derivative of value
- same dimensions as "value" (may be a vector)
</doc>
<dimensions>
<dim index="1" ref="value"/>
</dimensions>
</field>
<group name="value_log" type="NXlog">
<doc>Time history of sensor readings</doc>
</group>
<group name="value_deriv1_log" type="NXlog">
<doc>Time history of first derivative of sensor readings</doc>
</group>
<group name="value_deriv2_log" type="NXlog">
<doc>Time history of second derivative of sensor readings</doc>
</group>
<field name="external_field_brief">
<enumeration>
<item value="along beam" />
<item value="across beam" />
<item value="transverse" />
<item value="solenoidal" />
<item value="flow shear gradient" />
<item value="flow vorticity" />
</enumeration>
</field>
<group name="external_field_full" type="NXorientation">
<doc>For complex external fields not satisfied by External_field_brief</doc>
</group>
<group type="NXoff_geometry" minOccurs="0">
<doc>
This group describes the shape of the sensor when necessary.
</doc>
</group>
<group type="NXfabrication"/>
<attribute name="default">
<doc>
.. index:: plotting
Declares which child group contains a path leading
to a :ref:`NXdata` group.
It is recommended (as of NIAC2014) to use this attribute
to help define the path to the default dataset to be plotted.
See https://www.nexusformat.org/2014_How_to_find_default_data.html
for a summary of the discussion.
</doc>
</attribute>
<field name="depends_on" type="NX_CHAR">
<doc>
.. todo::
Add a definition for the reference point of a sensor.
</doc>
</field>
</definition>