MCA8715, MythenRoIs, Mythen2, EigerPSI

The entry in the online.xml file for one of these counters looks like:

<device>
 <name>mycountername1</name>
 <type>counter</type>
 <module>mca8715roi</module>
 <device>test/mca/ex.01/counts1</device>
 <control>tango</control>
 <hostname>haso113u:10000</hostname>
</device>

<module> has to be mca8715roi for the devices of the MCA8715 class and mythenroi for devices of the MythenRoIs, Mythen2 and EigerPSI ones. <device> has to contain not only the name of the Tango device but also of the Tango attribute with the counts.

Here is an example introducing three of these counters from devices of the MCA8715 class, two of one mca device and one of a different one:

<device>
 <name>mycountername1</name>
 <type>counter</type>
 <module>mca8715roi</module>
 <device>test/mca/ex.01/counts1</device>
 <control>tango</control>
 <hostname>haso113u:10000</hostname>
</device>

<device>
 <name>mycountername2</name>
 <type>counter</type>
 <module>mca8715roi</module>
 <device>test/mca/ex.01/counts2</device>
 <control>tango</control>
 <hostname>haso113u:10000</hostname>
</device>

<device>
 <name>mycountername3</name>
 <type>counter</type>
 <module>mca8715roi</module>
 <device>test/mca/ex.02/counts1</device>
 <control>tango</control>
 <hostname>haso113u:10000</hostname>
</device>

Here is an example of how to set 2 regions of interest:

 
In [1]: import PyTango
In [2]: p = PyTango.DeviceProxy( 'p99/mca/eh.01')
In [3]: p.NbRoIs = 2
In [4]: p.RoIs = [[0,8192], [0,3144]]