Skip to content
Snippets Groups Projects
diffractometer.xml 5.13 KiB
Newer Older
<?xml version='1.0'?>
<definition>
  <group type="NXentry" name="$var.entryname#'$(__entryname__)'$var.serialno">
    <group type="NXinstrument" name="instrument">
      <group type="NXcollection" name="$(name)_table">
        <field type="NX_CHAR" name="depends_on">transformations/x<strategy mode="INIT"/>
        </field>
        <group type="NXtransformations" name="transformations">
          <field units="mm" type="NX_FLOAT64" name="x">
            <strategy mode="INIT"/>$datasources.$(x)<attribute type="NX_CHAR" name="transformation_type">translation<strategy mode="INIT"/>
            </attribute>
            <attribute type="NX_FLOAT64" name="vector">1 0 0<dimensions rank="1">
                <dim value="3" index="1"/>
              </dimensions>
              <strategy mode="INIT"/>
            </attribute>
          </field>
          <field units="mm" type="NX_FLOAT64" name="height_1">
            <strategy mode="INIT"/>$datasources.$(height1)<attribute type="NX_CHAR" name="transformation_type">translation<strategy mode="INIT"/>
            </attribute>
            <attribute type="NX_FLOAT64" name="vector">0 1 0<dimensions rank="1">
                <dim value="3" index="1"/>
              </dimensions>
              <strategy mode="INIT"/>
            </attribute>
          </field>
          <field units="mm" type="NX_FLOAT64" name="height_2">
            <strategy mode="INIT"/>$datasources.$(height2)<attribute type="NX_CHAR" name="transformation_type">translation<strategy mode="INIT"/>
            </attribute>
            <attribute type="NX_FLOAT64" name="vector">0 1 0<dimensions rank="1">
                <dim value="3" index="1"/>
              </dimensions>
              <strategy mode="INIT"/>
            </attribute>
          </field>
          <field units="mm" type="NX_FLOAT64" name="height">
            <strategy mode="INIT"/>$datasources.$(height)<attribute type="NX_CHAR" name="transformation_type">translation<strategy mode="INIT"/>
            </attribute>
            <attribute type="NX_FLOAT64" name="vector">0 1 0<dimensions rank="1">
                <dim value="3" index="1"/>
              </dimensions>
              <strategy mode="INIT"/>
            </attribute>
          </field>
        </group>
      </group>
      <group type="NXcollection" name="$(name)_circles">
        <field type="NX_CHAR" name="depends_on">transformations/delta<strategy mode="INIT"/>
        </field>
        <group type="NXtransformations" name="transformations">
          <field units="deg" type="NX_FLOAT64" name="gamma">
            <strategy mode="INIT"/>$datasources.$(gamma)<attribute type="NX_CHAR" name="transformation_type">rotation<strategy mode="INIT"/>
            </attribute>
            <attribute type="NX_FLOAT64" name="vector">1 0 0<dimensions rank="1">
                <dim value="3" index="1"/>
              </dimensions>
              <strategy mode="INIT"/>
            </attribute>
          </field>
          <field units="mm" type="NX_FLOAT64" name="delta">
            <strategy mode="INIT"/>$datasources.$(delta)<attribute type="NX_CHAR" name="transformation_type">rotation<strategy mode="INIT"/>
            </attribute>
            <attribute type="NX_FLOAT64" name="vector">0 1 0<dimensions rank="1">
                <dim value="3" index="1"/>
              </dimensions>
              <strategy mode="INIT"/>
            </attribute>
          </field>
        </group>
      </group>
    </group>
    <group type="NXsample" name="$(sname)">
      <field type="NX_CHAR" name="depends_on">transformations/omega<strategy mode="INIT"/>
      </field>
      <group type="NXtransformations" name="transformations">
	<field units="deg" type="NX_FLOAT64" name="omega">
	  <strategy mode="INIT"/>$datasources.$(omega)<attribute type="NX_CHAR" name="transformation_type">rotation<strategy mode="INIT"/>
	  </attribute>
	  <attribute type="NX_FLOAT64" name="vector">1 0 0<dimensions rank="1">
	      <dim value="3" index="1"/>
	    </dimensions>
	    <strategy mode="INIT"/>
	  </attribute>
	</field>
	<field units="deg" type="NX_FLOAT64" name="mu">
	  <strategy mode="INIT"/>$datasources.$(mu)<attribute type="NX_CHAR" name="transformation_type">rotation<strategy mode="INIT"/>
	  </attribute>
	  <attribute type="NX_FLOAT64" name="vector">0 1 0<dimensions rank="1">
	      <dim value="3" index="1"/>
	    </dimensions>
	    <strategy mode="INIT"/>
	  </attribute>
	</field>
	<field units="deg" type="NX_FLOAT64" name="chi">
	  <strategy mode="INIT"/>$datasources.$(chi)<attribute type="NX_CHAR" name="transformation_type">rotation<strategy mode="INIT"/>
	  </attribute>
	  <attribute type="NX_FLOAT64" name="vector">0 0 1<dimensions rank="1">
	      <dim value="3" index="1"/>
	    </dimensions>
	    <strategy mode="INIT"/>
	  </attribute>
	</field>
	<field units="deg" type="NX_FLOAT64" name="phi">
	  <strategy mode="INIT"/>$datasources.$(phi)<attribute type="NX_CHAR" name="transformation_type">rotation<strategy mode="INIT"/>
	  </attribute>
	  <attribute type="NX_FLOAT64" name="vector">0 1 0<dimensions rank="1">
	      <dim value="3" index="1"/>
	    </dimensions>
	    <strategy mode="INIT"/>
	  </attribute>
	</field>
      </group>
    </group>
  </group>
</definition>