_archive
| Attribute (neutral) | Type | Description | 
|---|---|---|
| _archive | bool | Should variable in the archive be saved | 
| _class | dpid | References of the archive class | 
| _round_inv | bool | Should rounding value be inverted | 
| _round_val | int | Rounding value | 
| _std_time | time | Time interval of the standard smoothing procedure | 
| _std_tol | float | Tolerance value of the standard smoothing procedure | 
| _std_type | int | Type of standard smoothing procedure (tolerance/time/comb ...), see _smooth | 
| _type | int | Type of archive settings | 
Constants for the ".._type" attribute
| CTRL constant | int value | Description | 
|---|---|---|
| DPCONFIG_NONE | 0 | No archive settings | 
| DPCONFIG_DB_ARCHIVEINFO | 45 | Archive settings | 
"_archive.<i>._type" attribute
| CTRL constant | int value | Description | 
|---|---|---|
| DPATTR_ARCH_PROC_SIMPLESM | 3 | Archive smoothing is used | 
| DPATTR_ARCH_PROC_VALARCH | 15 | Data archived in History DB | 
 Example
Example
Applies an "_archive" config for the 1st day archive (archive number 3) with value-dependent smoothing:
 main()
{
  dpSetWait("TestDP_1.element:_archive.._type",
  DPCONFIG_DB_ARCHIVEINFO,
  "TestDP_1.element:_archive.._archive", TRUE,
  "TestDP_1.element:_archive.1._type",
  DPATTR_ARCH_PROC_VALARCH,
  "TestDP_1.element:_archive.1._class",
  "System1:_ValueArchive_3",
  "TestDP_1.element:_archive.1._std_type",
  DPATTR_VALUE_SMOOTH,
  "TestDP_1.element:_archive.1._std_tol", 10);
}The following table shows the ASCII file which can be used for configuring the data points (see ASCII-Manager):
| ElementName | TypeName | DetailNo | _archive.._type | _archive.._archive | _archive.._class | 
|---|---|---|---|---|---|
| element | TestDP | 45 | 1 | ||
| element | TestDP | 1 | 15 | System1:_ValueArchive_3 | 
For further details on the config "_archive", see chapter Module PARA - _archive (archiving).
