Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 6 Arrays & Clusters. LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions.

Similar presentations


Presentation on theme: "Chapter 6 Arrays & Clusters. LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions."— Presentation transcript:

1 Chapter 6 Arrays & Clusters

2 LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions

3 Creating Arrays 1. Place Array Shell on FP 2. Place Data Object Inside Shell

4 Adding an Array to the Front Panel From the Controls >> All Controls >> Array and Cluster subpalette, select the Array Shell Drop it on the screen.

5

6 Adding an Array (cont.) Place data object into shell (i.e. Numeric Control)

7

8

9

10 Create Arrays with For Loops > Auto-indexing

11

12

13

14

15 Array Functions > Array Size > Initialize Array > Build Array > Array Subset > Index Array > Replace Array Subset

16 Array Size Function Returns the number of elements in the input array. Each output element describing a dimension size.

17

18

19 Initialize Array Creates an n-dimensional array with elements containing a specified value. All elements are the same value.

20

21

22

23

24 Build Array Assembles multiple arrays or adds scalar elements to an array.

25 Array Functions – Build Array

26

27

28

29

30

31

32

33

34 Array Subset > Returns a portion of an array > Starts at Index > Contains “length” elements.

35

36

37

38

39

40

41

42 Index Array Gives access to an element or sub-array in an array.

43

44

45

46

47 Replace Array Subset Replaces an element or subarray in an array at the point you specify in the index.

48

49

50

51 Polymorphism > Arithmetic functions accept inputs of different dimensions > Outputs will be size of smaller array

52 LabVIEW Clusters > Collection Elements > Different Data Types > Fixed Size > All Controls or all Indicators

53 Creating Clusters 1. Place Cluster Shell on FP 2. Place Mixed-Type Data Objects Inside Shell

54 Creating a Cluster Select a Cluster shell Controls >> All Controls >> Array & Cluster Place objects inside the shell

55

56

57

58 Cluster Functions > Bundle Function > Unbundle Function

59 Bundle Function (Terminal labels reflect data type)

60

61

62

63

64

65 Unbundle Function

66

67

68

69

70


Download ppt "Chapter 6 Arrays & Clusters. LabVIEW Arrays > Collection of Elements > Same Data Type > Variable-Sized > One or More Dimensions."

Similar presentations


Ads by Google