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

Document Type: Tutorial
NI Supported: Yes
Publish Date: Jul 2, 2008


Feedback


Yes No

Related Categories

Products

Development Topic

Related Links - Developer Zone

Related Links - Products and Services

Exercise: Wires

0 ratings | 0.00 out of 5
Print

Overview

This exercise will show you how to wire functions on the Block Diagram. You will also learn how to use the Clean Up Wires tool to save you time while programming.

Goal

Understand the basic operation of wires in the LabVIEW environment.

Description

This exercise consists of a series of tasks in which will walk you through placing down elements and wire them together on the block diagram. The Clean Up Wire feature will also be explored.

Wires

1. Launch LabVIEW and open a blank VI.

❑ Select File»New VI

2. Open the front panel of the VI.

3. Create a Numeric Control.

❑ Place a numeric control on the front panel from Modern»Numeric»Numeric Control on the Controls palette.
❑ Name this control Number 1.

4. Create a copy of the numeric control.

      ❑ Select  the Number 1 control, hold down CTRL, and drag it below the original control.

5. Add a numeric indicator to the front panel.

❑ Place a numeric indicator from Modern»Numeric»Numeric Indicator on the Controls palette.  
❑ Name this indicator Sum.

6. Open the block diagram of the VI.

❑ Select Window»Show Block Diagram.

7. Place an Add function on the block diagram.

❑ From the Functions palette, select Programming»Numeric»Add and place the function on the Block Diagram. 

8. Arrange the elements on the Block Diagram as shown below.

9.  Wire the outputs of the Numeric Controls to the input of the Add function.

❑ Click the output to the right of the Number 1 control on the Block Diagram and route the wire to the first input on the left of the Add function.

❑ Repeat this process for the Number 2 control and the second input of the Add function.

11. Wire the output of the Add function to the input of the Sum indicator.

❑ Click the output terminal of the Add function and route the wire to the input of the Sum indicator.

12. Observe the Clean up Wire feature. 

❑ Select the Sum indicator and drag it below the Add function.

❑ Right click the wire in between the Add function and Sum indicator and select Clean Up Wire. This will rearrange the wire in a more visually appealing fashion.

14. Close the VI and do not save.

END OF EXERCISE

 


Tutorial        Video       Passing Data, Debug, and SubVIs       Modules Home       FIRST Community

0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

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/).