{"title":"Control Systems Testing with a Flexible Co-simulation Interface to PSCAD/EMTDC","authors":"A. Damle, O. Nayak, A. Gole, A. Sinkar","doi":"10.1109/NPSC57038.2022.10069889","DOIUrl":null,"url":null,"abstract":"This paper discusses a general-purpose co-simulation interface to a non-real-time electromagnetic transient (EMT) simulation software called PSCAD. The interface uses embedded Python interpreter which supplements the EMT capabilities with powerful mathematical functions and scripting facilities. The co-simulation is demonstrated with an example of controls implemented in Python running on a personal computer (PC) as well as the same controls running on a Raspberry Pi Pico microcontroller via an interrupt-based processor-in-loop (PIL) version of the interface. The PIL platform allows for rapid development, validation, testing, and prototyping of the control algorithm on a hardware platform. The paper presents the advantages of performing PIL co-simulation using a powerful scripting language such as Python embedded into an EMT simulation. It includes comprehensive details of the interface along with controller source code to help readers implement it. The power systems example used to demonstrate the interface is a boost converter implemented in PSCAD.","PeriodicalId":162808,"journal":{"name":"2022 22nd National Power Systems Conference (NPSC)","volume":"38 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 22nd National Power Systems Conference (NPSC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NPSC57038.2022.10069889","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
Abstract
This paper discusses a general-purpose co-simulation interface to a non-real-time electromagnetic transient (EMT) simulation software called PSCAD. The interface uses embedded Python interpreter which supplements the EMT capabilities with powerful mathematical functions and scripting facilities. The co-simulation is demonstrated with an example of controls implemented in Python running on a personal computer (PC) as well as the same controls running on a Raspberry Pi Pico microcontroller via an interrupt-based processor-in-loop (PIL) version of the interface. The PIL platform allows for rapid development, validation, testing, and prototyping of the control algorithm on a hardware platform. The paper presents the advantages of performing PIL co-simulation using a powerful scripting language such as Python embedded into an EMT simulation. It includes comprehensive details of the interface along with controller source code to help readers implement it. The power systems example used to demonstrate the interface is a boost converter implemented in PSCAD.
本文讨论了非实时电磁瞬变(EMT)仿真软件PSCAD的通用联合仿真接口。该接口使用嵌入式Python解释器,它通过强大的数学函数和脚本功能补充了EMT功能。通过一个在个人计算机(PC)上运行的Python实现的控件示例以及通过基于中断的循环处理器(PIL)版本的接口在Raspberry Pi Pico微控制器上运行的相同控件来演示联合仿真。PIL平台允许在硬件平台上对控制算法进行快速开发、验证、测试和原型设计。本文介绍了在EMT仿真中使用强大的脚本语言(如Python)来执行PIL联合仿真的优点。它包括接口的全面细节以及控制器源代码,以帮助读者实现它。用于演示该接口的电力系统示例是在PSCAD中实现的升压转换器。