GUIDE

How to open and plot COMTRADE files

COMTRADE is the common format for recording and exchanging waveforms from power-system faults and tests. Here is how to open records saved by protective relays and fault recorders without the manufacturer's viewer.

Updated: 2026-11-09

What is a COMTRADE file?

COMTRADE (Common format for Transient Data Exchange) is defined by IEEE C37.111, with versions from 1991, 1999 and 2013 (the 2013 version matches IEC 60255-24). A record is split into several files with the same name and different extensions.

FileContents
.cfgConfiguration text: channel names, units, scaling factors, sampling rates, start date and time and more. Required
.datSample values, as ASCII (text) or BINARY, BINARY32 or FLOAT32 (binary). Required
.hdr, .infDescriptions and extra information (optional)
.cffAdded in the 2013 version: the files above combined into one

The .dat values are recorded integers, converted to voltage or current with the .cfg factors as value = a × recorded value + b.

Ways to open COMTRADE files

MethodWhat it isKeep in mind
Manufacturer viewersWaveform viewers provided by relay and recorder manufacturersRequire installation and differ by model and manufacturer
Python (comtrade package)An open-source library for reading COMTRADE, supporting the 1991, 1999 and 2013 versionsRequires a Python environment and code
ExcelAn ASCII .dat file opens as textValues stay unscaled and channels have no names; binary .dat files cannot be opened
LOGADECTime-series viewing and analysis software with no installation. Loads channels with the .cfg names, units and scalingYou must select the .cfg and .dat files together (see below)

Opening a COMTRADE record in LOGADEC

  1. Start it from Try it in your browser, or download the free version and open the extracted HTML file in Google Chrome or Microsoft Edge.
  2. Click CSV/Excel and select the .cfg file and the .dat file with the same name together (Ctrl-click). You can also drag and drop both onto the pane at once. A 2013 .cff file loads on its own.
  3. The analog channels appear as columns with the names and units from the .cfg. Values are scaled (a × recorded value + b).
  4. With a single sampling rate, the X axis is set to [Generate from sampling interval] and the record start time becomes the start date and time. With two or more rates, or none, the time column (Time [s]) becomes the X axis.
  5. To include digital channels (0/1), tick [Include digital channels] in [Format settings].
  6. Click [Import], then click [Select all] in the [Series] tab.

Note: Selecting only the .cfg or only the .dat file does not work (the reason is shown), because a browser cannot read neighbouring files you did not select.

See "Excel and TDMS files" (loading by format) in Loading Data in the user manual for details.

Features often used with COMTRADE data

  • Batch import: [Folder] imports all records in a folder at once. Tick COMTRADE under [File types] and .cfg and .dat files with the same name in the same folder are paired automatically.
  • Frequency analysis: [FFT] shows harmonics and other frequency content (How to run an FFT on CSV data).
  • Overlay and compare: compare phase voltages and currents overlaid with [Overlay] or stacked with [Stacked].
  • Export to CSV: [Export data] writes the scaled values to CSV, TSV or Excel — handy for converting COMTRADE to CSV.
Q

FAQ

FAQ
I opened the .cfg file but nothing loads.

Select the .dat file with the same name together with the .cfg (Ctrl-click, or drag and drop both at once).

Are BINARY and FLOAT32 .dat files supported?

Yes. ASCII, BINARY, BINARY32 and FLOAT32 .dat files and the 1991, 1999 and 2013 versions are supported.

Can I convert COMTRADE to CSV?

Yes. After loading the record in LOGADEC, use [Export data] to export the scaled values to CSV, TSV or Excel.

+

More guides

GUIDES

How to open CSV files too large for Excel

Open and plot CSV files that Excel cuts off at its row limit, without splitting them.

How to plot a CSV file as a graph (free, no installation)

Turn measurement and logger CSV files into time-axis graphs, and avoid the usual pitfalls.

How to open and plot TDMS files

Open TDMS files from LabVIEW and NI instruments, then plot, analyze or export them to CSV.

What is a TDMS file? The format explained

What is inside a TDMS file (segments, groups, channels, properties) and how it differs from CSV and TDM.

How to open and plot LVM files

What is inside a LabVIEW measurement file (.lvm) and how to open and plot it without LabVIEW.

How to run an FFT on CSV data

Find the frequency components of vibration, noise and current waveforms in CSV files with an FFT.

How to find outliers and change points in time-series data

Find spikes (outliers) and steps (change points) in long logs with a numeric criterion.

How to plot WAV file waveforms

Plot the waveforms in WAV files from vibration and sound recorders on a time axis, then run FFT and other analyses.

Try it with your own data, right now.