Start, monitor, and manage your solution’s runtime execution.
How-to → Solution Lifecycle How-to → Runtime | Tutorial | How-to Guide | Reference
Overview
This guide covers starting, monitoring, and managing runtime execution, including execution profiles, online changes, and troubleshooting.
Prerequisites
- Solution configured in Designer
- Appropriate runtime license
- Understanding of execution profiles
Starting the Runtime
Startup Methods
| Method | Steps | Use Case |
|---|---|---|
| Designer Test Mode | Press F5 or click Run Test | Development testing (2-hour limit) |
| Designer Full Runtime | Runtime → Startup → Run Startup | Development with profile selection |
| Solution Center | Select solution → Run in Profile | Production deployment |
| Command Line | TStartup.exe /solution:"name" /profile:Production | Automation/service mode |
Startup Sequence
- TStartup.exe loads solution and parses parameters
- TServer.exe starts real-time database
- Modules initialize (Historian, Alarms, Devices, Scripts)
- Execution profile applies settings
- Client connections become available
Command Line Parameters
TStartup.exe /solution:"MySolution" /profile:Production /username:admin /redundancy:primary| Parameter | Description |
|---|---|
| /solution: | Solution name or path |
| /profile: | Development/Validation/Production |
| /username: | Credentials if required |
| /redundancy: | Primary/secondary/standalone |
Execution Profiles
Profile Configuration
| Profile | Database | Storage | Security | Diagnostics |
|---|---|---|---|---|
| Development | SQLite local | Memory only | Minimal | Full trace |
| Validation | Test SQL Server | Test storage | Test credentials | Performance metrics |
| Production | Production SQL | Full storage | Full authentication | Errors only |
Configuring Profiles
- Go to Runtime → Execution Profiles
- Select profile to configure
- Set database connections
- Configure historian storage
- Define alarm database
- Adjust communication ports
Monitoring Runtime Status
Status Information
| Property | Location | Information |
|---|---|---|
| Solution Status | Runtime → Status | Running/stopped, uptime, profile |
| Module Status | Module Information | Individual module health |
| Resource Usage | Diagnostics | CPU, memory, threads |
| Communication | Devices status | Channel and node status |
Using Info Namespace
// Check runtime status
bool isRunning = @Info.Module.IsRunning;
string solution = @Info.Solution.Name;
bool testMode = @Info.TestMode;
// Write trace message
@Info.Trace("Runtime started successfully");
// Check license
int tagCount = @Info.License.TagCount;Online Configuration Changes
Hot Reload Capabilities
| Apply Without Restart | Requires Restart |
|---|---|
| - Tag values and limits - Display modifications - Script logic updates - Alarm conditions - User permissions | - Device channels - Database connections - Port assignments - Module enable/disable - License changes |
Applying Online Changes
- Make changes in Designer
- Save modified items (Ctrl+S)
- Click Apply Online Changes
- Select modules to update
- Confirm application
Client Connections
Connection Types
| Client Type | Setup | Access Method |
|---|---|---|
| Web Client | No installation | http://server/solution |
| Smart Client | Auto-download | Click-once deployment |
| Rich Client | Full installation | Desktop application |
| Mobile | Responsive design | Browser on device |
Build and Publish
Build Process
- Go to Runtime → Build
- Select build options: • Compile scripts • Validate displays • Check references
- Click Build
- Review output for errors
Publish Process
- Go to Runtime → Publish
- Set version number
- Choose publish options: • Read-only (.dbrun) • Encrypted • Include resources
- Click Publish
- Deploy .dbrun file
Runtime Diagnostics
Diagnostic Tools
| Tool | Purpose | Access |
|---|---|---|
| Property Watch | Monitor/modify tag values | Runtime → Diagnostics → Property Watch |
| Trace Window | View system messages | Runtime → Diagnostics → Trace Window |
| Module Information | Module performance metrics | Runtime → Diagnostics → Module Info |
Trace Levels
- Error - Critical issues only
- Warning - Warnings and errors
- Info - General information
- Debug - Detailed diagnostics
Stopping Runtime
Shutdown Methods
| Method | Steps | Notes |
|---|---|---|
| Designer | Runtime → Startup → Stop Runtime | Graceful shutdown |
| Solution Center | Select solution → Stop | Remote shutdown |
| Command line | TStartup.exe /solution:"name" /stop | Scripted shutdown |
| Emergency | Task Manager → End TServer.exe | Force stop |
Troubleshooting
Common Issues
| Issue | Check | Solution |
|---|---|---|
| Runtime won't start | License, ports, database | Check event log, verify connections |
| High CPU usage | Scripts, scan rates | Optimize scripts, reduce scan frequency |
| Memory growth | Historian, scripts | Check retention, dispose objects |
| Client can't connect | Firewall, services | Open ports, verify server running |
| Database fails | Connection string, network | Test connectivity, check credentials |
Best Practices Checklist
Startup
- Use appropriate profile for environment
- Test in Development before Production
- Document profile settings
- Backup before changes
Monitoring
- Set up critical error alerts
- Monitor resource usage trends
- Archive trace logs periodically
- Check module health daily
Online Changes
- Test changes in Development first
- Apply during low-activity periods
- Have rollback plan ready
- Document all changes
→ Modules / Solution Lifecycle / Runtime → Tutorials / Solution Lifecycle / Runtime Tutorial → How-to Guides / Solution Lifecycle / Runtime How-to Guide → Technical Reference / Solution Lifecycle / Runtime ReferenceRuntime Links
Explanation - to understand concepts
Tutorials - to learn by doing
How-to Guides - to accomplish specific tasks
Reference - technical details
In this section...