Once you have designed, developed, and debugged your program in LabWindows/CVI, it is easy to compile it into an executable program.
To see how this is done, pull down on the Build menu and select Create Standalone Executable.
!
BEGIN_TEXT
!
Creating an Executable
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
0
0
0
0
0
3
3
0
3
0
-1
DISTRIB.AVI
0
4
3885
1440
6270
3210
0
0
0
0
BEGIN_TEXT
For each executable program, you can specify an Application Icon, to be embedded into the executable and displayed in the Windows program manager for your program when it is installed on a target computer. We ship LabWindows/CVI with an example program that is an icon editor, so you can create your own icon files.
In addition, you can assign an Application Title for your program, which will appear under the icon in the Program Manager and also appear when a user switches to your program in Windows using the <Alt-Tab> keystrokes.
Click on the arrow to continue.
!
BEGIN_TEXT
!
Creating an Executable
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
ARR_R1R.BMP
ARR_R1_.BMP
161
107
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
-1
0
0
0
0
3
3
-1
3
0
0
DISTRIB.AVI
0
5
5280
3525
5655
1860
0
0
0
0
BEGIN_TEXT
If you want your program to dynamically load object modules or libraries, LabWindows lets you embed these external files into the executable file.
Click on the arrow to continue.
!
BEGIN_TEXT
!
Creating an Executable
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
ARR_L1R.BMP
ARR_L1_.BMP
298
247
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
-1
0
0
0
0
3
3
-1
0
0
0
DISTRIB.AVI
0
7
5265
2205
5655
1395
0
0
0
0
BEGIN_TEXT
Once you have specified these options, click on the OK button to build your executable.
!
BEGIN_TEXT
!
Creating an Executable
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
0
0
0
0
0
3
3
0
5
0
-1
DISTRIB.AVI
0
11
3375
2265
6810
2460
0
0
0
0
BEGIN_TEXT
Once you have created an executable program, you may wish to run this executable on another computer. To make it easy to transfer your program to another computer, LabWindows/CVI has a built-in utility for creating distribution kits. If you are using any National Instruments driver software libraries (DAQ, GPIB, or VXI libraries), you can distribute your application royalty-free.
Pull down on the Build menu and select Create Distribution Kit.
!
BEGIN_TEXT
!
Building a Distribution Kit
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
0
0
0
0
0
3
3
0
5
0
-1
DISTRIB.AVI
0
15
3210
1965
6120
2805
0
0
0
0
BEGIN_TEXT
From the Build Information section of the dialog box, you can specify the size of disks you will use, the target path for installing the program, and a number of kilobytes to save on the first disk of your distribution kit for adding a non-compressed Readme file. You can even specify which language to use for the setup program dialog boxes (you can choose from 12 languages, including German, French, Italian, and Japanese).
Click on the arrow to continue.
!
BEGIN_TEXT
!
Building a Distribution Kit
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
-1
0
0
0
0
3
3
-1
5
0
0
DISTRIB.AVI
0
16
210
1710
6120
2340
0
0
0
0
BEGIN_TEXT
From the File Groups section of the dialog box, you can select the files you want to include in your distribution. In this example, there are three file groups: the files making up the executable itself, some DLLs that are used by the executable, and some Readme files. For each file group, you can specify some special attributes.
Select the DLLs file group to view its attributes.
!
BEGIN_TEXT
!
Building a Distribution Kit
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
0
0
0
0
0
3
3
0
5
0
-1
DISTRIB.AVI
0
18
210
1665
6165
2130
0
0
0
0
BEGIN_TEXT
DLL files are placed in the Windows\System directory on the target computer. If the DLLs already exist on the target computer, the installer automatically asks the end-user if he/she would like to overwrite the existing DLLs.
Select the Readme Files group to view its attributes.
!
BEGIN_TEXT
!
Building a Distribution Kit
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
0
0
0
0
0
3
3
0
5
0
-1
DISTRIB.AVI
0
20
510
1695
6120
2325
0
0
0
0
BEGIN_TEXT
Readme files are placed in the Application directory and any associated Windows Program Manager icons are installed automatically. For example, if the Readme files are standard text (.txt) files, a NotePad icon is added to the Program Group for the application so that users can easily view the Readme file.
Click on the Build button to create the distribution kit.
!
BEGIN_TEXT
!
Building a Distribution Kit
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
0
0
0
0
0
3
3
0
5
0
-1
DISTRIB.AVI
0
22
210
1710
6120
2400
0
0
0
0
BEGIN_TEXT
When you click on the Build button, LabWindows/CVI automatically compresses all of the specified files, creates a custom setup program for installing these files on a target computer, and copies the compressed files and the setup program to disks or directories on your hard drive.
Click on the arrow to continue.
!
BEGIN_TEXT
!
Building a Distribution Kit
0
0
0
0
255
255
255
255
0
0
0
0
0
0
255
255
255
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
8
8
~~
~~
-1
0
0
0
0
3
3
-1
5
0
0
DISTRIB.AVI
0
23
4350
690
6120
1620
0
0
0
0
BEGIN_TEXT
For this example, only one disk was needed.
Click on the OK button to end this section of the tutorial.