{"title":"Automatic Python code generation for Embedded/Cyber-Physical Systems","authors":"Pedro Vale, F. Pereira","doi":"10.1109/YEF-ECE58420.2023.10209340","DOIUrl":null,"url":null,"abstract":"This article introduces the development of an automatic code generation tool for the high-level programming language Python. This tool was created with the objective of implementing embedded system controllers and cyber-physical systems. The controllers are designed using graphical models in the IOPT-Flow Web environment, which are automatically converted to Python code, permitting the reduction of errors caused by manual coding. The code generator tool is based on the XSL language, used to transform XML documents describing graphical models into Python code. To validate this approach, a prototype of a robotic arm was used to perform pick and place tasks, demonstrating the use of the new tool to implement an industrial application.","PeriodicalId":393634,"journal":{"name":"2023 7th International Young Engineers Forum (YEF-ECE)","volume":"R-24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 7th International Young Engineers Forum (YEF-ECE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/YEF-ECE58420.2023.10209340","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
This article introduces the development of an automatic code generation tool for the high-level programming language Python. This tool was created with the objective of implementing embedded system controllers and cyber-physical systems. The controllers are designed using graphical models in the IOPT-Flow Web environment, which are automatically converted to Python code, permitting the reduction of errors caused by manual coding. The code generator tool is based on the XSL language, used to transform XML documents describing graphical models into Python code. To validate this approach, a prototype of a robotic arm was used to perform pick and place tasks, demonstrating the use of the new tool to implement an industrial application.