1 / 25

EET 2259 Unit 3 Editing and Debugging VIs

EET 2259 Unit 3 Editing and Debugging VIs. Read Bishop, Chapter 3. Lab #3 and Homework #3 due next week. Quiz #2 next week. Editing Techniques. Editing techniques include Creating controls & indicators on block diagram Selecting objects Moving objects Deleting objects

oistin
Download Presentation

EET 2259 Unit 3 Editing and Debugging VIs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EET 2259 Unit 3Editing and Debugging VIs • Read Bishop, Chapter 3. • Lab #3 and Homework #3 due next week. • Quiz #2 next week.

  2. Editing Techniques • Editing techniques include • Creating controls & indicators on block diagram • Selecting objects • Moving objects • Deleting objects • Duplicating objects • Resizing objects • Labeling objects • Changing text font, style, size, color • Working with wires • Aligning, distributing, and resizing objects • Coloring objects • Cleaning up the block diagram (Bishop, pp. 112-140)

  3. Creating Controls & Indicators on Block Diagram • After placing a function or subVI on block diagram, right-click on one of its terminals and select Create > Control or Create > Indicator. • This adds a control or indicator to the front panel and automatically wires it on the block diagram. (Bishop, p. 112)

  4. Tools Palette • Lets you operate and modify objects on front panel or block diagram. Automatic Selection Tool Scrolling Tool Breakpoint Tool Probe Tool Color Copy Tool Coloring Tool Operating Tool Positioning/Resizing Tool Labeling Tool Wiring Tool Shortcut Menu Tool (Bishop, p. 23)

  5. Selecting Objects • To move, delete, or copy an object on the front panel or block diagram, you must first select the object. • The easiest way to select an object or objects is to drag a box around them. • You can also select an object by clicking it with the positioning tool, and you can select multiple objects by shift-clicking. (Bishop, p. 114)

  6. Moving Objects • After selecting an object or objects, move by dragging with the mouse or using the arrow keys. (Bishop, p. 116)

  7. Deleting Objects • After selecting an object or objects, delete by pressing Delete or Backspace key, or by Edit > Clear on pull-down menus. (Bishop, p. 117)

  8. Duplicating Objects • After selecting an object or objects, duplicate by Edit > Copy and Edit > Paste on pull-down menus (or use Ctrl+C and Ctrl+V shortcut keys). (Bishop, p. 117)

  9. Resizing Objects • Resize an object on the front panel by dragging the blue resize handles that appear when you move the positioning tool over the object. (Bishop, p. 117)

  10. Labels • Create a free label by using the labeling tool on the tools palette or by double-clicking on blank area of front panel or block diagram. • Show or hide an object’s owned label by using short-cut menu’s Visible Items > Label. • Edit any label by double-clicking. (Bishop, p. 119)

  11. Changing Text Font, Style, Size, Color • Use the Text Settings drop-down box on the toolbar to change text appearance. (Similar to word processors.) (Bishop, p. 120)

  12. Working with Wires Wiring “Hot Spot” Click To Select Wires Clean Up Wiring (Bishop, pp. 122-127)

  13. Broken Wires • Remove a single broken wire by selecting the wire and pressing the Delete key, or by right-clicking the wire and selecting Delete Wire Branch. • Remove all broken wires by using Edit > Remove Broken Wires pull-down menu (or Ctrl+B shortcut key). (Bishop, p. 125)

  14. Aligning, Distributing, and Resizing Objects • After selecting two or more objects, use buttons on the toolbar to align them with each other, space them evenly apart, or make them all the same size. (Bishop, p. 128) Align Distribute Resize

  15. Coloring Objects • Use the coloring tool on the tools palette to change colors of objects. • For many front-panel objects, you can also change the color by choosing Properties on the object’s shortcut menu. (Bishop, p. 130)

  16. Cleaning Up the Block Diagram • This feature will automatically rearrange your block diagram and reroute the wires to make everything look clean and well-ordered. • On the block diagram pull-down menu, click Edit > Clean Up Diagram; or you can just press CTRL+U; or you can just click the Clean Up button: (Bishop, p. 137)

  17. Debugging Techniques • Debugging techniques include • Using Broken Run button to find errors • Execution highlighting • Single-stepping • Breakpoints • Probes (Bishop, pp. 141-152)

  18. Broken Run Button • When the block diagram contains an error that prevents the VI from running, the Broken Run button appears in place of the normal Run button. (Bishop, p. 142) Click on Broken Run button to open window listing errors.

  19. Execution Highlighting • To monitor the execution of the block diagram, click Highlight Execution button on block diagram’s toolbar and then run the VI. (Bishop, p. 144) Click on Highlight Executionbutton; data flow is animated using bubbles. Values are displayed on wires.

  20. Single-Stepping • To execute block diagram one node at a time, use one of the single-stepping buttons on block diagram’s toolbar. (Bishop, p. 146) Step Into button executes current node. If current node is a subVI, its first step is executed. Step Over button executes current node. If current node is a subVI, entire subVI is executed. Step Out button executes until current subVI (or entire program) finishes.

  21. Execution Highlighting and Single-Stepping • Usually when you single-step, you’ll also want to have execution highlighting turned on so that you can see the effect of each step. (Bishop, p. 146)

  22. Breakpoints • Set a breakpoint in block diagram by using Breakpoint tool on tools palette or by right-clicking on an object. • When you run VI, execution will stop when it reaches the breakpoint. (Bishop, p. 147)

  23. Probes • Place a probe in block diagram by using Probe tool on tools palette or by right-clicking on wire. • When you run VI, window displays value at the point where the probe is placed. (Bishop, p. 148)

  24. Property Nodes • Property nodes are block-diagram objects that let you read or set the properties of front-panel objects. • To create a property node, right-click a front-panel objects and then select Create > Property Node. (Bishop, p. 153) • Property nodes are powerful, advanced features that will become more valuable to you as you gain more LabVIEW experience.

  25. Some Shortcut Keys • Ctrl+B removes broken wires. • Ctrl+E switches between front panel & block diagram. • Ctrl+T tiles front panel & block diagram side by side. • Ctrl+H turns help window on or off. • Ctrl+U cleans up the block diagram. • Plus standard Windows shortcuts: • Ctrl+O to open file. • Ctrl+S to save file. • Ctrl+C to copy. • Ctrl+V to paste. • Ctrl+Z to undo. (Bishop, p. 155)

More Related