1D devices: AmptekPX5, Kromo, SPADQDigitizer, TDCRoentdekCoboldPC

The AmptekPX5 device can be introduced in sardana as counter, getting the counts in a given RoI (described in 10.2.11) or as oned experimental channel, getting the whole spectrum. The controller for the AmptekPX5 as oned experimental channels works as an slave of the counter one, for that reason a measurement group requires always a amptek counter if the amptek as oned is included. The entry in the online.xml looks like:

<device>
 <name>amptek_spectrum</name>
 <type>mca</type>
 <module>amptekoned</module>
 <device>petra3/amptek/01</device>
 <control>tango</control>
 <hostname>haso113u:10000</hostname>
</device>

where <module> has to be amptekoned and <name> is arbitrary.

The Kromo detector has to be included in the online.xml setting <module> to kromo, ex.:

<device>
 <name>kromo1</name>
 <type>detector</type>
 <module>kromo</module>
 <device>p09/kromotx1easyxafs/exp.01</device>
 <control>tango</control>
 <hostname>haspp09mono:10000</hostname>
</device>

The Kromo RoIs as counters can be introduced as described in 10.2.11.

The SPADQDigitizer can be introduced in Sardana as OneD detector, getting the whole spectrum. Since the SPADQDigitizer has the two channels in the same tango device, the name of the spectrum attribute corresponding to the channel that want to be integrated in Sardana, has to be given in the online.xml file. For example, for introducing both channels in Sardana:

<device>
 <name>spadq_cha</name>
 <type>type_tango</type>
 <module>spadq</module>
 <device>khz1/spadqdigitizer/khz1.01/DataStreamChA</device>
 <control>tango</control>
 <hostname>cfeld-pcx39081:10000</hostname>
</device>

<device>
 <name>spadq_chB</name>
 <type>type_tango</type>
 <module>spadq</module>
 <device>khz1/spadqdigitizer/khz1.01/DataStreamChB</device>
 <control>tango</control>
 <hostname>cfeld-pcx39081:10000</hostname>
</device>

They can be also be introduced independently using only the corresponding entry. The OneD class for the SPADQDigitizer offers the possibility of defining RoIs and compute the counts in the defined ones. The attributes with the Counts can be added to the active Measurement Group as an external channel and registered during the scan. The Cobold is included in sardana with:

<device> <name>cobold1</name> <type>mca</type> <module>cobold</module> <device>p04/tdccoboldctrl/exp1.01</device> <control>tango</control> <hostname>haspp04exp1:10000</hostname> </device>

If you add then cobold1 (or the name you give it) in the Measurement Group you will set the ExposureTime and will run ClearAllHistograms and StartAcquisition at each point of the scan. In order to have the counts as counters in sardana you have to add them with an entry like:

<device> <name>CountsCoboldCh1</name> <type>counter</type> <module>tangoattributectctrl</module> <device>p04/tdccobold/exp1.01/Counts</device> <control>tango</control> <hostname>haspp04exp1:10000</hostname> </device>

for each of the axis (changing <name> and <device> in each entry), and adding them to the measurement group you will read them at each point of the scan. The histograms will be written to files by the Cobold PC.