From OpenSCADAWiki
Jump to: navigation, search

Data:
The data acquisition mode/source (enumeration — TVArchive::SrcMode):

  • SaveCur (-1) — save current mode in the commands;
  • Passive (0) — passive mode of the data acquisition, the source puts the data into the archive itself;
  • DAQAttr (1) — the data acquisition from the DAQ attribute when the DAQ attribute puts the data into the archive itself;
  • ActiveAttr (2) [DEPRECATED] — active mode of the data acquisition from the DAQ attribute when the DAQ attribute is periodically polled by the subsystem "Archives";

The data combination mode (enumeration — TVArchive::CombMode):

  • MovAver (0) — moving average;
  • LastVal (1) — last-previous value;
  • MinVal (2) — minimum value;
  • MaxVal (3) — maximum value.

Data modes of the service request "Requesting for values of the specified value archive" (enumeration — TVArchive::ServReqDtMode):

  • DMSimple (0) — simple record, one item per line;
  • DMPack (1) — packed record, one adjacent equal (rounded) value per line;
  • DMBin (2) — array of unpacked binary values encoded by Base64.