When you click the New button in the
LabVIEW dialog box, the New dialog
box appears. You also can select File>>New to
display this dialog box. When you select a template in the
Create new list, previews of the VI appear in the
Front panel preview and the Block diagram
preview sections, and a description of the template
appears in the Description section. Figure 2 shows the New dialog box and the
SubVI with Error Handling VI template.
![]() |
Click the OK button to open the template. You
also can double-click the name of the template VI in the
Create new list to open the template. If no
template is available for the task you want to create, you can
start with a blank VI and create a VI to accomplish the
specific task. In the LabVIEW dialog box, click
the arrow on the New button and select
Blank VI from the shortcut menu or press the
Ctrl-N keys to open a blank VI.
note:
Blank
VI from the Create new list in the
New dialog box or by selecting File>>New
VI.
Open/Templates
Use the New dialog box to create different
components in LabVIEW to help you build an application. You
can start with a blank VI to write a VI from scratch, or
start with a template to simplify the programming. The
New dialog box includes the following
components:
-
Create new: Displays templates you can use to
start building VIs and other LabVIEW documents. Select
from the following templates and click the
OKbutton to start building a VI or other LabVIEW document.- Blank VI: Opens a blank front panel and blank block diagram.
- VI from Template: Opens a front panel and block diagram with components you need to build different types of VIs.
- Other Document Types: Opens the tools you use to build other LabVIEW objects.
-
Browse for Template: Displays the
Browsedialog box so you can navigate to a VI, control, or template. If you previously have browsed for and selected a template from this dialog box, use the pull-down menu of theBrowsebutton to select a template to reopen it. -
Front panel preview: Displays the front panel
for the VI template you selected in the
Create newlist. -
Block diagram preview: Displays the block
diagram for the VI template you selected in the
Create newlist. -
Description: Displays a description of the
template you selected in the
Create newlist if the template includes a description.
Opening an Existing VI
You load a VI into memory by selecting
File>>Open. In the Choose the VI to
open dialog box that appears, navigate to the VI you
want to open.
The VIs you edit in this course are located in the
C:\Exercises\LabVIEW Basics I directory.
As the VI loads, a status dialog box similar to Figure 3 might appear.
![]() |
The Loading section lists the subVIs of the VI
as they are loaded into memory. Number Loaded
is the number of subVIs loaded into memory so far. You can
cancel the load at any time by clicking the
Stop button.
If LabVIEW cannot immediately locate a subVI, it begins
searching through all directories specified by the VI
Search Path. You can edit the VI Search
Path by selecting Tools>>Options and
selecting Paths from the top pull-down
menu. The Searching section lists directories
or VIs as LabVIEW searches through them. You can have
LabVIEW ignore a subVI by clicking the Ignore
SubVI button, or you can click the
Browse button to search for the missing subVI.
Saving VIs
Select Save, Save As, Save
All, or Save with Options from the
File menu to save VIs as individual files or
group several VIs together and save them in a VI library. VI
library files end with the extension
.llb. National Instruments recommends that you
save VIs as individual files, organized in directories,
especially if multiple developers are working on the same
project.
LabVIEW uses the native file dialog boxes so they act
similar to other applications on the computer. You can
disable this feature by selecting
Tools>>Options and selecting
Miscellaneous from the top pull-down menu. If
you disable native file dialogs, LabVIEW uses its own
platform-independent file dialog boxes with some convenient
features, such as providing a list of recent paths and
reducing the steps necessary to save VIs in VI libraries.
Moving VIs Across Platforms
You can transfer VIs from one platform to another, such as from Mac OS to Windows. LabVIEW automatically translates and recompiles the VIs on the new platform.
Because VIs are files, you can use any file transfer method or utility to move VIs between platforms. You can port VIs over networks using FTP, Z or XModem protocols, or similar utilities. Such network transfers eliminate the need for additional file translation software. If you port VIs using magnetic media, such as floppy disks or a moveable external hard drive, you need a generic file transfer utility program, such as the following:
- (Windows) MacDisk and TransferPro transfer Mac OS files to the PC format and vice versa.
- (Mac OS) DOS Mounter, MacLink, and Apple File Exchange convert PC files to the Mac OS format and vice versa.
- (Sun) PC File System (PCFS) converts PC files to the Sun format and vice versa.
note:
Refer to the Porting and Localizing LabVIEW VIs
Application Note, available by selecting Help>>Search
the LabVIEW Bookshelf, for more information about
porting VIs.























































"A full introductory course on programming with LabVIEW."