ntroduction to the Runtime

The Runtime Environment is the active stage where a Solution starts and operates. 

Executing a Solution, or starting the Runtime, involves:

When the Runtime Environment loads the module's configuration. Some settings, such as network addresses and database connections, can be applied according to the execution profile. Profiles enable the same solution configuration to interface with various databases and devices, accommodating different phases of the solution life cycle, such as Development, Validation, or Production.

Key Concepts and Terms

The purpose of the Runtime Environment is to actively operate configured solutions, executing real-time data acquisition, scripts, alarms, and all items from all modules. It represents the essential final phase of solution development, delivering the application's functionality. 

Runtime

The term "Runtime" or "Runtime Environment" refers to the execution environment when the solution is running, distinguishing it from the Configuration (or Engineering, or Development) phase. "Runtime" also denotes the software components and computer processes that are in execution when the solution is started. 

Execution Profile

An Execution Profile consists of settings that allow customization of database connections and device network addresses. This enables the management of different environments.

Online Configuration

This feature allows real-time modifications to a running solution without stopping its execution. Users can adapt the solution to changing requirements, enhancing flexibility and responsiveness.

Hot Updates / Hot Reload

Hot Updates are a subset of online configurations that allow the application of offline solution changes without disrupting the runtime environment. They maintain solution stability and prevent downtime, ensuring the solution remains up-to-date with the latest changes.

Build and Publish

The Build process involves compiling the solution code. The Publish process creates a read-only version of the solution for distribution in regulated sites.

Understanding the Runtime Environment

Real-Time In-Memory Database

When the solution is in execution, variables like Tags, Templates, and Assets are loaded into the memory. These variables act as a central point of reference, allowing other functional modules to request or publish values as they perform their functions. The computer process and executable responsible for maintaining the real-time database is TServer.exe. This application can run as a Windows Service or be deployed to Linux and other supported operating systems.

Runtime Fundamentals

Startup Procedure

→ For details on the startup procedure review the Runtime Startup Settings page.

→ For details on setting up the execution review the Solution Deployment (Reference) page.

untime Execution Overview

During Runtime, the Four Pillars transform from static configuration into an active system. Each pillar operates as an independent yet interconnected layer, with data flowing from field devices through the foundation layer, processed by business logic, and presented to users through visualization interfaces.

On this Page:


Key Concepts


What Happens at Runtime

When a solution starts, each pillar activates in sequence:

  1. Foundation loads - Tags and templates enter memory
  2. Process modules connect - Field devices start communicating
  3. Application logic initiates - Scripts and datasets begin processing
  4. Interface serves - Displays become available to clients

Pillar Interactions

Data Flow Pattern

[Field] → [Devices] → [UNS Tags] → [Scripts] → [Displays]
           ↓            ↓            ↓           ↓
        [Alarms]    [Historian]  [Datasets]  [Clients]

Communication Methods

From Pillar

To Pillar

Method

Process → FoundationTag writesDirect memory update
Foundation → ApplicationTag changesEvent notifications
Application → FoundationCalculated valuesTag writes
Foundation → InterfaceValue updatesSubscription/publish
Interface → FoundationOperator commandsTag writes

Execution Profiles

Different runtime behaviors for the same configuration:

Development Profile

Production Profile


Runtime & Clients — Overview



The Runtime executes your solution (real-time tags, UNS, modules, utilities). Clients (desktop & web) visualize and interact with the running system. This page explains how execution works and how clients connect.


On this page



Runtime Components

Component

Function

Access

TServerCore execution engineRuns as service
Tag DatabaseReal-time data storageIn-memory
Module EnginesExecute specific functionsAuto-started
Client ServerServes displays to clientsTCP port 9000

Execution Modes

Development Mode

Production Mode

Monitoring Runtime

  1. Runtime Information
  2. Property Watch
  3. Diagnostics

Runtime (Concept)

Runtime Module Overview

The Runtime Module executes your configured solution, transforming the static configuration into an active system. It loads tags into memory, processes real-time data, executes scripts and alarms, and serves information to clients - making your solution come alive.

On this Page:


Key Concepts


What It Does

Runtime Behavior

How Runtime Works

When you start the Runtime:

  1. Solution loads - Configuration is read from the .dbsln file
  2. Memory initialization - Tags and templates load into RAM
  3. Modules start - Devices, Alarms, Historians begin operation
  4. Data flows - Real-time values update across the system
  5. Clients connect - Displays can now show live data

Development vs Production

Aspect

Development

Production

PurposeTesting and debuggingLive operation
DatabaseLocal SQLiteSQL Server
DiagnosticsFull loggingMinimal overhead
ChangesOnline edits allowedProtected operation
PerformanceDebug informationOptimized speed

Simple Monitoring

Access runtime information through:


Feature Highlights

Easy Execution

Real-Time Operation

Development Features

Production Ready

Built-in Diagnostics

Performance Characteristics

Memory Usage by Pillar

Pillar

Primary Memory Use

Typical Range

Foundation (UNS)Tag values, templates100MB - 2GB
Process ModulesCommunication buffers50MB - 500MB
Application ModulesScript execution100MB - 1GB
User InterfaceDisplay cache50MB - 200MB per client

Processing Distribution

Parallel Execution: Each pillar's modules run independently

Priority Management: Critical operations get precedence

Startup Sequence

  1. TServer.exe starts (< 5 seconds)

  2. Module activation (5-30 seconds)

  3. Steady state (< 60 seconds)


untime Behavior

Solution Management Process

The Solution Center maintains a real-time view of all available solutions through file system monitoring and server connections. Solution files (.dbsln) contain complete configurations as encrypted embedded SQL databases, enabling portability and backup.

Access Methods

Solution Center supports three primary access modes:

Local Access: Direct file system access to solutions on the local computer

Server Connection: Remote access via TWebServices

Web UI Access: Browser-based interface

Solution Execution States

StateDescriptionVisual Indicator
StoppedSolution not runningGray icon
RunningActive in RuntimeGreen icon
DesigningOpen in DesignerBlue icon
ErrorExecution failureRed icon
StartingInitialization phaseYellow icon