GPA to SEL SynchroWave Operations Configuration Exporter
A .NET console application that exports synchrophasor data configurations from Grid Protection Alliance (GPA) time-series applications (such as openHistorian, openPDC, or SIEGate) to formats compatible with SEL SynchroWave Operations visualization system applications.
Overview
The SynchroWaveConfigExporter tool generates multiple CSV export files for use with SEL's SynchroWave Operations visualization platform:
- STTP Signal Mappings - Maps synchrophasor measurements to SEL SynchroWave Operations signal identifiers for the IEEE 2664 data transport standard. This allows SEL SynchroWave Operations to automatically ingest all available measurements without manual configuration.
- Power System Model - Exports station, bus, and line topology information.
- Dash Menu - Creates hierarchical folder structures for organizing visualizations, e.g., by station and voltage level.
The exporter connects to an existing GPA application database (e.g., openHistorian) and automatically extracts device configurations, phasor definitions, and measurement metadata.
Features
- Automatic Database Discovery - Reads configuration from installed GPA service registry keys
- STTP Signal Mapping - Generates
MeasurementPoint identifiers compatible with SEL SynchroWave Operations using intelligent character reduction and naming convention parsing to meet the 16-character limit
- Power System Topology - Extracts station locations, bus voltages, and transmission line connections
- Signal Cross-Reference - Writes a companion CSV linking each exported openHistorian measurement (point tag, signal ID, signal reference) to its SEL signal, since the SEL mapping file identifies a measurement only by device acronym and description
- Frequency Mapping - Maps each device's frequency and dF/dt signals to the device's bus-voltage measurement point (where frequency is derived), deterministically, since SynchroWave allows each source signal to appear only once in the mapping file
- Dash Menu Generation - Creates hierarchical visualization folder structures, then appends user-maintained custom menu entries so they survive every re-export
- Naming Convention Parsing - Extracts station names, line names, and voltage levels from device-centic metadata
- Alternate Tag Management - Optionally persists generated mappings back to the source database for consitent future runs
Requirements
- Access to an installed GPA application (openHistorian, openPDC, or SIEGate)
- Database access permissions to the GPA application's configuration database
Build Instructions
Prerequisites
Building from Source
# Clone the repository
git clone https://github.com/GridProtectionAlliance/SynchroWaveConfigExporter.git
cd SynchroWaveConfigExporter
# Build the project
dotnet build -c Release
# Publish as a self-contained executable (optional)
dotnet publish -c Release -r win-x64 --self-contained
Output Location
- Build:
bin/Release/net9.0/
- Publish:
bin/Release/net9.0/win-x64/publish/
Installation
Option 1: Run from Build Directory
cd bin/Release/net9.0
SynchroWaveConfigExporter.exe
Option 2: Deploy Published Executable
Copy the contents of the publish directory to your desired installation location and run SynchroWaveConfigExporter.exe.
Usage
Basic Execution
Simply run the executable from a command prompt or PowerShell:
SynchroWaveConfigExporter.exe
The application will:
- Locate the configured GPA host service via Windows registry
- Read the database connection settings from the service's configuration file
- Export all configured data to CSV files in the current directory
- Display export statistics and any warnings
Example Output
SynchroWave STTP Configuration Exporter
=======================================
Connected to database: openHistorian
Exporting SEL STTP Signal Mappings...
Total measurements loaded: 45,123
Measurements exported: 42,567
Alternate tags generated: 42,567
Invalid alternate tags (too long): 23
Frequency mapped to bus point: 45 device(s); single-point devices: 153; own point (no phasors): 0
Exporting Power System Model...
Total devices analyzed: 234
Devices with phasors: 198
Total phasors loaded: 1,234
Coordinate groups found: 87
DFR devices found: 45
Line terminal, PMU devices found: 153
Stations exported: 87
Buses exported: 156
Lines exported: 234
Exporting Dash Menu...
Stations loaded: 87
Buses loaded: 156
Lines loaded: 234
Substation paths: 87
Voltage level groups: 4
Line paths (by voltage): 234
User-maintained entries appended: 3 (from "C:\Program Files\SynchroWaveConfigExporter\user-dash-menu.txt")
Total paths exported: 328
Export Complete!
Output Files:
SEL Signal Mappings: sel-sttpreader-signalmappings.csv
Signal Cross-Reference (openHistorian point tag to SEL signal, not for import): openhistorian-sel-signal-crossref.csv
Stations: sel-powersystemmodel_stations.csv
Buses: sel-powersystemmodel_buses.csv
Lines: sel-powersystemmodel_lines.csv
Dash Menu: dash-menu.txt
Configuration
Configuration settings are stored in defaults.ini / settings.ini in the application directory. The settings files are automatically created on first run with default values in the defaults.ini file. You can modify these settings in settings.ini to customize the export behavior.`
Available Settings
| Setting |
Default Value |
Description |
HostService |
openHistorian |
Name of the GPA host service to load configuration from (e.g., openPDC, openHistorian, SIEGate) |
DefaultInstallPath |
C:\Program Files\openHistorian\ |
Default installation path if registry lookup fails |
SttpSelConfigCsvPath |
sel-sttpreader-signalmappings.csv |
Output path for STTP signal mappings CSV |
SignalCrossReferenceCsvPath |
openhistorian-sel-signal-crossref.csv |
Output path for the cross-reference CSV linking each exported openHistorian measurement (PointTag, SignalID, SignalReference) to its SEL MeasurementPoint and Quantity; not imported into SynchroWave, blank disables it |
StationsCsvPath |
sel-powersystemmodel_stations.csv |
Output path for stations CSV |
BusesCsvPath |
sel-powersystemmodel_buses.csv |
Output path for buses CSV |
LinesCsvPath |
sel-powersystemmodel_lines.csv |
Output path for lines CSV |
DashMenuPath |
dash-menu.txt |
Output path for dash menu file |
UserDashMenuPath |
user-dash-menu.txt |
User-maintained dash menu text file whose entries are appended to the automated output (relative paths resolve against the application directory) |
PersistAlternateTags |
false |
Whether to write MeasurementPoint mappings back to the AlternateTag field in the database |
ExcludedPrefixes |
ETR, EES, ESI |
Comma-separated device prefixes to exclude from signal mappings |
MapPowerQuantities |
false |
Whether to include power (MW, MVAR, MVA) calculations in signal mappings |
IncludeVoltageGroupedLines |
true |
Whether to include voltage-level grouped lines in the dash menu |
MapFrequencyToAllMeasurementPoints |
false |
Whether a device's frequency and dF/dt signals are mapped to every measurement point derived from that device instead of only its bus-voltage point (else its first point). Leave false: SynchroWave allows each source signal to appear only once in the mapping file |
Example Configuration File
[System]
; Power system model buses CSV output path
BusesCsvPath=sel-powersystemmodel_buses.csv
; Dash menu file output path
DashMenuPath=dash-menu.txt
; Default installation path for the host service
DefaultInstallPath=C:\Program Files\openHistorian\
; Other prefixes to be excluded from 'MeasurementPoint' mappings
ExcludedPrefixes=[string[]]:ETR;EES;ESI
; Name of the host service to load configuration from, e.g., 'openPDC', 'openHistorian', or 'SIEGate'
HostService=openHistorian
; Indicates whether to include voltage-level grouped lines in the dash menu
IncludeVoltageGroupedLines=[bool]:True
; Power system model lines CSV output path
LinesCsvPath=sel-powersystemmodel_lines.csv
; Indicates whether a device's frequency and dF/dt signals are mapped to every measurement point derived from that device instead of only its bus-voltage point (else first point); leave false - SynchroWave allows each source signal to appear only once in the mapping file
MapFrequencyToAllMeasurementPoints=[bool]:False
; Indicates whether power quantities should be mapped to 'MeasurementPoint' mappings
MapPowerQuantities=[bool]:False
; Indicates whether 'MeasurementPoint' mappings should be persisted to 'AlternateTag' field
PersistAlternateTags=[bool]:False
; Power system model stations CSV output path
StationsCsvPath=sel-powersystemmodel_stations.csv
; Cross-reference CSV output path linking each exported openHistorian measurement (PointTag, SignalID, SignalReference) to its SEL MeasurementPoint and Quantity; not imported into SynchroWave, leave blank to disable
SignalCrossReferenceCsvPath=openhistorian-sel-signal-crossref.csv
; STTP SEL configuration CSV output path
SttpSelConfigCsvPath=sel-sttpreader-signalmappings.csv
; Path to a user-maintained dash menu text file whose entries are appended to the automated dash menu output; a relative path is resolved against the application directory
UserDashMenuPath=user-dash-menu.txt
User-Maintained Dash Menu Entries
Everything in the exported dash menu file is derived from the database and is regenerated on every run, so edits made directly to dash-menu.txt are lost on the next export. Custom dashboard menu items are instead maintained in a separate text file, by default user-dash-menu.txt next to the executable (override the location with the UserDashMenuPath setting). On each run the exporter writes the automated menu paths first, then appends the entries of the user-maintained file, so the final dash-menu.txt always combines both parts.
The user-maintained file lists one menu path per line, using the same format as the automated entries:
/Custom/Operations Overview
/Custom/Operations Overview/System Frequency
/Custom/Reports
When merging, surrounding whitespace is trimmed, blank lines are removed, and an entry that exactly duplicates an automated (or earlier user-maintained) entry is skipped. The file is optional: when it does not exist, the exporter notes this in its output and writes the automated entries alone.
Customization for Different Utilities
The exporter includes utility-specific naming convention logic in DeviceHelper.cs. The default implementation includes patterns specific to Entergy's synchrophasor naming conventions.
Key Methods to Customize
If you need to adapt this tool for a different utility's naming conventions, focus on the following methods in DeviceHelper.cs:
1. Device Type Identification
/// <summary>
/// Checks if a device is a PMU (line-terminal) device based on naming convention.
/// </summary>
public static bool IsPMUDevice(string? device)
Default Pattern: STATION_P_NNN4 (where NNN = 3 letters, 4 = 1 digit)
Customize for: Your utility's PMU device naming pattern
/// <summary>
/// Checks if a device is a DFR (Digital Fault Recorder) device.
/// </summary>
public static bool IsDFRDevice(string? device)
Default Pattern: Contains _D_
Customize for: Your utility's DFR device naming pattern
/// <summary>
/// Determines whether the specified token is a non-name marker.
/// </summary>
public static bool IsNonNameMarker(string token)
Default Markers: D, P, EPN, EPI, ENN, ENI, NPN, NPI, NNN, NNI
Customize for: Your utility's device type codes and regional identifiers
2. Station Name Extraction
/// <summary>
/// Extracts the PMU base name (station name) from a device acronym.
/// </summary>
public static string? ExtractPMUBaseName(string? device)
Default Logic: Strips everything after _P_ marker
Customize for: How your utility encodes station names in PMU device acronyms
/// <summary>
/// Extracts station name from DFR device acronym.
/// </summary>
public static string? ExtractStationFromDFRAcronym(string? acronym)
Default Pattern: STATION_UNITNUM_D_XXX → extracts STATION
Customize for: Your utility's DFR naming convention