Programming of control devices in C++

S. Yudachev, S. Sitnikov, P. A. Monakhov, N. Gordienko
{"title":"Programming of control devices in C++","authors":"S. Yudachev, S. Sitnikov, P. A. Monakhov, N. Gordienko","doi":"10.33920/pro-2-2202-06","DOIUrl":null,"url":null,"abstract":"Accidents on oil and gas pipelines, accompanied by fluid leakage, cause economic and environmental damage. The task of the chief mechanics is to prevent accidents and monitor the operation of the equipment. A prerequisite for the timely accidents control in the oil and gas industry and the elimination of their consequences is the prompt determination of the location of leaks and tie-ins. To solve this problem, a large number of methods that differ in sensitivity, external immunity, speed and accuracy of determining the coordinates of leak sites and tie-ins have been developed and applied. Frequency characteristics are used to solve a number of typical problems of research and processing of equipment failure signals. A variant of the implementation of the fast Fourier transform in the C++ programming language and the coding language of the Verilog programmable logic integrated circuit is proposed. When performing the work, Visual Studio software from Microsoft and Quartus from Intel (Altera) are used. A comparison of the results of processing several signals in the above programs is presented. When implemented in a programmable logic integrated circuit, the work is performed at the model level using the built-in intellectual property core (IP function), while in C++ the algorithm is implemented manually, which increases the accuracy of its execution. The practical significance of the work is the study and solution of the simplest tasks in the development of modern electronic devices, including for monitoring the operation of equipment in the oil and gas industry of rapid response, in the Verilog hardware description language and comparison with an alternative model in the programming language. Excerpts of the codes of both programs are presented. The FFT is illustrated (step by step), as well as the signals before and after processing are presented. This work can be used to teach students of higher educational institutions in the field of development, debugging and coding of electronic and radio-electronic devices, as well as in the creation and design of real devices in production. Familiarization and study of this programming language are conducted within the walls of one of the leading engineering universities of the Russian Federation, the Bauman Moscow State Technical University.","PeriodicalId":415140,"journal":{"name":"Glavnyj mekhanik (Chief Mechanic)","volume":"64 3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-01-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Glavnyj mekhanik (Chief Mechanic)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.33920/pro-2-2202-06","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Accidents on oil and gas pipelines, accompanied by fluid leakage, cause economic and environmental damage. The task of the chief mechanics is to prevent accidents and monitor the operation of the equipment. A prerequisite for the timely accidents control in the oil and gas industry and the elimination of their consequences is the prompt determination of the location of leaks and tie-ins. To solve this problem, a large number of methods that differ in sensitivity, external immunity, speed and accuracy of determining the coordinates of leak sites and tie-ins have been developed and applied. Frequency characteristics are used to solve a number of typical problems of research and processing of equipment failure signals. A variant of the implementation of the fast Fourier transform in the C++ programming language and the coding language of the Verilog programmable logic integrated circuit is proposed. When performing the work, Visual Studio software from Microsoft and Quartus from Intel (Altera) are used. A comparison of the results of processing several signals in the above programs is presented. When implemented in a programmable logic integrated circuit, the work is performed at the model level using the built-in intellectual property core (IP function), while in C++ the algorithm is implemented manually, which increases the accuracy of its execution. The practical significance of the work is the study and solution of the simplest tasks in the development of modern electronic devices, including for monitoring the operation of equipment in the oil and gas industry of rapid response, in the Verilog hardware description language and comparison with an alternative model in the programming language. Excerpts of the codes of both programs are presented. The FFT is illustrated (step by step), as well as the signals before and after processing are presented. This work can be used to teach students of higher educational institutions in the field of development, debugging and coding of electronic and radio-electronic devices, as well as in the creation and design of real devices in production. Familiarization and study of this programming language are conducted within the walls of one of the leading engineering universities of the Russian Federation, the Bauman Moscow State Technical University.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
控制设备的c++编程
石油和天然气管道事故,伴随着流体泄漏,造成经济和环境损失。首席机械师的任务是防止事故和监督设备的运行。在油气行业中,及时控制事故并消除其后果的先决条件是及时确定泄漏和接头的位置。为了解决这一问题,人们开发和应用了大量的方法,这些方法在确定泄漏点和接头坐标的灵敏度、外部抗扰度、速度和精度方面存在差异。频率特性用于解决设备故障信号研究和处理中的一些典型问题。提出了用c++编程语言和Verilog可编程逻辑集成电路的编码语言实现快速傅里叶变换的一种变体。在执行工作时,使用Microsoft的Visual Studio软件和Intel (Altera)的Quartus软件。对上述程序中处理多个信号的结果进行了比较。当在可编程逻辑集成电路中实现时,使用内置的知识产权核心(IP功能)在模型级别执行工作,而在c++中,算法是手动实现的,这增加了其执行的准确性。该工作的实际意义在于研究和解决现代电子设备开发中最简单的任务,包括在Verilog硬件描述语言中对石油和天然气行业设备运行的快速响应进行监测,并与编程语言中的替代模型进行比较。本文给出了两个程序的代码节选。一步一步地说明了FFT,并给出了处理前后的信号。这项工作可以用于高等院校的学生在电子和无线电电子设备的开发,调试和编码领域的教学,以及在生产中实际设备的创造和设计。这种编程语言的熟悉和研究是在俄罗斯联邦领先的工程大学之一鲍曼莫斯科国立技术大学进行的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
The main stages of the deployment of the lean production concept of JSC Perm Plant «Mashinostroitel» Creating group drawings for the same type of products in the Autodesk Inventor program environment management tools of the concept of managing the development of the production-economic system of an aircraft engine building enterprise Actual issues of operation of CNC machines — preparation of control programs Improvement the technological processes of manufacture the pump case and assembling the flanged joint by using modern adhesives
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1