Skip to main content

Set up PSLF

PSLF .chf files are native binary channel files. ESPlotter does not parse their bytes directly: it starts the installed PSLF Python API in the background, asks PSLF to export the channel data to a temporary CSV, and then uses the normal ESPlotter channel-file import flow. The original .chf path remains associated with the opened file. Set up the integration once on each Windows computer where you open .chf files.

What you need​

Before opening a PSLF .chf file, prepare the Windows computer with:

  • A PSLF installation that includes Pslf.exe and its neighbouring PslfPython_Pipe or PslfPython directory.
  • The PSLF_PYTHON.py module inside that API directory.
  • A python.exe version supported by that PSLF installation.
  • pywin32 installed in that same Python environment.
  • A .chf file that contains simulation samples if you want to plot data.

The Python version is determined by the PSLF installation, not by the newest Python version installed on the computer. For example, an installation that provides a wheel named pywin32-306-cp311-cp311-win_amd64.whl requires a CPython 3.11 interpreter. Python 3.14 is not a compatible substitute for that installation, even if it is otherwise available and works for other applications.

Typical paths are:

PSLF executable: C:\Program Files\GE PSLF\Pslf.exe
PSLF Python API: C:\Program Files\GE PSLF\PslfPython_Pipe\PSLF_PYTHON.py
Compatible Python: C:\Program Files\Python311\python.exe

The paths can differ by PSLF release and by Windows installation. Use the paths from the computer where PSLF is installed.

Check the installation in PowerShell​

These checks are optional, but they help identify a bad path or Python mismatch before opening ESPlotter. Replace the paths with the values from your installation:

$pslf = 'C:\Program Files\GE PSLF\Pslf.exe'
$pslfPython = 'C:\Program Files\GE PSLF\PslfPython_Pipe\PSLF_PYTHON.py'
$python = 'C:\Program Files\Python311\python.exe'

Test-Path $pslf
Test-Path $pslfPython
& $python --version
& $python -c "import win32api, win32con, win32file, pywintypes; print('pywin32 OK')"

The first two commands should return True, the Python version should be the version supported by PSLF, and the final command should print pywin32 OK. A ModuleNotFoundError means that pywin32 is not available in that interpreter; installing it into a different Python does not fix the PSLF integration.

Configure the integration​

  1. Open Settings > General in ESPlotter.
  2. In PSLF integration, enter the full path to Pslf.exe in PSLF executable path. Click Save. ESPlotter checks that the file exists.
  3. Enter the full path to the compatible python.exe in PSLF Python path. Click Save. ESPlotter checks that the file exists.
  4. Check PSLF Python API path. Saving the executable selects a neighbouring PslfPython_Pipe or PslfPython folder when it contains PSLF_PYTHON.py; you can also browse to or enter that folder and save it yourself.
  5. Click Test PSLF. ESPlotter loads the bundled PSLF_dummy_test.chf file without opening the PSLF user interface, then opens the file in the channel sidebar so you can inspect it and close it when you are finished.
Settings General with PSS/E dyntools path, PSS/E Python path, PSLF executable path, and PSLF Python path fields
Settings > General keeps the PSS/E and PSLF paths. Each path has its own Save button.

If you edit any path before clicking Test PSLF, a successful validation saves those values before ESPlotter opens the dummy file. This keeps the test and the following .chf import on the same configuration.

While the test runs, the button is disabled and shows a spinner with Loading PSLF_dummy_test.chf…. Wait for the result instead of clicking the button again.

When you use Browse for a path, the dialog starts from that setting's existing location. For a file path it opens in the containing folder; for a folder path it opens there. If the location no longer exists, it starts at C:\.

What Test PSLF checks​

The test performs the same essential checks used when opening a real .chf file:

  1. The configured Pslf.exe exists.
  2. The configured PSLF Python API folder exists. Newer installations use PslfPython_Pipe; older installations use PslfPython. Saving the executable selects either neighbouring folder when it contains PSLF_PYTHON.py, and the API folder can also be edited directly in Settings.
  3. The selected Python version is compatible with the pywin32 version supplied by the PSLF installation, when that version is identifiable.
  4. The selected interpreter can import the required pywin32 modules: win32api, win32con, win32file, and pywintypes.
  5. Python can import PSLF_PYTHON from the PSLF installation.
  6. PSLF can start in the background, load the dummy .chf, and export its samples through the native channel-file conversion.

A successful test confirms the complete path from ESPlotter to PSLF, Python, pywin32, PSLF_PYTHON, native .chf conversion, and the normal channel-file opening flow. The dummy file remains visible in the channel sidebar until you close it. It is stronger than checking only that the executable and interpreter paths exist.

Open the file​

After Test PSLF succeeds:

  1. Click + at the top of the channel sidebar (Ctrl + O) and select the .chf, or drag it into the initial chart workspace.
  2. Wait for the file to move from its loading state to the ready channel list. The conversion may take a few seconds because PSLF is being started and the native file is being exported in the background.
  3. Confirm that the Time row and the expected channel groups appear in the sidebar.
  4. Open the Time-channel data table and check that it contains numeric sample values.
  5. Add a normal channel to a Time Series chart. If channel preparation fails, ESPlotter clears the temporary selection and shows the underlying error in a copyable error message.

The same configuration is used for the file picker and drag-and-drop. ESPlotter does not modify the .chf source file.

Export the data​

A .chf file opens as time series and exports as CSV, TXT, or JSON, like any other time-series file. See Export charts and data.

Automate with Python​

Headless Python scripts can open PSLF .chf files on Windows with workspace.open_file(...). They reuse the paths saved in Settings > General, so configure them once in ESPlotter. Desktop does not need to stay open, but the PSLF installation and a license from a recent Desktop sign-in must be available. See Headless mode.

Troubleshooting​

Run Test PSLF first, because it performs the same checks as opening a real .chf file. If opening a .chf fails, the error notice also offers Open Settings to reach Settings > General in one click.

Interpret the result​

  • PSLF loaded the dummy .chf file successfully. The configured integration passed the end-to-end check.
  • The selected Python version is incompatible. Select the Python version required by the installed PSLF release. If ESPlotter detects a bundled pywin32 wheel, the message includes the expected and selected versions.
  • pywin32 modules are missing. The selected interpreter does not contain the required pywin32 modules. Use the compatible PSLF Python environment and install or repair pywin32 in that environment before testing again.
  • Could not import PSLF_PYTHON. Check that the configured PSLF Python API folder contains PSLF_PYTHON.py and that the selected Python version matches the PSLF release. Newer installations use PslfPython_Pipe; older installations use PslfPython.
  • PSLF could not load or export the channel file. Check that the .chf belongs to a supported PSLF release and that its path is readable. Preserve the complete copyable error if support is needed.
  • The file is rejected because it has no samples. PSLF exported zero data rows, so ESPlotter closes the .chf import and keeps it out of the sidebar. The file may have been created after initializing the load flow without running the dynamic simulation. Please run the dynamic simulation in PSLF, save the .chf file again, and reopen it. This is a data-state error, not a Python configuration failure.

Permissions​

ESPlotter uses the user's normal Windows permissions for this integration. It does not open the PSLF GUI, request administrator privileges, run simulations, or modify PSLF network cases. If a permission error persists after the paths and versions pass Test PSLF, keep the exact error text for diagnosis instead of changing Windows permissions blindly.

If the problem remains, copy the complete error and follow Ask for support. Include the PSLF release and the Python version you selected.