Download presentation
Presentation is loading. Please wait.
Published bySheena Armstrong Modified over 9 years ago
1
Creating, Editing, & Debugging a VI A.How to Create VIs B.How to Edit VIs C.How to Debug VIs You Will Learn:
2
Numeric controls and indicators Boolean controls and indicators Configuring controls and indicators –Use shortcut menus –Parts have different menus Digital Control Digital Indicator Labels Increment Buttons Boolean Control Boolean Indicator Creating a VI Front Panel
3
Accessing Shortcut Menus Right-click on the label for its shortcut menu Right-click on the digital display for its shortcut menu
4
Terminal pattern for the Add Function and the Subtract function (three node terminals). Nodes Wires Control Terminals Diagram Window Panel Window Indicator Terminals Creating a VI Block Diagram
5
Wiring a VI Block Diagram Hot Spot Tools to Help Wiring - Automatic Wiring Scalar 1D Array Numeric Boolean String Orange (floating point) Blue ( integer) Green Purple 2D Array
6
Block diagram does NOT execute left to right Node executes when data is available to ALL input terminals Nodes supply data to all output terminals when done Dataflow Programming
7
Searching for Controls, VIs, and Functions Use the buttons on top of the Controls and Functions palettes to navigate and search for specific controls, VIs, and functions. Press the search button to perform text searches of the palettes.
8
Debugging Techniques Finding Errors Execution Highlighting Probe Click on broken Run button Window showing error appears Click on Execution Highlighting button; data flow is animated using bubbles. Values are displayed on wires. Right-click on wire to display probe and it shows data as it flows through wire segment You can also select Probe tool from Tools palette and click on wire
9
Debugging Techniques Breakpoints Step Into, Over, and Out buttons for Single Stepping Click on Step Into button to enable single stepping Once Single Stepping has begun, the button steps into nodes Click on Step Over button to enable single stepping or to step over nodes Click on Step Out button to step out of nodes Select Breakpoint tool from Tools palette and click on wire or node where you want execution to pause
10
Summary You place controls (inputs) and indicators (outputs) in the panel window Use the Operating tool to manipulate panel objects. Use the Positioning tool to select, move, and resize panel objects. Use the Wiring tool to connect diagram objects Control terminals have thicker borders than indicator terminals All LabVIEW objects have shortcut menus Wiring is the mechanism to control dataflow and produce LabVIEW programs Broken Run arrow = nonexecutable VI Various debugging tools and options available such as setting probes and breakpoints, execution highlighting, and single stepping
11
Tips Tip 1 – Command key shortcuts Tip 2 – Accessing Tools Palette with -right-click Tip 3 – Tools»Options selection - set preferences in LabVIEW Run a VI Find object Activate Context Help window Remove all broken wires Close the active window Toggle between Diagram/Panel Window
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.