Execution Profiles manage database connections and device nodes for different environments, automating configuration changes between development, validation, and production stages.
Access: Runtime → Execution Profiles
Parent Page: Runtime Designer UI (Reference)
Execution Profiles eliminate manual configuration changes when moving solutions between environments:
Profile | Purpose | Typical Use |
---|---|---|
Production | No replacements | Live system |
Development | Dev connections | Testing/debugging |
Validation | Test environment | QA/staging |
Custom | User-defined | Lab/customer site |
Production profile uses solution's main configuration. Other profiles apply replacements at runtime.
For each profile (Development/Validation/Custom):
Setting | Function |
---|---|
Enable Profile Settings | Activate this profile |
Set ReadOnly on Modules | Prevent modifications |
On Startup Replace Connections | Define replacements |
Select modules to protect from changes:
Column | Description | Example |
---|---|---|
ReplaceObject | Object to replace | DB_Production |
Replace | Enable replacement | True/False |
TableType | Configuration table | DatasetsDBs |
ServerIP | New server address | 192.168.1.100 |
ReplaceConnection | New connection string | Full connection |
DateCreated | Entry creation | Timestamp |
DateModified | Last change | Timestamp |
Type | Table | Use Case |
---|---|---|
Database | DatasetsDBs | Different SQL servers |
Device Node | DevicesNodes | Different PLCs |
Historian | HistorianStorageLocation | Different storage |
TagProvider | UnsTagProviders | Different sources |
bash
# Development
TStartup.exe /solution:"solution.dbsln" /profile:1
# Validation
TStartup.exe /solution:"solution.dbsln" /profile:2
# Custom
TStartup.exe /solution:"solution.dbsln" /profile:3
AutoStart is Production-only by default. To run other profiles:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TStartup-<SolutionName>
# Original (Production)
TStartupService.exe /solution:"path\solution.dbsln" /port1:3101
# Modified (Development)
TStartupService.exe /solution:"path\solution.dbsln" /profile:1 /port1:3201
Profile | Command Parameter |
---|---|
Production | (none) |
Development | /profile:1 |
Validation | /profile:2 |
Custom | /profile:3 |
Common replacements:
Common replacements:
Use cases:
DO:
DON'T:
Monitor shows current profile:
Confirm replacements applied:
Issue | Cause | Solution |
---|---|---|
Profile not switching | Not enabled | Enable profile settings |
Connections unchanged | Replace unchecked | Check replacement flag |
Service wrong profile | Registry not updated | Edit ImagePath |
Port conflicts | Same port used | Change profile ports |
In this section: