Presentation is loading. Please wait.

Presentation is loading. Please wait.

Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select.

Similar presentations


Presentation on theme: "Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select."— Presentation transcript:

1 Week 3 Data Structures and Common Tools

2 Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select an Object

3 Common Tools in Labview Using the Positioning Tool to Resize an Object Using the Labeling Tool

4 Common Tools in Labview Using the Wiring Tool

5 Other Tools Accessed from the Palette Shortcut Menu for a Meter

6 Property Dialog Boxes

7 Front Panel Window Toolbar & Block Diagram Window Toolbar

8 Debugging Tools in LabVIEW Two general types of software bugs: –Prevent the program from running –Generate bad results or incorrect behavior Fixing and finding causes for Broken VIs

9 Common Causes of Broken VIs The block diagram contains a broken wire because of a mismatch of data types or a loose, unconnected end. Refer to the Correcting Broken Wires topic of the LabVIEW Help for information about correcting broken wires. A required block diagram terminal is unwired. Refer to the Using Wires to Link Block Diagram Objects topic of the LabVIEW Help for information about setting required inputs and outputs. A subVI is broken or you edited its connector pane after you placed its icon on the block diagram of the VI.

10 Fixing Incorrect Behavior

11 Handling Errors in LabVIEW Automatic Error Handling Manual Error Handling Error Clusters Explain Error Using While Loops for Error Handling

12 Data Structures in LabVIEW String Data Type Numeric Data type Boolean Data Type Dynamic Data Type Arrays Clusters Enums

13 Data Type Using the Convert to Dynamic Data and Convert from Dynamic Data VIs, you can convert floating-point numeric or Boolean data of the following data types: 1D array of waveforms 1D array of scalars 1D array of scalars—most recent value 1D array of scalars—single channel 2D array of scalars—columns are channels 2D array of scalars—rows are channels Single scalar Single waveform

14 Arrays

15 2D Uninitialized Array An Initialized 2D Array With Nine Elements

16 Clusters Clusters group data elements of mixed types. An example of a cluster is the LabVIEW error cluster, which combines a Boolean value, a numeric value, and a string. A cluster is similar to a record or a struct in text-based programming languages.

17 Enums An enum (enumerated control, constant or indicator) is a combination of data types. An enum represents a pair of values, a string and a numeric, where the enum can be one of a list of values.


Download ppt "Week 3 Data Structures and Common Tools. Common Tools in Labview Automatic Tool Selector Using the Operating Tool Using the Positioning Tool to Select."

Similar presentations


Ads by Google