Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Automatically Wiring Objects

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

As you move a selected object close to other objects on the block diagram, LabVIEW draws temporary wires to show you valid connections. When you release the mouse button to add the object to the block diagram, LabVIEW automatically connects the wires. You also can automatically wire objects already on the block diagram. LabVIEW connects the terminals that best match and does not connect the terminals that do not match.

Toggle automatic wiring by pressing the spacebar while you move an object using the Positioning tool. By default, automatic wiring is enabled when you select an object from the Functions palette or when you clone an object already on the block diagram. Automatic wiring is disabled by default when you use the Positioning tool to move an object already on the block diagram. When automatic wiring is enabled, the selected object retains its appearance when you drag it. When automatic wiring is disabled, the selected object appears as a dotted outline when you drag it.

Complete the following steps to practice wiring objects automatically as you add them to the block diagram.

  1. If necessary, enable automatic wiring and set the maximum and minimum distances for objects to wire automatically.
  2. Add a numeric control to the front panel window.

  3. Press the <Ctrl-E> keys to display the block diagram. (Mac OS X) Press the <Command-E> keys. (Linux) Press the <Alt-E> keys.
  4. Select the Add function from the Functions palette.

  5. Move the left side of the function close to the right side of the numeric control terminal on the block diagram. As you move the function close to the terminal, LabVIEW draws temporary wires to show you valid connections. Make sure the function is within the maximum and minimum distances you set in step 1.
  6. When a temporary wire appears between the numeric control terminal and the top left terminal of the Add function, click the mouse button to add the function and wire the objects.
  7. Make sure you wire all required terminals. Otherwise, the VI is broken and will not run. Use the Context Help window to see which terminals a block diagram node requires. The labels of required terminals appear bold in the Context Help window.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit