Any Tango attribute from any Tango device can be added as a counter to the MeasurementGroup.
There are basically two ways to accomplish this:
The first example creates a PseudoCounter for the Petra current:
<device> <name>petraCurrent</name> <type>counter</type> <module>tangoattributectctrl</module> <device>petra/globals/keyword/BeamCurrent</device> <control>tango</control> <hostname>haspp99:10000</hostname> </device>
The <device> tag has to contain not only the name of the device the attribute belong to but also the name of the attribute itself. <module> has to be 'tangoattributectctrl'.
The next example shows how a PseudoCounter is created which represents a channel of an input register:
<device> <name>ireg1value</name> <type>counter</type> <module>tangoattributectctrl</module> <device>p09/register/d1.in01/Value</device> <control>tango</control> <hostname>haspp99:10000</hostname> </device>
Alternatively one can use a modified syntax.
In general:
<device> <name>anyname_attributename</name> <type>counter</type> <module>tangoattributectctrl</module> <device>my/tango/device</device> <control>tango</control> <hostname>hasppXY:10000</hostname> </device>
A specific example:
<device> <name>h_position</name> <type>counter</type> <module>tangoattributectctrl</module> <device>pm/e6cctrl/1</device> <control>tango</control> <hostname>haspp99:10000</hostname> </device>
The <name> tag has to be composed of any name (ex. 'anyname') followed by _ and the name of the attribute to be read, and <device> is the name of the device this attribute belongs to. <module> has to be 'tangoattributectctrl'.
In expconf one have to select the item 'Other...' in the menu with all the available channels, this will open a device tree with all the tango devices in the TANGO_HOST. If the attribute does not belong to a Tango device with the same TANGO_HOST you will not see the device and correspondingly the attibute in the tree, but you can still use this tool for adding it. The way is clicking in the button '+' below the window with the device tree. This will create a line with '(Empty)' in the window below. By double clicking in this line you will be able to edit it, so write there the complete adress of the attribute, ej.:
haspp09mono:10000/p09/lks336tempctrl/exp.01/OutputA
p09/door/haso111tb [1]: defmeas mgtest exp_t01 haspp09mono:10000/p09/lks336tempctrl/exp.01/OutputA