Still another question about generating XML setup file.
For some tag like "Slot", you have to provide an "Index" for the channel or variable linked to the slot.
How is defined / calculated the text and values inside this tag ?
For example :
<Description>Status espace disque dur dispo</Description>
Do you have an idea ? Is it possible to know what the ; seperated values mean and how to get them ? like 7000 ? and 2 and 0 ?
Thanks a lot !
Have a nice day !
Ok I found this in an old XML documentation file (http://www.dewesoft.com/download?file=Dewesoft7XML... ) :
"To add a channel to this calculation, it must be start with brackets, then
the keyword Ch, then with the index and with ending bracket. Please refer to
Index keyword in OutputChannel section of this manual. Examples for AI0:'Ch;1;0'
or example for PAD module in slot 1 - Ch3: 'Ch;1000;0;1;3'.",
It is clear for AI0 (slot 1, channel 0) but for PAD module (slot 1, channel 3) and where does the 1000 and 0 come from ? 'Ch;1000;0;1;3'
Okay... I digged into documentation, found out :
"Description: Each channel has an index to which it is referenced by displays. The index is fixed and must follow certain rules.
The first level defines the channel group. For example analog inputs must have first level 1 and then the channels in order 1;0 1;1 1;2 and so on. The best way to find the index of certain channel is to save XML setup and look at indexes of certain channels.
Please note that it is not needed to write this field when creating offline setup. It is only needed when referencing the channel (for example from formula).
The first level of index is often written as the alias name to define the group. Here is the list of groups with their aliases and names:
AI ... 1
DI ... 100
CNT ... 200
PAD ... 1000
CAN ... 2000
GPS ... 4000
Math ... 7000
Plugins ... 100000
Remote ... 102000
AO ... 200000
Variables ... 600000
Video ... 700000"
Now it is clear !
Sorry for disturbing :D