[1]陈柳松,杨 利,张 宇,等.基于.NET 程序集的C# 与Matlab 混合编程技术及应用[J].控制与信息技术,2018,(02):44-46.[doi:10.13889/j.issn.2096-5427.2018.02.010]
 CHEN Liusong,YANG Li,ZHANG Yu,et al.Mixed Programming Technology with C# and Matlab Based on .NET Assembly and its Application[J].High Power Converter Technology,2018,(02):44-46.[doi:10.13889/j.issn.2096-5427.2018.02.010]
点击复制

基于.NET 程序集的C# 与Matlab 混合编程技术及应用()
分享到:

《控制与信息技术》[ISSN:2095-3631/CN:43-1486/U]

卷:
期数:
2018年02期
页码:
44-46
栏目:
信息技术与系统
出版日期:
2018-04-05

文章信息/Info

Title:
Mixed Programming Technology with C# and Matlab Based on .NET Assembly and its Application
文章编号:
2096-5427(2018)02-0044-03
作者:
陈柳松1杨 利2张 宇1刘 丽1
(1. 中车株洲所电气技术与材料工程研究院,湖南 株洲 412001;2. 湖南铁道职业技术学院,湖南 株洲 412001)
Author(s):
CHEN Liusong1YANG Li2ZHANG Yu1LIU Li1
( 1. CRRC ZIC Research Institute of Electrical Technology & Material Engineering, Zhuzhou, Hunan 412001, China; 2. Hunan Railway Professional Technology College, Zhuzhou, Hunan 412001, China )
关键词:
编译器快速傅里叶算法Matlab.NET 平台
Keywords:
compiler fast fourier transform algorithm Matlab.NET
分类号:
TP274
DOI:
10.13889/j.issn.2096-5427.2018.02.010
文献标志码:
A
摘要:
使用单一设计语言开发试验数据分析软件时,算法处理效率和界面美化无法同时达到最优效果。为此文章提出了一种基于.NET 程序集的C# 与Matlab 混合编程技术,其利用M函数重写Matlab 的内部函数接口,通过Deploytool 工具将M函数转换为.NET 程序集,最终实现算法在C# 界面设计程序中的调用。通过并行处理算法和界面设计,至少缩短三分之一开发周期并简化了调试过程。最后,通过对电机电流谐波分析的应用实例验证了该技术的可行性。
Abstract:
When a single design language is used to develop a software for experimental data analysis, the algorithm developing efficiency and the interface friendliness cannot achieve optimal at the same time. It proposed a C# and Matlab mixed programming technique based on .NET assembly to solve the problem. Firstly, the interface of Matlab internal function is rewritten by M function, then the M function is converted to. NET assembly by the Deploytool, finally the algorithm is successfully invoked in the C# interface design program. Through parallel developing of algorithms and interface, this mixed programming technology has the advantages of decreasing 1/3 development cycles and simplifying the debugging process. An application example of current harmonic analysis for motor verified the feasibility of the technology.

参考文献/References:

[1] 雷阳,王雪涛,孙文娥. 基于MATLAB GUI 的稳定精度数据分析软件设计[J]. 机电技术,2016(4):22-24.
[2]张娟. 基于Visual C++/MFC 汽车轮力数据分析软件的研究及实现[D]. 北京:华北电力大学,2014.
[3]许川佩,徐金地. 测量数据的分析与处理软件设计[J]. 国外电子测量技术,2017,36(8):104-108.
XU C P,XU J D. Design of software for analysis and processing of measurement date[J].Foreign Electronic Measurement Technology, 2017, 36(8):104-108.
[4]范婵娇,李晓欧. C# 与Matlab 混合编程在BEAM 绘制中的应用[J]. 微计算机信息,2012(9):459-461.
 FAN C J,LI X O. Application of Plotting BEAM Using C# and Matlab Mixed Programming[J].Microcomputer Information, 2012(9):459-461.
[5]张文军,万宇. 基于COM 的Matlab 混合编程技术常见问题分析[J]. 计算机与现代化,2011,1(4):153-155.
ZHANG W J, WAN Y. Analysis of Universal Problem in Mixed Programming Technique with Matlab Based on COM[J]. Computer and Modernization,2011,1(4):153-155.
[6]慕巍,王若亮,李晶娣,等. 基于ActiveX 引擎的VC++ 与 Matlab 混合编程及其应用[J]. 电子设计工程,2010,18(9): 40-42.
MU W,WANG R L, LI J D, et al. Hybrid program and application and application of VC++ and Matlab based on ActiveX engine[J]. Electronic Design Engineering, 2010,18(9):40-42.
[7]陈闽江, 陈月卿, 陈建洪, 等. Matlab 与C# 编程原理及在电力安全评估中的应用[J]. 安徽电力,2016(2):49-51.
 CHEN M J, CHEN Y Q,CHEN J H,et al. Application of Matlab and C# Programming Principle in the Electrical Safety Assessment [J]. Anhui Electric Power,2016(2):49-51.
[8]微软( 中国) 有限公司. MSDN 技术资源库[CD/OL]. http:// msdn.microsoft.com/msdnmag , 2008. [9]Kermit Sigmon.MATLAB Primer[D]. Gainesville:University of Florida,2005.
[10]楼顺天,姚若玉,沈俊霞. MATLAB 7.x 程序设计语言[M]. 西安: 西安电子科技大学出版社,2008.
[11]FRIGO M, JOHNSON S G. FFTW: an adaptive software architecture for the FFT[C]// IEEE International Conference on Acoustics, Speech and Signal Processing. USA :IEEE,2002,3: 1381-1384.
[12]李雪. 基于FPGA 的FFT 处理器的设计与优化[D]. 哈尔滨:哈尔滨工业大学,2008.
[13]HASAN M, ARSLAN T. A triple port RAM based low power commutator architecture for a pipelined FFT processor[C]// International Symposium on Circuits and Systems. Thailand: IEEE, 2003,16(8):353-356.

备注/Memo

备注/Memo:
收稿日期:2017-11-15
作者简介:陈柳松(1983-),男,工程师,主要从事电气系统仿真研究。
更新日期/Last Update: 2018-04-26