README.md 1.64 KB
Newer Older
Jean-Luc Pons's avatar
Jean-Luc Pons committed
1
2
# Attribute combiner

Jean-Luc Pons's avatar
Jean-Luc Pons committed
3
AttributeCombiner is an advanced C++ multi channel that allows to group or merge scalar or spectrum attributes.
Jean-Luc Pons's avatar
Jean-Luc Pons committed
4
5
6
7
8
9
10
11
A 'States' spectrum attribute is automaticaly added which represents the state of all the sub device.

Here is the description of the device properties:

**DeviceList** List of devices

**AttributeList** List of attributes (9 fields per line)

Jean-Luc Pons's avatar
Jean-Luc Pons committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Name;Attribute list;Type;IsRW;IsSpectrum;IsGrouped;Length;Expert<br/>

*Name*: Attribute Name<br/>
*Attribute list*: Attribute name list to combine (coma separated)<br/>
*Type*: Type of the above Atttribute(s)<br/>
*IsRW*: Read write flag<br/>
*IsSpectrum*: true if attribute(s) is(are) a spectrum<br/>
*isGrouped*: Group all attributes to a single one (scalar only)<br/>
*Length*: Name of the self lenght attribute for combined spectrum, can also be a constant, 'None' otherwise.<br/>
*Expert*: Expert view (true or false)<br/>
*Alarm*: Set alarm if value are not all equal (true or false) for grouped attribute<br/>

Example:<br/>
T1TrigSource;T1TrigSource;DevLong64;true;false;true;None;false;true<br/>
SAHistoryEnable;SAHistoryEnable;DevBoolean;true;false;true;None;false;true<br/>
SAHistoryLength;SAHistoryLength;DevULong;true;false;true;None;false;true<br/>
Losses;SaA,SaB,SaC,SaD;DevLong;false;false;false;None;false;false<br/>
InjLosses;AvgSum;DevLong;false;true;false;4;false;false<br/>
Adc;AdcA,AdcB,AdcC,AdcD;DevShort;false;true;false;AdcLength;false;false<br/>
Jean-Luc Pons's avatar
Jean-Luc Pons committed
31
32
33
34
35

**AttributeRefList** List of attribute that are just R/W memory (May be use for reference attribute)

**DisabledDevices** List of disabled devices, you can enable or disable a device using EnableDevice or DisableDevice command.