Diffractometer

The controller corresponding to the diffractometer can be created by the SardanaStartup.py script if the corresponding entry was previously introduced in the online.xml file and converted to onlineSardana.xml using the SardanaConvert.py script.

The entry for the diffractometer looks like:

 <device>
 <name>e6cctrl</name>
 <hkl>mu = 6, omega = 5, chi = 4, phi = 7, gamma = 13, delta = 14, crystal=/my/dir/with/crystal.txt, energydevice=computer:10000/my/energy/device</hkl>
 <type>diffractometercontroller</type>
 <module>E6C</module>
 <device>p09/motor/exp.04</device>
 <control>tango</control>
 <hostname>haspp09mono:10000</hostname>
</device>
<name> is the name the diffractometer device will be created with, it can be choosen arbitrarily.

<type> has to be diffractometercontroller, for indicating that this is the entry corresponding to the diffractometer.

<module> refers to the diffractometer type, like it is defined in the hkl libraries. The possible difractometers types are: PETRA3 P09 EH2, PETRA3 P23 6C, E6C, PETRA3 P23 4C, E4CV and E4CH.

<device> refers to the name of the Tango Device corresponding to one of the motors used by the diffractometer (it is assumed that the name of the rest of the motors differs from this one only in the final number.

<hkl> lists the motors of the diffractometer with the corresponding axis number (final number from the Tango Device corresponding to each motor). If the name of the motors or any motor is not the same except the axis number, the whole name of the motor device name in the Pool has to be given instead of an axis number, ex.:

<hkl>mu = motor/diffracmu_mag/01, omega = 5, chi = 4, phi = 7, gamma = 13, delta = 14, crystal=/my/dir/with/crystal.txt, energydevice=computer:10000/my/energy/device</hkl>

By request from p08 also the following list of names can be used for the setting the diffractometer motors:

<hkl>omh = motor/diffracmu_mag/01, om = 5, chi = 4, phic = 7, tth = 13, tt = 14, crystal=/my/dir/with/crystal.txt, energydevice=computer:10000/my/energy/device</hkl>

For diffractometers of the types E4CV and E4CH the list of names to be used for setting the motors is:

<hkl>omega = motor/diffracmu_mag/01, chi = 5, phi = 4, tth = 13, crystal=/my/dir/with/crystal.txt, energydevice=computer:10000/my/energy/device</hkl>

For diffractometers of the type PETRA3 P23 6C the list of names to be used for setting the motors is:

<hkl>omega_t = motor/diffracmu_mag/01, mu = 2, omega = 3, chi = 5, phi = 4, gamma = 13, delta = 12,  crystal=/my/dir/with/crystal.txt, energydevice=computer:10000/my/energy/device</hkl>

For diffractometers of the type PETRA3 P23 4C the list of names to be used for setting the motors is:

<hkl>omega_t = motor/diffracmu_mag/01, mu = 2, gamma = 13, delta = 12,  crystal=/my/dir/with/crystal.txt, energydevice=computer:10000/my/energy/device</hkl>

It is possible (optional) to add a name of a file with the crystal parameters: crystal name, wavelength, lattice and reflections, in this case this file will be loaded after creating the diffractometer controller. It is also possible (optional) to add the name of the tango device with the energy for setting the wavelength automatically.

<hostname> refers to the hostname where the Pool is running (do not make the mistake of setting the one where the motor devices run).

<control> is tango (this item is not used in sardana, only in online).

2019-12-04