Reading PSOUT using C (PSCAD v5.1+)
In this video, we demonstrate how to use the PSCAD C-based DLL interface to read and process .psout files. This tutorial provides a step-by-step guide on converting simulation data into a CSV format using the C language, including how to configure your development environment, navigate the tree-like data structure, and apply specific filters to your output channels.
Key Topics Covered:
01:01 Chapter 1: Getting the DLLs – How to acquire the necessary library files to access the reading and writing API.
01:20 Chapter 2: Getting Started – Setting up Visual Studio, handling post-build events to manage runtime dependencies, and importing the required function pointers.
03:50 Chapter 3: Opening the File – Utilizing file handles, exploring the five file-opening modes, and managing memory allocation safely.
07:57 Chapter 4: Accessing Data Structures – Navigating zero-indexed runs and traversing the tree structure to locate specific module calls and string variables.
20:50 Chapter 5: Reading and Processing Values – Prepending the shared domain trace and streaming Y-axis values sequentially into a comma-separated format.
23:35 Chapter 6: Running – A final look at compiling the script, verifying the data extraction, and viewing the generated CSV output.
Please refer to this Help System topic for further information. https://www.pscad.com/support/support-resources