Lima has a dedicated device (running inside of the LimaCCDs Tango Server) which allows the definition of RoIs and computes the counts inside of the defined regions. These counts can be read as counters in Sardana. These counters are introduced in the online.xml file in the following way:
<device> <name>limaroi0</name> <type>counter</type> <module>limaroicounter</module> <device>p01/roicounter/eh2.01</device> <roi>0,0,1000,1000</roi> <control>tango</control> <hostname>haspp01eh2:10000</hostname> </device>
where <module> has to be limaroicounter and <device> is the name of the Tango device of the class RoiCounterDeviceServer running in the LimaCCDs Tango Server. The entry <roi> defines the RoI (x1, y1, x2, y2), that will be automatically set when Sardana is started.
The online.xml has to contain also the entry corresponding to the LimaCCDs device as a detector:
<device> <name>limaandor</name> <type>DETECTOR</type> <module>limaccd</module> <device>p01/limaccd/eh2.01</device> <control>tango</control> <hostname>haspp01eh2:10000</hostname> </device>
The twod experimental channel for the LimaCCDs device has to be always included in the MG if any of the counters for the RoIs is included.