当前位置:文档之家› 电子信息工程外文翻译

电子信息工程外文翻译

电子信息工程外文翻译
电子信息工程外文翻译

Microsoft Visual Basic Microsoft launched a visual object-oriented application development tools, VB is one of the main programming language developed by microsoft company on the windows platform, it has a good user interface, and to avoidopen C + + programming overly cumbersome and abstract shortcomings, while at the same time to achieve the majority of windows programming purposes. Since Microsoft launched, becoming the preferred language of the majority of program developers. It has a contemporary programming language must be "visual", "object-oriented, event-driven" three characteristics. Visualization simple as building blocks, eliminating the need for a portable and a lot of code to complete the interface makes the user interface design; object-oriented data and data processing code into a class, not only easy to to read and modify the program, but also makes the object can be reused; event-driven "program ape only the operations users may block preparation, other misuse can be ignored. Vb phase high programming efficiency for other high-level programming language, especially the graphical user interface and database applications, programming speed is several times faster than any other programming language, VB-value calculation more complex applications, such as matlab code sneaked into the program, you can take full advantage of matlab source code, to simplify the calculation and efficient completion of programming tasks. In addition, due to the mathematical functions provided by matlab is optimized computing process and results, which will improve the accuracy of the application system

Matlab by the Math Works, Inc. of the United States launched a scientific and engineering calculations and design of advanced interactive software, which is a high performance programming software for engineering calculations, it is scientific computing, programming and visualization of the resultsare concentrated in a very easy to use environment. Compared with other software, the strengths of Matlabis the matrix computing and graphics. Packages have the main program group and a variety of tools, including the main program contains hundreds of internal core function, the toolkit contains a complex system simulation, signal processing toolkit, System Identification Toolkit. In this paper, by simulation of the relevant communication theory by running the M-file matlab software platform.Matlab has powerful numerical calculation, the many complex computational problems just a few lines of code in Matlab. Matlab function in C language to express more than is required dozens or even hundreds of statements, and the matlab statement is simple, easy to use. Therefore, numerical analysis, image processing using matlab, the preparation of the underlying algorithm can greatly save time, avoid duplication and improve efficiency Complete the development of software simulation system based on VB development-friendly and simple interface and Matlab powerful simulation capabilities, it was decided to use a mixture of both programming the graphics processing of background computing using VB to write the user interface and Matlab ActiveX is a technology of Microsoft Corporation officially named in 1996, the pre-existence is the OLE of Microsoft. The ActiveX basis of COM (Component Object Model: not see the object model). COM defines the mechanism of the soft parts and soft parts collectively referred to as objects. Neither ActiveX is a programming language, nor is it an operating system binary standard, but a way for

software as an object interaction. ActiveX is a powerful means of existing, perfect combination of program fragments together. , You can use various types of ActiveX Components in VB, such as ActiveX controls and code can also be programmed to manipulate the objects provided by the application that supports ActiveX technology within the VB application, such as microsoftExcel spreadsheets and Microsoft Word document and so on. In addition, you can also create your own ActiveX components. Depending on the circumstances, the creation of ActiveX components can be divided into three categories: 1: If you need parts not visible, you should create code components. The code parts, namely the OLE server, is used to encapsulate an object, an object library, provides an easy way for code reuse. The code parts can be an ActiveX EXE can also be an ActiveX DLL. If you want to create the parts and applications used in a process, you should create the Active DLL; If you want to create components to serve multiple applications running on the remote computer, you should create an ActiveX EXE. Two: If you need parts of the department and can be dragged to the application at design time, you should create the ActiveX control. 3: If the need is visual components and running to take over the application window, you should create an ActiveX document

ActiveXAutomation link, VB, both as to the role of the control side, while the matlabvb send commands as the server receives and processes to achieve a VB on Matlab call

Like any other object, an ActiveX component to create and can not be used directly, but must be a variable, is about to object reference of the part assigned to the variable, and then write code to use object methods, properties and events to complete the use of components after useTo release the object, the parts of object reference assignment depends on two factors: ①components type library. Such as the type library is used prior to the project to add a reference to the type library. The type library contains the definition of ActiveX components provide object definitions, as well as all of the available methods, properties and events. In other words, if the loading type library, the components used in all function can be realized must define and write the code only after the call. ②object top-level object, external to create an object or a subordinate object, if the external object, NEW keyword can be used in the SET statement, the CreateObject or GetObject functions from the components outside the object reference assigned to the variable. If the object is a subordinate object, you need to use high-level object in the SET statement to specify an object reference

Microsoft Visual Basic是微软公司推出的一个可视化的面向对象的应用程序开发工具,VB是由microsoft公司开发的在windows平台上的主力编程语言之一,它具有良好的用户界面,并且由于避开了C++编程过分繁琐和抽象的缺点,同时又能实现大多数windows编程目的。自微软推出以来,成为广大程序与开发人员的首选语言。它具备当代编程语言所必须的“可视化”,“面向对象”,“事件驱动”的三个特征。“可视化”使得操作界面的设计如同搭积木般的简单,省去了便携大量代码完成界面的实现;“面向对象”则是把数据和处理数据的代码封装到一个类中,不仅易于程序的阅读和修改,也使得对象可以重复使用;“事件驱动”使得程序猿只需要对用户可能进行的操作的程序块的编写,至于其他的误操作都可置之不理。Vb相对于其他高级编程语言有很高的编程效率,尤其是图形界面与数据库应用方面,编程速度比其他编程语言快几倍,因此用VB开发数值计算比较复杂的应用程序时,如将matlab代码潜入程序中,就可以充分利用matlab 大量的源代码,简化运算并高效的完成编程任务。另外,由于,由于matlab所提供的数学函数对针对运算过程和结果进行专门的优化,这将提高应用系统的精确度。

Matlab是由美国的Math Works 公司推出的一个科学和工程计算而设计的高级交互式软件,它是一种高性能的用于工程计算的编程软件,它把科学计算、编程和结果的可视化都集中在一个使用非常方便的环境中。与其他软件相比,matlab的强项在于矩阵计算和图形处理。其程序组要有主程序和各种工具包组成,其中主程序包含数百个内部核心函数,工具包则包含复杂系统仿真、信号处理工具包、系统识别工具包等。本文主要通过的在matlab软件平台下,通过运行M文件实现对相关通信原理的仿真。Matlab具备强大的数值计算能力,许多复杂的计算问题只需短短几行代码就可以在matlab中实现。Matlab提供的许多函数如果用C 语言来表示,均需几十甚至几百条语句以上,而且matlab语句简单,易学易用。因此,用matlab进行数值分析、图像处理等工作,可以大大节省编写底层算法的时间,避免重复劳动,提高工作效率

基于VB开发界面友好简单和matlab强大的系统仿真功能,故决定采用利用VB 编写用户操作界面和matlab实现后台运算即图形处理的两者混合编程的方法完成对软件仿真系统的开发

ActiveX是Microsoft公司于1996年正式命名的一项技术,前生是Microsoft的OLE。ActiveX的基础是COM(Component Object Model:不见对象模型)。COM

定义并实现了软部件机制,并把软部件统称为对象。ActiveX既不是一种编程语言,也不是一种操作系统,而是一种能使软件作为对象交互作用的二进制标准。ActiveX是将现有的,完善的程序片段组合在一起的强有力的手段。在VB中,可以使用各种类型的ActiveX部件,如ActiveX控件和代码等,也可以在VB应用程序内部通过编程来操纵支持ActiveX技术的应用程序所提供的对象,如microsoftExcel电子表格和Microsoft word文档等。此外,还可以创建自己的ActiveX部件

ActiveX部件的创建根据具体情况可分为三类:1:如果需要的部件不可见的,则应该创建代码部件。代码部件即以前的OLE服务器,是用来封装对象的一种对象库,为代码重用提供了一种简便的方法。代码部件即可是ActiveX EXE,也可以是ActiveX DLL。如果要创建的部件可以和应用程序运用在一个进程中,则应创建Active DLL;如果要创建的部件能服务于多个应用程序并在远程计算机上运行,则应创建ActiveX EXE。二:如果需要的是科室的部件并在设计时能被拖到应用程序中去,则应创建ActiveX控件。三:如果需要的是可视的部件并运行时能接管应用程序的窗口,则应创建ActiveX文档

ActiveXAutomation链接,VB既充当了控制端的角色,而matlab则作为服务器接收并处理vb发送的命令,实现了VB对matlab的调用

同其他对象一样,ActiveX部件创建并不能直接使用,而必须通过一个变量,即将该部件对象引用赋值给变量,然后编写代码来使用对象的方法,属性与事件来完成对部件的使用,使用完后要释放对象,部件对象引用如何赋值取决于两个因素:①部件是否提供类型库。如提供类型库,则使用之前,要在工程中添加对类型库的引用。类型库含有ActiveX部件提供的全部对象定义以及全部可用方法、属性和事件的定义。换句话说,若没有加载类型库的话,所使用的部件的所有可实现的功能都必须自己定义并编写代码后才可调用。②对象时顶层对象、外部可创建对象还是从属对象,如果是外部对象,则可以在SET语句中用NEW关键字,CreateObject或GetObject函数从部件外面将对象引用赋予变量。如果对象是从属对象,则需要使用高层对象的方法在SET语句中指定一个对象引用

相关主题
文本预览
相关文档 最新文档