LabWindows_CVI环境下实现实时数据管理的一种方法
- 格式:pdf
- 大小:139.89 KB
- 文档页数:2
October 2008374686A-01Getting Started with theLabWindows /CVIReal-Time ModuleThis document provides an introduction to the LabWindows ™/CVI ™ Real-Time Module. Refer to this document for installation and configuration instructions and information about creating a real-time (RT) project.Installing the Real-Time Module Software on a Host ComputerYou must first install the Real-Time Module software on a host computer. Then you can configure and install software on the RT target.To install and use the Real-Time Module software, you must have the following:•Free Disk Space —In addition to the minimum system requirements for LabWindows/CVI, you must have at least 250 MB of free disk space for the Real-Time Module software. Refer to the LabWindows/CVI Release Notes for minimum system requirements.•RT Target —The LabWindows/CVI Real-Time Module supports NI RT Series PXI controllers and desktop PCs converted to RT targets. Refer to the Using Desktop PCs as RT Targets with the LabWindows/CVI Real-Time Module document for more information about converting a desktop computer to an RT target.Complete the following steps to install the LabWindows/CVI Real-Time Module on a host computer.1.Install LabWindows/CVI. Refer to the LabWindows/CVI Release Notes for information about installing LabWindows/CVI.Note Do not install the device driver software when you are prompted to do so during the LabWindows/CVI installation. Instead, install the device driver software when you are prompted during the LabWindows/CVI Real-Time Module installation.™™2.Insert the LabWindows/CVI Real-Time Module CD into the CD drive. Ifthe CD does not run automatically, open Windows Explorer, right-click the CD drive icon, and select AutoPlay.3.Select Install LabWindows/CVI Real-Time Module on the NationalInstruments LabWindows/CVI screen.4.Follow the instructions on the screen.5.During the installation, use the NI Device Drivers media to install thedevice drivers that you need.Configuring the RT TargetAfter you install LabWindows/CVI and the RT module, you must useNI Measurement & Automation Explorer (MAX) to configure the RT target and to install software and drivers on the RT target. MAX provides access to NI devices and systems and can communicate with networked RT targets, or remote systems, located on the same subnet as the computer running MAX. Complete the following steps to configure the RT target. The following sections describe these steps in more detail.1.Boot the RT target into LabVIEW RT.2.Configure network settings.3.Install software on the RT target.4.Configure system settings.5.Configure I/O.Refer to the Measurement & Automation Explorer Help for a complete tutorial about configuring the RT target. Select Help»MAX Help to access this help file, and then refer to the MAX Remote Systems Help section.LabVIEW Real-Time Module. However, you can apply the sameconcepts when you use the LabWindows/CVI Real-Time Module. Booting the RT Target into LabVIEW RTIf the RT target has only LabVIEW RT installed on its hard drive, the system is already set up to boot into LabVIEW RT, and you can continue to the Installing Software on the RT Target section of this document. If the RT target has LabVIEW RT and Windows installed on its hard drive, your system may have DIP switches or BIOS settings for booting into LabVIEW RT.If the RT target is a PXI system that does not have LabVIEW RT installedand has a floppy disk drive, you can create a boot disk to boot the system intoLabVIEW RT.Getting Started with LabWindows/CVI © National Instruments Corporation 3Getting Started with LabWindows/CVI Real-Time 1.Select Tools»RT Disk Utilities»Create PXI Boot Disk in MAX tocreate a boot disk from the host computer.2.Click Yes in the Measurement & Automation Explorer dialog box andfollow the instructions on the screen to create the boot disk.3.When you finish creating the boot disk, remove the floppy disk from thehost computer and insert it into the floppy drive of the PXI controller you are using as an RT target.4.Power on or reset the controller to boot it into LabVIEW RT.If you are converting a desktop computer to an RT target, refer to the Using Desktop PCs as RT Targets with the LabWindows/CVI Real-Time Module document for information about booting into LabVIEW RT.Configuring Network SettingsNoteTo perform the initial configuration, you must connectunconfigured RT targets to the same network subnet as the host computer from which you launch MAX. Unconfigured targets outside of the subnet do not appear under the Remote Systems item in the MAX configuration tree.1.Connect the RT target to the network and power on the target.unch MAX and expand the Remote Systems item in the MAXconfiguration tree.3.Select the RT target from the Remote Systems item and click theNetwork Settings tab. The RT target appears as 0.0.0.0 under the Remote Systems item.4.Assign an IP address in the Network Settings tab using one of thefollowing options:•Select the Edit the IP settings option and specify an IP address.You also can click Suggest Values to select an IP address suggested by MAX.•Select Obtain IP address from DHCP server to obtain an addressautomatically.5.Click Apply to commit the changes.6.Click Yes to reboot the RT target.If your previously configured RT target is on another subnet and does not appear under the Remote Systems item, you must add the target manually. Complete the following steps to add the RT target:1.Right-click the Remote Systems item and select Create New .2.Select the target type and click Next.Getting Started with LabWindows/CVI Real-Time 3.Enter the host name or IP address of the device. You can obtain the hostname or IP address of the RT target by running MAX from a computer on the same subnet as the target or by connecting a monitor to the target and viewing the information displayed when the target boots.4.Click Finish . MAX adds the device to the Remote Systems list.Installing Software on the RT TargetUse the LabVIEW Real-Time Software Wizard to install software on the RT target. With the LabVIEW Real-Time Software Wizard, you can view the software that is already installed on the target, view the software that is available to install on the target, and change the software that is installed on the target. Click Help in the wizard for more information about installing and uninstalling software on the RT target.1.Expand the RT target under the Remote Systems item in the MAXconfiguration tree, right-click Software , and select Add/Remove Software .2.Select the software you want to install on the RT target.Note If you have multiple software versions installed on the host computer, the most recent version is selected by default. You can choose to install another version.•Ethernet Drivers —MAX automatically selects the appropriate Ethernet driver(s) for the RT target when you install theLabWindows/CVI Run-Time Engine for RT component.•LabVIEW Real Time —MAX selects this item automatically when you install the LabWindows/CVI Run-Time Engine for RTcomponent.•NI RT Extensions for SMP (MultiCore Support)—Install this item to take advantage of parallel processing on a multiple-CPU system.Note Single-CPU systems perform best without the NI RTExtensions for SMP . Also, some applications, such as those that consist mainly of single-point I/O, can achieve lower latency on a multicore system by using a single CPU without the NI RTExtensions for SMP .•LabWindows/CVI Network Variable for RT —Install this item only if your application uses functions from the Network VariableLibrary.•LabWindows/CVI Run-Time Engine for RT—Install this item to add support for LabWindows/CVI RT applications on the RT target.This component is required for all LabWindows/CVI RTapplications.•Language Support for LabVIEW RT—Install this item if you are using strings in your RT application containing ASCII charactersabove 127 or multibyte characters. After installing this item on theRT target, you can configure the locale in MAX by selecting thetarget in the Remote Systems item in the MAX configuration tree,selecting the System Settings tab, and modifying the Locale option.•NI Hardware Drivers—Install the appropriate drivers for any other hardware libraries that you use in your application. For example,install the NI-DAQmx component if your application uses functionsfrom the NI-DAQmx Library.•Network Variable Engine—MAX automatically selects this item when you install the LabWindows/CVI Network Variable for RTcomponent.•USB Support—Install this item to enable support for accessing USB thumbdrives.•Variable Client Support for LabVIEW RT—MAX automatically selects this item when you install the LabWindows/CVI NetworkVariable for RT component.Configuring System Settings1.Select the System Settings tab to configure system-level settings for theRT target.e the Timezone option to configure time zone and daylight savingsettings for the RT target. You can use this setting with time and date functions to provide accurate time information, relative to the time zone setting.3.Configure the Locale option to match the language you use for strings inyour RT application. This option is available only when you install the Language Support for LabVIEW RT component on the RT target.This option determines the code page that LabWindows/CVI uses when processing strings containing ASCII characters above 127 or multibyte characters.Configuring I/OYou must configure any National Instruments I/O devices before you can target them from a LabWindows/CVI RT application. For information about how to correctly configure I/O devices, refer to the documentation for that hardware.© National Instruments Corporation5Getting Started with LabWindows/CVI Real-TimeConfiguring an RT ProjectAfter you configure the RT target, you can create an RT application on the host computer and then run the application on an RT target. The applications that you create with the LabWindows/CVI Real-Time Module are DLLs. Complete the following steps to create a DLL and specify an RT target directly from LabWindows/CVI.1.Create a project in LabWindows/CVI using RTmain instead of main asthe entry point function for the program. Select Edit»Insert Construct»RTmain to insert the RTmain code into the program source.2.Select Build»Configuration»Debug or Build»Configuration»Releaseto specify the active configuration for the project.3.Select Build»Target Type»Dynamic Link Library to configure theproject to generate a DLL.4.Select Build»Target Settings to open the Target Settings dialog box.Select Real-time only in the Run-time support option. If you specify this option, LabWindows/CVI does not link to the entire set ofLabWindows/CVI libraries but instead links to only those librariessupported on an RT system.5.Configure other options in the Target Settings dialog box and click OKto exit the dialog box.6.Select Build»Create Debuggable Dynamic Link Library or Build»Create Release Dynamic Link Library to create the DLL.You also can use a project template to create an RT DLL. The project template includes basic settings for RT projects described in the preceding section. To select a project template, select File»New»Project from Template. In the New Project from Template dialog box, select Real-Time Target Application.Specifying an RT TargetComplete the following steps to select the RT target on which to run your RT application.1.Select Run»Select Execution Target for Debugging to view a list ofpreviously configured RT targets. Select the RT target you want to use from the list, if it is available.2.To configure a new RT target, select Run»Select Execution Target forDebugging»New Execution Target.3.In the New Real-Time Execution Target dialog box, enter the computername or IP address of the RT target in the Hostname/IP Address option and click OK to exit the dialog box.Getting Started with LabWindows/CVI © National Instruments Corporation 7Getting Started with LabWindows/CVI Real-Time Running an RT ApplicationSelect Run»Debug Project to run your RT application.NoteIf you select Run»Configuration»Release ,LabWindows/CVI displays a warning message. Click Continue to download and run the release DLL on the RT target. LabWindows/CVI automatically builds the DLL and downloads the DLL and any DLLs that are statically linked to it onto the specified RT target. LabWindows/CVI places the files that it automatically downloads in the NI-RT\CVI\temp folder. LabWindows/CVI empties the folder when you reset the RT device.While you run your RT application, LabWindows/CVI displays a <<Running on target >> menu in the upper left corner of theLabWindows/CVI environment. The menu contains the following options, which you can use for debugging and for shutting down the RT application:•Toggle Breakpoint —Turn on or turn off a breakpoint on the selected line.•Break Execution —Suspend execution of the program.•Simulate RT Shutting Down —End program execution. This option causes the RTIsShuttingDown function to return 1, giving the RT application an opportunity to run any necessary cleanup code and exit. The RT target does not reboot.•Abort Execution and Reboot Target —End program execution and reboot the RT target. The application cleanup code is not guaranteed to finish running before the RT target reboots.•Disconnect from RT target —Disconnect LabWindows/CVI from the RT target while the RT application continues running on the target. Once you disconnect from the RT target, you cannot reconnect LabWindows/CVI to the RT application that is running.Debugging an RT ApplicationIf you select Build»Configuration»Debug , you can debug the DLL from the LabWindows/CVI environment as you would debug any other application. For example, you can set breakpoints and watch expressions, step through code, view and edit variable values, and so on. For more information about debugging in LabWindows/CVI, refer to the Using LabWindows/CVI»Debugging Tools section of the LabWindows/CVI Help.Using the Real-Time Execution Trace ToolkitThis version of the LabWindows/CVI Real-Time Module includes a 30-day full-featured evaluation of the Real-Time Execution Trace Toolkit.Use the Real-Time Execution Trace Toolkit to analyze the timing and execution of an RT application. Use the Execution Trace functions in the Real-Time Utility Library to capture the timing and execution data of functions and threads in applications running on an RT target. The Real-Time Execution Trace Tool displays the timing and event data, or trace session, on the host computer.In LabWindows/CVI, select Tools»Real-Time Execution Trace Tool to launch the Real-Time Execution Trace Tool. Refer to the LabWindows/CVI Help for more information about using the Real-Time Execution Trace Toolkit to analyze RT applications.Deploying an RT ApplicationWhen you finish developing your RT application, you can deploy it to an RT target. After you deploy the RT application, the RT application runs automatically every time the RT target reboots.Select Run»Install Program to Real-Time Execution Target to deploy your RT application. This option performs the following actions:•Checks that the release configuration of the DLL has been built; if not, LabWindows/CVI prompts you to build the DLL or cancel.•Deploys the release DLL and any statically linked DLLs to the NI-RT\CVI folder on the RT target.•Sets the release DLL as a startup DLL.•Displays a dialog box indicating that the DLL was copied and prompting you to reboot the RT target.If you have additional support files that you need to deploy, complete the following steps:1.Select Run»Manage Files on Real-Time Execution Target to launchthe LabWindows/CVI Real-Time File Copy Utility.2.Click Add Files and browse to any support files that your applicationrequires. The utility immediately copies the files to the NI-RT\CVIfolder on the RT target.3.Click Done when you finish adding support files.Getting Started with LabWindows/CVI Where to Go from HereRefer to the following resources for more information about the LabWindows/CVI Real-Time Module:•The LabWindows/CVI Real-Time Module Help section of the LabWindows/CVI Help includes conceptual information about real-time programming techniques, application architectures, and Real-TimeModule software features you can use to create real-time applications.Select Help»Contents in LabWindows/CVI to access theLabWindows/CVI Help.•Use the NI Example Finder, available by selecting Help»Find Examples in LabWindows/CVI, to browse or search for example programs. You also can access the example programs from the samples\CVIsamples\realtime directory.© National Instruments Corporation9Getting Started with LabWindows/CVI Real-TimeNational Instruments, NI, , and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section on /legal for more information about National Instruments trademarks. The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. Reliance™ is a trademark of Datalight, Inc. Copyright 1989-2008 Datalight, Inc., All Rights Reserved. Datalight® is a registered trademark of Datalight, Inc. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National Instruments products/technology, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your media, or the National Instruments Patent Notice at /patents.© 2007–2008 National Instruments Corp. All rights reserved.374686B-01Oct08。
基于LabWindows/CVI的数据库编程董慧群;王福明【摘要】In a complex large-scale test system of software development, facing the large amounts of data storage, management and processing, the database is an indispensable and important component. Open database connectivity (ODBC) specification provides a set of%在复杂的大型测试系统的软件开发中,面对大量数据的存储、管理和处理,数据库是测试系统中不可缺少的重要组成部分。
开放式数据库互联(ODBC)规范提供的一组对数据库访问的标准API为数据库的管理和应用程序开发提供了强大的工具。
基于此介绍了在Labwindows/CVI平台下,应用ODBC和SQLTOOLKIT工具包与Oracle数据库交互的过程和程序实例。
实践证明,此方法简单、可靠,实际开发中可用性比较强。
【期刊名称】《山西电子技术》【年(卷),期】2011(000)004【总页数】2页(P55-56)【关键词】LabWindows/CVI;ODBC;SQL;Toolkit;数据库【作者】董慧群;王福明【作者单位】中北大学,山西太原030051;中北大学,山西太原030051【正文语种】中文【中图分类】TP311在测试系统的应用开发中,测试数据通常是以文件的方式进行组织管理的。
这样的数据存储方式有一定的局限性,特别是远程测试系统,对于大量的数据不能及时的反馈。
要实现方便灵活的管理和访问,数据库是一种必然的选择。
LabWindows/CVI是一个完全的标准C开发环境,用于开发虚拟仪器应用系统[3]。
CVI5.5及以后的版本提供了支持数据库的SQL TOOLKIT工具包,该工具包提供了丰富的数据库操作函数,给开发带来了方便和快捷。
LabVIEW与LabWindowsCVI结合两种开发环境的优势在现代科技发展的背景下,软件开发环境的选择对于工程师和科研人员来说至关重要。
LabVIEW和LabWindowsCVI是两种常见的软件开发环境,它们分别有自己独特的特点和优势。
然而,结合使用这两种开发环境可以发挥出更大的优势,为用户提供更强大的功能和更高效的开发体验。
一、LabVIEW的优势LabVIEW是美国国家仪器公司(National Instruments)开发的图形化编程环境,被广泛应用于科学研究、工业控制等领域。
LabVIEW具有以下几个显著的优势:1. 图形化编程界面:LabVIEW采用图形化的编程界面,通过将函数模块拖拽至编程区域并连接,用户可以直观地组织和搭建程序。
相比于传统的文本编程,图形化编程使得程序结构更加清晰易懂,降低了学习和开发的门槛。
2. 丰富的工具箱:LabVIEW提供了一系列丰富的工具箱,涵盖了各种领域的应用需求。
无论是进行数据采集、信号处理、图像处理还是控制系统的设计,LabVIEW都提供了相应的工具箱和函数库,可以方便地实现各种功能。
3. 与硬件设备的无缝集成:LabVIEW可以与各种硬件设备无缝集成,包括传感器、仪器等。
通过其独特的数据采集、控制和监控功能,LabVIEW可以轻松实现与硬件设备的通讯和数据交互,为用户提供高效的实验和控制手段。
二、LabWindowsCVI的优势LabWindowsCVI是一种基于C语言的集成开发环境,也是由美国国家仪器公司开发的工程开发环境。
LabWindowsCVI具有以下几个显著的优势:1. C语言编程:LabWindowsCVI基于C语言开发,对于熟悉C语言的开发人员来说更加友好和熟悉。
C语言作为一种广泛应用的编程语言,具有强大的功能和灵活性,可以满足各种复杂应用的开发需求。
2. 高性能和灵活性:LabWindowsCVI具有高性能和灵活性,可以快速响应和处理复杂的数据处理任务。
l a b w i n d o w s-C V I-教程本页仅作为文档封面,使用时可以删除This document is for reference only-rar21year.MarchLabWindows/CVI基础教程序言LabWindows/CVI是National Instruments公司推出的一套面向测控领域的软件开发平台。
它以ANSI C为核心,将功能强大,使用灵活的C语言平台与数据采集,分析和表达的测控专业工具有机地接和起来。
它的集成化开发平台,交互式编程方法,丰富的控件和库函数大大增强了C语言的功能,为熟悉C语言的开发人员建立检测系统,自动测量环境,数据采集系统,过程监控系统等提供了一个理想的软件开发环境。
本教程面向的是那些从未使用过LabWindows/CVI的读者,但是假设读者以有了C语言的基础并且熟悉Windows 2000/9x/NT操作系统。
在每一章节的学习中,作者都是通过一个具体的实例让读者迅速的掌握本章的知识点;而不是长篇大论,述及边枝细叶,反而使读者望而却步,只见树木,不见森林。
想信通过对本教程的学习,读者可迅速掌握LabWindows/CVI编程思想及步骤,为读者日后进一步学习打下基础。
本书约定:“File>>Page Setup>>Options”File 这一种黑色斜体字是指多级菜单名,按扭名,窗口名或者是关键性词汇。
“>>”是指打开一个多级菜单或对话框。
如:File>>Page Setup>>Options是指你首先打开File 菜单,然后选择Page Setup项,最后从弹出的对话框中选择Options 项。
“说明:通过这种方式你可以修改Panel顶端所显示的名字。
”该种字体所写的文字是值得读者注意并记忆的内容。
“该椭圆形框所框住的内容是读者需修改的地方。
第一部分 CVI快速入门本部分通过编制一个简单的LabWindows/CVI程序,使读者对CVI编程环境,思想及步骤有一初步的认识。
LabWindows/CVI的应用特点摘要:LabWindows/CVI是一个完全的标准C开发环境,用于开发虚拟仪器应用系统。
Labwindows/CVI将源代码编辑、32位ANSI C编译、联结、调试以及标准ANSI C库等集成在一个交互式开发环境中。
编程技术方面主要采用事件驱动方式与回调函数方式,编程方法简单易学。
同时Labwindows/CVI对每一个函数都提供一个函数面板,可进行交互式编程,大大减少了源码语句的键入量,减少了程序语法错误,提高了工程设计的效率和可靠性。
关键字: LabWindows/CVI;ANSI C;事件驱动;回调函数;函数面板一、LabWindows/CVI简介LabWindows/CVI是一个完全的标准C开发环境,用于开发虚拟仪器应用系统。
LabWindows/CVI 提供内置式函数库用于完成数据采集、分析、和显示任务;它还提供简单的拖放式用户界面编辑器以及自动代码生成工具。
利用这些功能,您可以在将代码加入到某项目之前,先对其进行互动式的测试。
可以利用LabWindows/CVI定义和建立用户界面,生成或运行ActiveX组件,及开发多线程应用。
如果把您掌握的C语言编程知识与LabWindows/CVI简单易用的特性结合在一起,您将以不可思议地速度开发出复杂的测量应用系统。
LabWindows/CVI的应用领域极其广泛,涵盖了军工,电讯,工业生产和航天等各种行业。
二、Labwindows/CVI的特点LabWindows/CVI是一个完全集成式的开发环境,特别为建立以GPIB,PXI,VXI和插入式数据采集板卡为基础的测量系统而设计。
该环境将互动性、简单易用的开发方式与ANSI C编译代码所特有的强大编程功能和灵活性有机地结合在一起。
LabWindows/CVI提供了许多实用的特性,使您无需牺牲C代码的运行速度或源代码可管理性,便能引人注目地改进工作效率。
Labwindows/CVI将源代码编辑、32位ANSI C编译、联结、调试以及标准ANSI C库等集成在一个交互式开发环境中。
基于LabWindows CVI和MCU的温度采集系统设计摘要:设计了一种基于LabWindows/CVI和MCU的温度采集系统。
下位机由AT89S51单片机、DS18B20温度传感器、MAX232串口通信模块等组成,上位机采用LabWindows/CVI编程,实现单片机与上位机通信。
能够实现对工作现场实时温度采集,数据传输、实时处理、远程温度显示及存储,具有结构简单、显示直观、性价比高等特点。
关键词:LabWindows/CVI;MCU;温度采集温度是工业生产中常见的被控参数,温度采集与控制广泛应用于冶金、机械、食品、化工等各类工业中,准确、可靠、快速地采集到温度数据可以为工业生产中各类控制系统提供重要的依据。
传统温度采集系统多以热电阻、热电偶等为温度敏感元件,它们基本都是先测出电压,再将其转换成相对应的温度,这就显得较为复杂,需要大量的外部硬件支持;线路上传送的是模拟信号易受干扰,随着测温点数量的增加,信号传输线数量也随之增加,导致布线困难、安装、维护和检修的费用增加,软件调试也复杂。
本文设计了基于LabWindows/CVI和MCU 的多点温度采集系统,多个温度传感器采用单总线连接,大大降低了外部电路的复杂程度,具有节省I/O资源、结构简单、成本低廉、便于总线扩展和方便维护等特点[1]。
1 LabWindows/CVI简介虚拟仪器(Virtual Instruments)是仪器技术发展出的第四代仪器技术,是当前计算机辅助测试领域中一项重要的技术。
随着计算机的发展和各种相关软件的产生、完善,虚拟仪器正在逐渐取代传统的测量仪器而成为测试仪器的主流。
虚拟仪器和传统仪器相比,具有性价比高、开发性好、智能化程度高、界面友好、使用方便等优点[2]。
LabWindows/CVI是一个完全的ANSI C开发环境,将功能强大、使用灵活的C语言平台与用于数据采集、分析和显示的测控专业工具有机结合起来,包含了各种总线、数据采集和分析库,同时提供了国内外三百多种仪器的驱动程序,极大方便了虚拟仪器系统的开发,使用户容易生成各种应用程序,开发程序效率高、可靠性好。
第5卷 第4期信息与电子工程Vo1.5,No.4 2007年8月INFORMATION AND ELECTRONIC ENGINEERING Aug.,2007文章编号:1672-2892(2007)04-0253-04基于LabWindows/CVI的数据库与Matlab混合编程及实现蒋 薇,夏连胜(中国工程物理研究院 流体物理研究所,四川 绵阳 621900)摘要:为了在Windows/CVI环境下实现基于数据库的复杂算法,讨论了LabWindows/CVI与Matlab混合编程以及LabWindows/CVI对数据库进行访问的几种方法,并在多脉冲电子束测控系统中运用三者混合编程,实现了大量现场数据的计算、管理等功能。
关键词:LabWindows/CVI;Matlab;数据库;多脉冲电子束;测控系统中图分类号:TP206+.1 文献标识码:AMixed Programme and Implementation Based on LabWindows/CVI Databaseand MatlabJIANG Wei,XIA Lian-sheng(Institute of Fluid Physics,China Academy of Engineering Physics,Mianyang Sichuan 621900,China)Abstract: Several methods of mixed programme based on LabWindows/CVI and Matlab are discussed.Some kinds of solution about accessing between LabWindows/CVI and database are also described.The controllingand measuring system of multi-pulsed current beam is designed and implemented under the truss ofLabWindows/CVI+database+Matlab.It can provide a way to implement some complex algorithms basing ondatabase in LabWindows/CVI.Key words: LabWindows/CVI;Matlab;database;multi-pulsed current beam;controlling and measuring system1引言NI公司的LabWindows/CVI(以下简称CVI)开发平台集成了从一般用户应用程序开发所需的界面编程到测试应用开发所需的各种仪器控制、数据获取、信息处理以及对数据库和网络应用开发的软件包,适用于自动测试、自动控制、测试仪器通信、测试硬件控制以及信号分析处理的软件开发。