Configuration File in XML Format

<< Click to Display Table of Contents >>

 

Configuration File in XML Format

The configuration file in XML format must contain a RandomConfig node on its root. This node may have one or more Profiles. Each Profile may have one or more Categories, and each Category may also have sub-Categories. The next code contains an example of a configuration file.

<RandomConfig>
  <Profile Name="Random Default" Digital="0,1" Delay="100">
    <Cat Name="DefaultAnalog" Filter="N2=1" Analog="0,1000">
      <Cat Name="SlowDefaultAnalog" Filter="N2=1 AND N3=1" Delay="500"/>
    </Cat>
  </Profile>
</RandomConfig>

 

The previous configuration defines a Random Default profile with the following features:

Tags with the N2 and N3 parameters equal to 1 (one) are on the SlowDefaultAnalog Category, have an analog value ranging between 0 (zero) and 1000, inherited from the upper Category DefaultAnalog, and a delay of 500 milliseconds in all reading and writing operations

All other Tags with the N2 parameter equal to 1 (one) are on the DefaultAnalog Category, have an analog value ranging between 0 (zero) and 1000, and a delay of 100 milliseconds in reading and writing operations, that is, the default delay configured in the Profile

All other Tags are not on any Category and have the default features configured in the Profile, that is, return digital values, 0 (zero) or 1 (one), and have a delay of 100 milliseconds in all reading and writing operations

Was this page useful?