Profiles

<< Click to Display Table of Contents >>

 

Profiles

Each configuration file in XML format may have several Profiles. This allows configuring several Drivers using a single file in XML format.

Each Profile is configured by a Profile node, which can have the next attributes:

Name: Name of a Profile, in String format, such as Name="DNPMaster Slow"

Dll: List of library names, comma-separated and without the extension, for which this Profile is automatically selected, such as Dll="DNPMaster,DNPSlave". If the current library name is DNPMaster.dll or DNPSlave.dll, this Profile is automatically selected

StartDelay: Delay time to start this Driver, in milliseconds. This can be a single value or two comma-separated values, and in this case a random value is selected in the specified range, such as StartDelay="4000,8000", which waits between 4 (four) and 8 (eight) seconds when this Driver starts

StopDelay: Delay time to stop this Driver, in milliseconds, such as StopDelay="2000,2500", which waits between two and two and a half seconds when this Driver stops

Errors: Defines a percentage of errors in reading and writing operations for this Profile, such as Errors="0.5%", in which at each 1000 reading operations, five may fail

ReadVariation: defines a percentage of reading operations that return different values from the previous reading operation, such as ReadVariation="10%", in which only 10% of the reading operations return different values from the previous reading operation, and therefore in 90% of reading operations the Tags have no variation

ReadDelay: Delay time before each reading operation, in milliseconds, such as ReadDelay="100,300", which waits between 100 and 300 milliseconds in each reading operation

WriteDelay: Delay time before each writing operation, in milliseconds, such as WriteDelay="2000,3000", which waits between 2 (two) and 3 (three) seconds in each writing operation

Delay: Delay time before each reading or writing operation, in milliseconds. It is only used if the ReadDelay or WriteDelay attributes are not specified. Configuring this attribute with the value 50, such as Delay="50", allows waiting 50 milliseconds before all reading and writing operations

Analog: Defines all Tags as analog values, such as Analog="-100,500", in which a Tag randomly varies between -100 and 500, or Analog="50", in which a Tag always return the value 50

Discrete: Defines all Tags as discrete or digital values, such as Digital="0,1", in which a Tag returns the value 0 (zero) or 1 (one), Discrete="5,10,15,20", in which a Tag returns one of the values 5 (five), 10, 15, or 20, or Discrete="<>", in which a Tag does not return any value

 

NOTE

Users cannot specify both Analog and Discrete attributes at the same time. To specify analog and digital values on the same Driver, users must configure a Category.

Was this page useful?