From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

利用DSC模块做应用系统怎样生成可执行文件


利用LABVIEW DSC 模块做一个实际的监控系统后,如何生成可执行文件,都需要那些东东,怎样
的步骤,那位高手知道请指教,谢谢

0 项奖励
1 条消息(共 2 条)
4,782 次查看
Building Applications Created with the LabVIEW DSC Module
Print this Page



This document explains the requirements for building executables from VIs created with the LabVIEW Datalogging and Supervisory Control (DSC) module.

You can create applications from LabVIEW DSC module VIs using the LabVIEW Application Builder. When you install the Application Builder, the Build Application feature becomes available in the Tools menu.

If your application does not use any LabVIEW Datalogging and Supervisory Control module features, you may use the Application Builder as you would with any LabVIEW application.
If your application takes advantage of the features that the LabVIEW Datalogging and Supervisory Control module adds to LabVIEW, you can still use the Application Builder to create an executable program using your VIs. However, additional software and files will be necessary for it to function correctly, as described in the following sections.

Table of Contents:
Building Your Application
What to Include with Your Application
How to Transport Your Application


Building Your Application


Before using the Application Builder with the LabVIEW Datalogging and Supervisory Control module, you must install a patch to enable the Application Builder to work with LabVIEW DSC module features. This patch ensures that the Application Builder includes the correct VIs in your application. If it is not applied, your application may be missing VIs, or the Application Builder may fail to completely build your application. After installing the patch, you build your application the same way as you would build any other LabVIEW application. (If you have LabVIEW version 6.0.2 and LabVIEW DSC module version 6.0.2, you do not have to install the patch; it is already part of the 6.0.2 updater.) You can install the patch by running the Apply Application Builder Patch.vi, located in vi.lib\lvdsc\System\_distpatch.llb\Apply Application Builder Patch.vi

If your program uses VIs specific to the LabVIEW DSC module, the LabVIEW DSC Run-Time system must be installed on the computers you plan to run the application on. A dialog box reminding you of this pops up when the Application Builder finishes the build. The Application Builder excludes VIs specific to the LabVIEW DSC module from the built application, because they must be correctly installed on the target computer. The LabVIEW DSC Run-Time system correctly installs the necessary and additional software, providing all of the configuration tools, the Tag Engine, historical data logging, network data access, security, and other features provided by the LabVIEW DSC module.


What to Include with Your Application


You should include all VIs you have written for your application, as well as any external data files. For applications created with the LabVIEW DSC module, these files will commonly include the following:
Tag configuration (.scf) files
Preference files (.ini, .cfg) from the LabVIEW directory
Hardware configuration files (such as .iak files for FieldPoint, MAX configuration data, and so on)
The common configuration database file (.ccdb). This file can be identified by examining the title bar of the Server Browser utility (Tools»Datalogging & Supervisory Control»Advanced»Server Browser), or by examining the following value in the WindowsRegistry key: HKEY_LOCAL_MACHINE\Software\National Instruments\NI-Servers Value: Active CCDB
Server software for all servers your application depends on for data. You may have to register VI-based servers yourself.

Refer to the Related links for complete set of support files to include in your application.
See Also:
Support Files to Include when Building a LabVIEW DSC Module Application



How to Transport Your Application


Once the executable has been built, it must be placed in DSC Run-Time\6.0.2 (with the file DSCRTS.exe) on the target machine. If you are using tags, configure the tag engine with the tag configuration file (.scf) that corresponds with the executable. If you are using FieldPoint, configure the .iak file in FieldPoint Explorer. Launch the executable from the DSC Run-time folder.

Refer to the Related links for an example how to deploy an application.
0 项奖励
2 条消息(共 2 条)
4,768 次查看