Global TMW:
Login  |  Register          Free Newsletter Subscription
Subscribe
Email
Print
Reprint
Learn RSS

Click Open LabView Screens

By clicking, you gain access to diagrams and calling functions.

Lynda Gruggett, LTR Publishing, Dallas, TX -- Test & Measurement World, 4/15/1999

LabView, a graphical programming language, gives you quick access to many features. The language uses functions called virtual instruments (VIs), each of which has a data-flow diagram and a front panel. While programming, you can quickly open either view in its own window.

LabView VIs are modular in design, so any VI can run by itself or be used as part of another VI. When you place one VI within another, it becomes a subVI of the higher-level VI.

When you add a VI to a higher-level VI, you’ll find the subVI contained in an icon. If you double click on the subVI, you’ll open its front panel, which contains the controls used in the subVI. Sometimes, however, instead of viewing that subVI’s front panel, you’d like to view its data-flow diagram. To do that on a Windows system, hold down the Control key while you double click on the subVI’s icon. (Other operating systems use different keys.1) Figure 1 shows the result.

14t1fig1.gif (35932 bytes)
Figure 1. LabView lets you quickly open the front panel of a subprogram, called a subVI. Use the Control key while opening a subVI to access the data-flow diagram.

A LabView program typically consists of a hierarchy of VIs. Using the hierarchy window, LabView lets you see which VIs call other VIs. Unfortunately, in a large application, the hierarchy window can become rather complex when showing multiple levels. A click of the mouse can traverse this hierarchy and help you keep track of which other VIs call which VIs. Figure 2a shows a relatively simple hierarchy window. Suppose you want to view the hierarchy of only those VIs that call or are called by AI_Waveform_Scan.vi. Click on that VI’s icon while holding the Windows Control key and you’ll see the diagram in Figure 2b. LabView will display only those icons that represent VIs in that flow of data. T&MW

14t1fg2a.gif (30449 bytes)
        
14t1fg2b.gif (25179 bytes)
Figure 2. (a--top) The hierarchy of a LabView program. (b--bottom) The VIs associated with AI_Waveform_Scan.vi.

FOOTNOTE
1. For LabView on a Macintosh, use the Option key in place of the Control key. Under Unix, use the Meta key.

Lynda Gruggett is the editor of LabVIEW Technical Resource, an independent publication for LabView Users. lynda_gruggett@ltrpub.com.

Email
Print
Reprint
Learn RSS

Talkback

We would love your feedback!

Post a comment

» VIEW ALL TALKBACK THREADS

Related Content

Related Content

 

By This Author

There are no other articles written by this author.

Sponsored Links



 
Advertisement
SPONSORED LINKS

More Content

  • Blogs
  • Podcasts

Blogs

  • Rick Nelson
    Taking the Measure

    July 1, 2008
    S-parameters are so yesterday
    Textbook amplifiers operate in linear mode and are easy to analyze. Unfortunately, it’s often ...
    More
  • Martin Rowe
    Rowe's and Columns

    May 28, 2008
    More on Bill and Dave
    In my January 11 posting, "Tell your Bill and Dave Stories," I asked if the HP Way still e...
    More
  • » VIEW ALL BLOGS RSS

Podcasts

Advertisements





NEWSLETTERS
Click on a title below to learn more.

Test Industry News (3 Times Per Month)
Machine-Vision & Inspection (Monthly)
Communications Test (Monthly)
Design, Test & Yield (Monthly)
Automotive, Aerospace & Defense (Monthly)
Instrumentation (Monthly)
Resource Center E-Alert (Monthly)
©2008 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy
Please visit these other Reed Business sites