[1]朱 颖,刘芫健,陈 伟.开发 UE 调用 MATLAB 可执行文件算法[J].计算机技术与发展,2022,32(S2):99-103.[doi:10. 3969 / j. issn. 1673-629X. 2022. S2. 017]
 ZHU Ying,LIU Yuan-jian,CHEN Wei.Development of UE Calling MATLAB Executable File Algorithm[J].,2022,32(S2):99-103.[doi:10. 3969 / j. issn. 1673-629X. 2022. S2. 017]
点击复制

开发 UE 调用 MATLAB 可执行文件算法()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
32
期数:
2022年S2期
页码:
99-103
栏目:
系统工程
出版日期:
2022-12-11

文章信息/Info

Title:
Development of UE Calling MATLAB Executable File Algorithm
文章编号:
1673-629X(2022)S2-0103-05
作者:
朱 颖刘芫健陈 伟
南京邮电大学 计算机学院、软件学院、网络空间安全学院,江苏 南京 210023
Author(s):
ZHU YingLIU Yuan-jianCHEN Wei
School of Computer,Software and Cyberspace Security,Nanjing University of Posts & Telecommunications,Nanjing 210023,China
关键词:
多平台调用UE 调用 MATLAB 封装算法仿真测试多功能调用效率分析
Keywords:
multi-platform callUE calls MATLAB encapsulation algorithmsimulation testmulti-function callefficiency analysis
分类号:
TP301. 6;TN011
DOI:
10. 3969 / j. issn. 1673-629X. 2022. S2. 017
摘要:
随着互联网和信息技术的快速发展,多平台互联互通的发展需求日益迫切。 利用多平台调用可以充分发挥不同平台的优势,使得不同平台的功能相互融通。 该文基于 C++开发了 UE 调用 MATLAB 封装算法,通过与 UE 联合的 VisualStudio 平台中封装新的 OpenExe 蓝图函数实现了 UE 平台到 MATLAB 平台的联通,封装函数的主要逻辑分别使用 UE 提供的 FPlatformProcess::CreateProc 函数、C++支持的 system、ShellExecute 和 WinExec 函数。 此外,为了比较不同函数打开可执行文件所消耗的时间,还利用 steady_clock 函数对打开可执行文件计时,并结合使用 UE 支持的 SaveStringtoFile 函数将时间记录在生成的文本文件中。 通过仿真测试对比,采用 FPlatformProcess::CreateProc 不能打开 MATLAB 开发的可执行文件,但是基于该算法可以利用 system、ShellExecute 和 WinExec 函数打开 MATLAB 开发的可执行文件,其执行时间分别平均为0. 077 秒、0. 024 秒和 0. 028 秒。 由此可得该算法可以利用 C++编程,并结合 ShellExecute 函数实现 UE 对 MATLAB 平台的快速调用,一键调用和全部调用,可以为多平台之间的资源信息调用提供有效途径。
Abstract:
With the rapid development of the Internet and information technology, the development needs of multi - platforminterconnection are becoming increasingly urgent. The use of multi-platform invocation can give full play to the advantages of differentplatforms and so the functions of different platforms can be integrated with each other well. We develop the UE call MATLABencapsulation algorithm based on C++ and realize the connection between the UE platform and the MATLAB platform by encapsulatingthe new OpenExe blueprint function in the Visual Studio platform associated with UE. The main logic of the encapsulation function respectively uses the FPlatformProcess::CreateProc function provided by UE,system, ShellExecute and WinExec functions supported byC++. In addition,in order to compare? the time consumed by different functions to open the executable file,we also use the steady_clockfunction to time the opening of the executable file,and use the SaveStringtoFile function supported by the UE to record the time in thegenerated text file. Through simulation test comparison,we can get that FPlatformProcess:: CreateProc cannot open the executable filedeveloped by MATLAB, but based on this article,the algorithm can use system,ShellExecute and WinExec to open the executable filedeveloped by MATLAB and the execution time is average 0. 077 s、0. 024 s and 0. 028 s respectively. From this,the algorithm can beprogrammed in C++ and combined with the ShellExecute function to achieve UE爷 s rapid invocation of the MATLAB platform,one-clickinvocation and all-invocation,which can provide an effective way for the resource information call between multiple platforms.
更新日期/Last Update: 2022-10-10