Skip to main content

Set up PSCAD

ESPlotter opens PSCAD electromagnetic transient results in two forms: .inf or .infx metadata with its numbered text .out files, and binary .psout trace files. Text results open directly. .psout files need a Python environment with the MHI library that reads them.

What you need​

InputRequirements
.inf or .infx + numbered .outThe selected metadata file and its numbered text .out files in the same directory
.psoutWindows, 64-bit Python compatible with the MHI mhi.psout library, and NumPy

Open INF, INFX, and OUT results​

Select the PSCAD .inf or .infx file with + at the top of the channel sidebar (Ctrl + O). ESPlotter reads the numbered .out files beside it using the same stem, starting with _01.out. Several metadata files can be selected together.

The first numeric column becomes Time, and the remaining columns are assigned to the metadata. .infx vector dimensions expand into the same ordered signals as equivalent .inf entries. Channel names use Group/Desc, such as Signals/Internal variable 1.

Missing outputs​

If numbered .out files are missing, ESPlotter keeps the channels from the available outputs and lists the missing files in one warning below the metadata file name. The first available output with numeric samples supplies Time, so a missing _01.out is non-fatal when another output is available. If no corresponding .out exists, the import reports that the required first output is missing.

Open a numbered OUT file directly​

You can also open a numbered PSCAD .out directly. ESPlotter removes its final _<number> suffix and looks for a matching .inf, then .infx. When it finds one, it opens the complete PSCAD result and shows a yellow notice explaining that the file was identified as PSCAD.

Without either metadata file, a file containing only consistent whitespace-separated numeric columns with increasing Time opens with generic channel names, and ESPlotter asks whether it came from PSCAD. Other .out files and PSS/E .outx files use the PSS/E import.

Open PSOUT results​

PSCAD .psout files contain binary simulation traces. ESPlotter reads them through the MHI mhi.psout Python library.

Configure the PSCAD integration​

  1. On Windows, install the MHI mhi.psout Python package and NumPy in the 64-bit Python environment supported by that library.
  2. Open Settings > General > PSCAD integration.
  3. Set Python interpreter to the interpreter installed for that library, or use py for the system default if it is compatible.
  4. For MHI PSOUT library folder, browse to the mhi/psout folder and select its compiled .pyd file. ESPlotter fills in the folder containing it.
  5. Save. ESPlotter checks the folder and reports whether the required files are present.

The interpreter must match the selected library. If they do not match, ESPlotter shows a warning explaining that you need to select the Python interpreter provided for that library.

When you use Browse, the dialog starts from that setting's existing location. If the location no longer exists, it starts at C:\.

Open the file​

Open the .psout file with + at the top of the channel sidebar (Ctrl + O) or drag it into the initial chart workspace. ESPlotter lists every recorded trace using its PSCAD hierarchy name. Add any trace to a Time Series chart.

NaN and unavailable samples remain gaps in the chart and keep their positions in exported data.

Traces with their own time samples​

Some traces are recorded on their own time samples:

  • In a CSV or TXT export, the single Time column lists every time from every exported trace in ascending order. A trace's cell is empty at times where it has no sample, so each value stays at its real time and reopens as a gap.
  • A JSON export keeps each trace's own times.
  • A calculated channel uses the times of its first input, so one built on such a trace is exported at that trace's times.

Session recovery​

When session recovery is enabled, an available .psout source and its charts restore through the normal session flow. If the source has been deleted, ESPlotter continues startup, reports the unavailable file through the usual recovery message, and restores the other available files.

Export the data​

Both PSCAD inputs open as time series. Use the normal channel actions to export CSV, TXT, or JSON. See Export charts and data.

Automate with Python​

Live and headless scripts open the same PSCAD results as ESPlotter with workspace.open_file(...): a .inf or .infx file with its numbered .out outputs beside it, a .psout file, or a numbered .out directly when its .inf or .infx file sits next to it. Channel names, the Time channel, and missing-output warnings are the same as in ESPlotter; read the warnings from channel_file.warnings. .psout files use the Python interpreter and MHI PSOUT library folder saved in Settings > General > PSCAD integration.

A script cannot answer the question ESPlotter asks about a .out without PSCAD metadata. Pass the answer with out_format:

channel_file = workspace.open_file("study_01.out", out_format="pscad")[0]

Use "psse" to read it as PSS/E. Without out_format, that file fails to open with a message that asks for it. See Work with files and channels.

Troubleshooting​

  • The import reports that the first output is missing: no numbered .out with the metadata file's stem sits beside it. Keep the .inf or .infx and its .out files in the same folder.
  • Some channels are missing: read the warning below the metadata file name. It lists the numbered .out files that were not found.
  • The error notice names unsupported metadata or no usable numeric samples: check that the file is a PSCAD result and that its outputs contain numeric data. The original error details remain available in the notice.
  • A .psout file does not open: check that Python interpreter and MHI PSOUT library folder are set and that the interpreter is the one provided for that library.

If the problem remains, copy the complete error and follow Ask for support.