Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 13, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Building Applications Created with the LabVIEW DSC Module

26 ratings | 2.73 out of 5
Print

Overview

This document explains the requirements for building executables from VIs created with the LabVIEW Datalogging and Supervisory Control (DSC) module. Note: This process is valid for LabVIEW DSC 7.1 and earlier. Refer to the LabVIEW Help for LabVIEW DSC 8.x.

Building Your Application Executable

You can create application executables from the DSC Module VIs using the LabVIEW Application Builder. The majority of the build process is the same as any other VI. The only difference is that you need some additional software and files for the application to function correctly. Refer to the "What to Include with Your Application" section for more information about these additional resources.

Note: If you are using LabVIEW DSC Module 6.0 or 6.0.1, you must install a patch to enable the LabVIEW Application Builder to work with the LabVIEW DSC Module features. This patch ensures that the LabVIEW Application Builder includes the correct VIs in your application. You can install the patch by running the Apply Application Builder Patch.vi, located at vi.lib\lvdsc\System\_distpatch.llb\Apply Application Builder Patch.vi

What to Include with Your Application


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 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, available by selecting Tools»Datalogging & Supervisory Control»Advanced»Server Browser in LabVIEW, 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 that your application depends on for data. You might have to register VI-based servers yourself.
Refer to the following 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

You first must install the LabVIEW DSC Run-Time System on the computers on which you plan to run the application. You need to install the LabVIEW DSC Run-Time System because the Application Builder excludes VIs specific to the LabVIEW DSC Module from the built application. Therefore, these VIs must be installed correctly on the target computer. The LabVIEW DSC Run-Time System correctly installs the necessary and additional software as well as provides all the configuration tools, the Tag Engine, historical data logging, network data access, security, and other features provided by the LabVIEW DSC Module.

You then must place the built executable in the DSC Run-Time\X directory, where X represents the current version of the LabVIEW DSC Run-Time System (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. You then can launch the executable from the DSC Run-Time folder.

Refer to the following links for an example how to deploy an application.

See Also:
Deploying the HVAC Example with Application Builder

26 ratings | 2.73 out of 5
Print

Reader Comments | Submit a comment »

needs to be updated for labview 7. The document talks about a patch needing to be applied unless you have 6.0.2, in which case it's included - so I assume it's included in 7 as well but should be explicitely stated
- Dec 22, 2004

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).