Monokot Server 1.x
  • What is Monokot Server?
  • Quickstart
  • 🐸Basics
    • Supported OS and Hardware
    • Installation
    • Licensing
    • OPC UA
      • UA TCP Endpoint
      • UA Settings
      • Client Certificates
      • Aliases
      • Access to Object Settings
      • Troubleshooting
    • Security Certififcate
    • Users & Roles
    • Administrator GUI
      • Event Log
      • Users in Monokot Server Administrator
      • Roles in Monokot Server Administrator
    • Startup Parameters
  • 🦊Tags & Devices
    • Devices
      • Diagnostics
      • Devices in the Monokot Server Administrator
    • Tags
      • Parameters
      • Change Trigger
      • Tags in Monokot Server Administrator
        • Go Online
        • Group Action
        • Import & Export
    • Modbus Connectivity
      • Parameters
      • Addressing
      • Diagnostics
    • Siemens Connectivity
      • Parameters
      • Addressing
      • Access to DBs area in S7-1200/S7-1500
    • IEC 60870-5-104 Connectivity
      • Parameters
      • Addressing
      • Time Conversion
      • Diagnostics and Commands
    • OPC UA Connectivity
      • Parameters
      • Addressing
      • Diagnostics
      • How to: Importing OPC UA items
      • How to: Pulling Security Certificate
    • InfluxDB Connectivity (Connector)
      • Parameters
      • Addressing
      • Query Result and Data Mapping
      • Diagnostics
      • How to: Configure for InfluxDB 2.x
    • SNMP Connectivity
      • Parameters
      • Addressing
      • UDP Considerations
  • 🐺Time Series & Stores
    • Stores
      • Backlog
      • Diagnostics
      • Stores in Monokot Server Administrator
    • Time Series
      • Parameters
      • Deadband
      • Sampling
      • Last Sample Repeat
      • Time Series in Monokot Server Administrator
        • Group Action
        • Import & Export
    • InfluxDB Connectivity (Store)
      • Parameters
      • Addressing
      • Data Structure
      • About Metadata
      • Diagnostics
      • How to: Configure for InfluxDB 2.x
    • PostgreSQL Connectivity
      • Parameters
      • Addressing
      • Database Design
      • Data Compression
    • REST Connectivity
      • Parameters
      • Addressing
      • Message Script
      • RestRequestMessage
      • DataContext
      • TimeSeries
  • 🐻Scripts
    • Overview
    • Expression
      • Parameters
      • Import & Export
      • Go Online
    • Programming Examples
      • How to: Calculate Arithmetic Mean
      • How to: DoNothing
      • How to: Writing to Tag
      • How to: Inverting Bits
      • How to: Execute SQL
      • How to: Run Ping
      • How to: Do Simulation
      • How to: String Formatting
      • How to: OPC UA Method
      • How to: Initialize Device Settings from File
    • API
      • Bundle
      • BundlePair
      • Context
      • DataMap
      • DataMapPair
      • DataTriggerInfo
      • Expression
      • MosCrypto
      • MosDirectories
      • MosFiles
      • MosOdbc
      • MosOdbcReader
      • MosProcess
      • MosProcessExecuteResult
      • MosText
      • MosUtils
      • ValueState
Powered by GitBook
On this page
  1. Time Series & Stores
  2. Time Series

Sampling

PreviousDeadbandNextLast Sample Repeat

Last updated 2 years ago

The following sampling modes are available to represent continuous quantity as a time series: None, Discrete, and Analog. In fact these modes define whether the insert of extra sample between the current and the new samples is required or not.

Find more information about the presentation modes below. Please note that in all the images presented below the points indicate the samples that were written in a store. Data source was changing as follows:

Time

Value

2019-09-17 21:41:23.538

0.00

2019-09-17 21:42:12.818

80.00

2019-09-17 21:42:36.163

20.00

2019-09-17 21:42:40.182

50.00

2019-09-17 21:42:56.916

0.00

None Mode. In this mode extra sample is not created, values are sent to a store as they are.

Discrete Mode. In this mode before each new sample new extra sample is created. Its value is equal to the current sample, but time differs 1 millisecond from the new one.

Analog Mode. In this mode before each new sample extra sample is created depending on a condition: if the time interval between the current and the new samples is more than SamplingDeltaFactor ✕ DataSource.UpdateRate, the new sample will appear, otherwise - it will not. For example, data source with update rate 500 ms (DataSource.UpdateRate) is specified for the time series, SamplingDeltaFactor = 10. Current sample was received in 2019-09-17 21:42:12.818 (CurrentTime), and new sample - in 2019-09-17 21:42:36.163 (NewTime), Interval = SamplingDeltaFactor ✕ DataSource.UpdateRate = 500 ✕ 10 = 5000ms, Delta = DeltaMilliseconds(NewTime - CurrentTime) = 24655ms, Delta > Interval. So the extra sample would appear in a store. The value of the extra sample would be equal to the current sample, and time would differ 1 ✕ DataSource.UpdateRate from the new sample.

🐺