Replaying Field Faults in Real Time: The COMTRADE Playback Guide in HYPERSIM

Replaying Field Faults in Real Time: The COMTRADE Playback Guide in HYPERSIM

Ever had an actual grid fault recorded by a digital fault recorder (DFR) or protection relay, and wished you could replay that exact event into your real-time simulator to see how your control and protection schemes react?

That is where COMTRADE Playback in HYPERSIM comes in! Whether you want to test relay trip logic against real-world lightning strikes, transformer inrush, or breaker restrikes, HYPERSIM lets you inject arbitrary recorded waveforms directly into your simulated grid. And when paired with ScopeView, you can inspect, align, and compare the replayed transient live in real time.

Here is your complete guide to loading, configuring, triggering, and verifying a COMTRADE playback file in HYPERSIM!


Part 1: Loading the Model & Connecting the Playback Block

(Reference: COMTRADE Playback Documentation)

Step 1: Open the Built-in Example Model

HYPERSIM comes with a ready-to-run template so you don't have to build the playback circuit from scratch:

  1. In HYPERSIM, go to File > Options.
  2. Under the Open an Example File section on the start page, expand the How To folder.
  3. Double-click on COMTRADE_Playback.ecf and choose a directory to extract your working copy.

Step 2: Understand the Playback Block Inputs & Outputs

When you open the schematic, you will see the COMTRADE Playback block. It has 3 key terminals:

  • Input T (Trigger): Used in External Trigger mode. A rising edge (transition from 0 to 1) instantly launches the transient playback.
  • Output Aout (Analog Outputs): A multiplexed vector of up to 32 analog channels (e.g., 3-phase voltages and currents from your fault recording) feeding into controlled voltage/current sources.
  • Output Dout (Digital/Logic Outputs): A multiplexed vector of up to 32 logical channels (e.g., status contacts, breaker auxiliary switches 52a/52b recorded in the file).


Part 2: Configuring Parameters & Trigger Modes

Step 3: Point to Your COMTRADE File

Double-click the COMTRADE Playback block to open its parameter mask. In the General tab:

  1. File directory: Click browse and point to your .cfg file. Pro-tip: Always place your .cfg and .dat files directly in the same folder as your HYPERSIM project so file links never break!
  2. Click Load File. HYPERSIM will parse the header and populate the available channels in the Analog and Digital tabs.

Step 4: Choose Operation Mode & Triggering

Configure how you want the playback to start and cycle:

  • Operation Mode:
    • Transient: Plays the recording through once from start to finish.
    • Steady-State: Detects the first stable periodic cycle at the start of your analog signal and loops it continuously. (Ensure your file has at least 2 steady-state cycles before the fault!).
  • Prefault & Postfault Cycles: Define how many continuous pre-fault cycles to hold before injecting the transient, and how many post-fault cycles to sustain after the transient ends.
  • Trigger Mode:
    • Internal: Automatically synchronizes with HYPERSIM's Point-on-Wave (POW) or triggers when ScopeView starts data acquisition.
    • External: Waits for a rising pulse on pin T (ideal when triggering from an external hardware contact or another fault block).

Step 5: Adjust Channel Gains (Analog & Digital Tabs)

Switch to the Analog tab. Here you can enable or disable individual recorded channels and apply a multiplier Gain. This is super handy if your recorded COMTRADE file is in primary kilo-volts (kV) and your model sources expect secondary volts (V), or vice versa!

⚡ Important Timestep Note: The output sampling rate of the playback is locked to your HYPERSIM simulation execution step (TimeStep). If your COMTRADE file was sampled at 10 kHz (100 μs) but HYPERSIM is running at 50 μs, HYPERSIM will automatically interpolate between samples. You can also resample the file beforehand directly in ScopeView to match your simulation rate perfectly!

Part 3: Visualizing & Verifying Playback in ScopeView

(Reference: Quick Start | ScopeView)

Step 6: Launch Simulation and Open ScopeView

  1. In HYPERSIM, load your model sensors (.sig file).
  2. Click Start Simulation on the top ribbon.
  3. In the HYPERSIM ribbon tab, click the ScopeView button.

Step 7: Add Voltage & Current Signals to the Display

ScopeView automatically attaches to the running model and shows your active sensors grouped by category:

  1. Select your replayed voltage signals (e.g., Va, Vb, Vc). They will populate in the Selected Signals table at the bottom.
  2. Switch categories to pick your replayed currents or downstream line currents.

Step 8: Superimpose Curves & Set Time Window

To compare the 3-phase waveforms cleanly on a single coordinate frame:

  1. Highlight your phase signals in the graph view.
  2. Click the Superimpose icon in the toolbar to merge them onto one shared axis.
  3. In the top toolbar options, set your Time Length to match your transient duration (e.g., 0.2 s or 0.5 s).

Step 9: Start Acquisition & Watch the Playback!

  1. Click Start Acquisition in ScopeView.
  2. If using Internal trigger, ScopeView sends an internal sync signal to the playback block, initiating the prefault $\to$ transient fault $\to$ postfault sequence.
  3. If using External trigger, pulse pin T to trigger the playback.
  4. Observe your live waveform capture—the exact real-world field fault is now driving your simulated grid in real time!


And there you have it! Your gateway to stress-testing real protection relays against wild grid transients, catching misoperations before they happen, and being the next blackout-stopping protection engineer in the industry!