-
Notifications
You must be signed in to change notification settings - Fork 0
Harmonic Correction System — Software Operation Manual
Version: v1.0.0
Target Audience: G-Type Test Bench Operators
Last Updated: 2026-06-01
- Software Overview
- Installation and Startup
- Main Interface Overview
- Initial Setup
- Core Workflow
- Menu Reference
- Frequently Asked Questions
This software is designed for G-Type Test Bench Harmonic Correction. When a test bench outputs harmonics, deviations may exist between the actual measured values and the target setpoint values. This software imports measured Excel data, automatically calculates correction coefficients, and generates corrected transmission parameters so that subsequent tests produce outputs closer to the target values.
| Feature | Description |
|---|---|
| Bench Management | Add, edit, and delete test bench information (ID, name, range, communication method) |
| Scheme Management | Create multiple correction schemes per bench, with configurable voltage/current references and tolerance (optional) |
| Excel Import | Read harmonic setpoint and measured values from Excel files (.xls format) |
| Correction Calculation | Automatically compute correction coefficient K, generate new voltage/current send values and phase send values |
| Result Export | Export correction results to Excel files |
| Operation Log | Automatically record all operations (import, correction, export, errors); viewable and exportable |
- Harmonic Order: 2–31 (fundamental 1st order excluded)
- Amplitude: 0%–40%
- Phase Angle: –180° to 180°
| Requirement | Details |
|---|---|
| Operating System | Windows 7 / 10 / 11 (32-bit or 64-bit) |
| Dependency |
sqlite3.dll must be in the same directory as HarmonicCorrector.exe
|
| Disk Space | Approximately 5 MB |
Harmonic correction/
├── HarmonicCorrector.exe ← Main executable, double-click to run
├── sqlite3.dll ← Database engine
├── HarmonicCorr.db ← Database file (auto-created on first run)
└── data/ ← Data folder (optional)
Double-click HarmonicCorrector.exe to launch. On first run, the software automatically creates the database and inserts default bench and scheme entries.
After launch, the main interface contains the following areas:
┌─────────────────────────────────────────────────────┐
│ Menu Bar File Management Help │
├─────────────────────────────────────────────────────┤
│ [Dashboard] [Correction] [Log] ← 3 tabs │
├─────────────────────────────────────────────────────┤
│ │
│ Content area of the active tab │
│ │
├─────────────────────────────────────────────────────┤
│ Status Bar Harmonic Correction System | Status │
└─────────────────────────────────────────────────────┘
Displays a summary of the software status:
| Item | Description |
|---|---|
| Database Status | Shows "Connected" or "Disconnected" |
| Database Path | Current database file location |
| Data Directory | Application working directory |
| Bench Count | Number of registered test benches |
| Scheme Count | Total number of created schemes |
| Quick Guide | Brief operation steps |
A "Reinitialize Database" button at the bottom resets to default settings (use with caution — clears all existing data).
This is the core workspace, laid out as follows:
┌──────────────┬──────────────────────────────────────┐
│ TreeView │ StringGrid (15-column data table) │
│ (Bench/ │ │
│ Scheme │ ┌──────────────────────────────┐ │
│ tree) │ │ # │Harmonic│V_Set│V_Meas│... │ │
│ │ ├───┼─────── ─┼─────┼──────┼───┤ │
│ ├ 526001 │ │ 1 │ 2 │ 100 │ 98 │... │ │
│ │ ├ Standard│ │ 2 │ 3 │ 100 │ 97 │... │ │
│ │ └ HighPrec│ └──────────────────────────────┘ │
│ └ 526002 │ │
│ │ [Import Excel][Calculate][Export] │
└──────────────┴──────────────────────────────────────┘
Left — TreeView: Select a bench and scheme. A scheme must be selected before importing data.
Right — Data Table: Displays the imported harmonic data in 15 columns:
| # | Column | Description |
|---|---|---|
| 1 | Harmonic Order | Harmonic order (2–31) |
| 2 | V_Set% | Voltage setpoint |
| 3 | V_Meas% | Voltage measured value |
| 4 | V_Corr_K | Voltage correction coefficient K |
| 5 | V_Send% | Corrected voltage send value |
| 6 | I_Set% | Current setpoint |
| 7 | I_Meas% | Current measured value |
| 8 | I_Corr_K | Current correction coefficient K |
| 9 | I_Send% | Corrected current send value |
| 10 | Phase_Set° | Phase setpoint |
| 11 | Phase_Meas_RD° | Measured phase RD |
| 12 | Phase_Dev° | Phase deviation Qm |
| 13 | Phase_Send° | Corrected phase send value Qns |
| 14 | Phase_OK? | Whether phase is within tolerance |
| 15 | Iters | Iteration count |
Bottom Buttons:
| Button | Function |
|---|---|
| Import Excel | Open a .xls file and read harmonic data |
| Calculate | Execute the correction algorithm; compute K coefficients and new send values |
| Export Excel | Export current results to a .xls file |
Displays all operation records in a list:
| Column | Description |
|---|---|
| Time | Operation timestamp |
| Bench | Bench ID |
| Scheme | Scheme ID |
| Harmonic | Harmonic order |
| Action | Operation type (CORRECTION / EXPORT / ERROR) |
| Result | Operation result |
Bottom buttons:
| Button | Function |
|---|---|
| Clear Log | Delete all log records |
| Refresh Log | Reload log entries from the database |
Before using the correction features, benches and schemes must be configured.
Open the Bench Manager via Management → Bench Manager.
- Click the Add button
- In the dialog, enter the following:
-
Bench ID (e.g.
526001) -
Bench Name (e.g.
G-Type Single-Phase Bench) - Voltage Range (V, default 220)
- Current Range (A, default 5)
- Communication Method (RS232 / RS485 / TCP, default RS232)
-
Bench ID (e.g.
- Click OK to save
- Select the bench in the list
- Click the Edit button
- Modify the information and click OK
- Select the bench in the list
- Click the Delete button
- Confirm deletion
⚠️ Warning: Deleting a bench also removes all associated schemes and correction records. This action cannot be undone.
Open the Scheme Manager via Management → Scheme Manager.
- Select the target bench from the top dropdown (or keep "All")
- Click the Add button
- Enter scheme information:
-
Scheme Name (e.g.
Standard) -
Scheme Description (e.g.
Default correction parameters) - Voltage Reference (%, default 100)
- Current Reference (%, default 100)
- Fundamental Phase Angle (°, default 0)
- Target Tolerance (%, default 1)
-
Scheme Name (e.g.
- Click OK to save
Same steps as bench management.
The complete correction workflow consists of 4 steps:
Select Scheme → Import Excel → Calculate → Export Results
- Switch to the Correction tab
- Expand the target bench in the left tree view
- Click to select a scheme (the scheme name will be highlighted)
- The status bar will display "Scheme selected: xxx"
💡 If no benches or schemes are visible, add them first via the Management menu.
The Excel file must be in .xls format (Excel 97-2003 Workbook), with the following column structure:
| Column | Content | Example | Required |
|---|---|---|---|
| A | Harmonic Order | 2, 3, 4, ..., 31 | ✅ Yes |
| B | Voltage Setpoint (%) | 100, 50, 30 | ✅ Yes |
| C | Current Setpoint (%) | 100, 80, 60 | ✅ Yes |
| D | Voltage Measured (%) | 98.5, 48.2 | Optional |
| E | Current Measured (%) | 97.3, 79.1 | Optional |
| F | Phase Setpoint (°) | 0, 15, 30 | Optional |
| G | Phase Measured RD (°) | 2.3, 14.8 | Optional |
📌 Data begins at row 4 (the first 3 rows can be headers or comments and will be automatically skipped).
- Click the Import Excel button
- Select a .xls file in the file dialog (.xlsx is not supported)
- The software automatically reads the data and displays it in the table
- The status bar shows the import result (e.g. "Successfully imported 20 records")
⚠️ If prompted with "No valid harmonic records", check:
- The file is in .xls format (not .xlsx)
- Data starts from row 4
- Harmonic orders are within the 2–31 range
Click the Calculate button. The software automatically performs the following:
- Voltage Amplitude Correction: Compute voltage correction coefficient K = V_meas / V_set; derive new send values
- Current Amplitude Correction: Compute current correction coefficient K = I_meas / I_set; derive new send values
- Phase Correction: Normalize RD angles; compute phase deviation and corrected phase send values
- Convergence Check: Verify amplitude deviation < 0.5% and phase deviation < 1°
- Iterative Correction: If not converged, iterate up to 5 times
After calculation:
- The "V_Send%", "I_Send%", and "Phase_Send°" columns are populated
- Data is automatically saved to the database
- A "CORRECTION" record is added to the operation log
- Click the Export Excel button
- Choose a save location and file name
- The exported Excel file contains all 15 columns of data (including correction coefficients, send values, etc.)
- The file can be viewed, printed, or shared in Excel
| Menu Item | Shortcut | Function |
|---|---|---|
| New DB | — | Create a new empty database file |
| Open DB | — | Open an existing database file (switch data source) |
| Close DB | — | Close the current database and revert to the default |
| Export All | — | Export all correction records from the database to Excel |
| Exit | — | Exit the application |
| Menu Item | Function |
|---|---|
| Bench Manager | Open the Bench Manager window |
| Scheme Manager | Open the Scheme Manager window |
| Menu Item | Function |
|---|---|
| About | Display software version and description |
Symptom: Message "No valid harmonic records" or file cannot be opened.
Solution:
- Ensure the file is in .xls format (Excel 97-2003), not .xlsx or .xlsm
- If you only have a .xlsx file, open it in Excel and choose File → Save As → Excel 97-2003 Workbook
- Ensure data starts from row 4
- Ensure column A (harmonic order) is within the 2–31 range
Symptom: Prompt indicating sqlite3.dll is missing.
Solution:
- Confirm that
sqlite3.dllis in the same directory asHarmonicCorrector.exe - If missing, copy the file from the installation package
Symptom: The left tree view shows no benches or schemes.
Solution:
- Add a bench via Management → Bench Manager
- Add a scheme via Management → Scheme Manager
- Switch back to the Correction tab to refresh the tree view
Possible Causes:
- Measured value deviation is too large (beyond correction range)
- Maximum iteration count (5) reached without convergence
Suggestions:
- Verify the measured data is correct
- Run correction multiple times (measure again with the corrected send values, then correct again)
- Check test bench equipment connections and calibration
Symptom: Database-related errors on startup or during operation.
Solution:
- Close the application
- Delete the
HarmonicCorr.dbfile - Restart the application (a new database will be created automatically)
- Re-add benches and schemes
Below is a standard Excel input file example (first few rows):
| Row | A | B | C | D | E | F | G |
|---|---|---|---|---|---|---|---|
| 1 | Harmonic Correction Test Data | ||||||
| 2 | Test Bench: 526001 | ||||||
| 3 | Harmonic Order | V_Set% | I_Set% | V_Meas% | I_Meas% | Phase_Set° | Phase_Meas_RD° |
| 4 | 2 | 100 | 100 | 98.5 | 97.3 | 0 | 2.3 |
| 5 | 3 | 80 | 80 | 79.2 | 78.8 | 15 | 14.8 |
| 6 | 4 | 60 | 60 | 58.7 | 58.1 | 30 | 31.5 |
| 7 | 5 | 40 | 40 | 39.1 | 38.6 | 45 | 44.2 |
| ... | ... | ... | ... | ... | ... | ... | ... |
| 34 | 31 | 10 | 10 | 9.5 | 9.2 | 60 | 58.7 |
💡 The first 3 rows can contain any content (headers, descriptions, etc.). The software automatically skips them. Data reading begins at row 4.
This document is intended for end users and follows the actual operation workflow, covering everything from installation to the complete correction process. For questions, please contact the software maintainer.