As described in section 10.2.11 the counts in defined RoIs can be used as counters in Sardana. These counters can be introduced in the measurement group like any other counter.