Workshop 04 Review

15
Workshop 04 Review

description

 

Transcript of Workshop 04 Review

Page 1: Workshop 04 Review

Workshop 04 Review

Page 2: Workshop 04 Review

Today's Topics

Review of Workshop 04 Arrays Clusters Error Cluster

Enumerations

Graphs and Charts

Page 3: Workshop 04 Review

Review Question 1

True or False?

1. Arrays can contain only one data type.

2. An array must contain at least one element.

3. The Bundle function can be used to add elements to a cluster.

4. Clusters can contain both controls and indicators within the same shell; however, arrays cannot.

5. It is possible to have clusters containing arrays as well as arrays containing clusters.

Page 4: Workshop 04 Review

Review Question 1

True or False?

1. Arrays can contain only one data type. TRUE

2. An array must contain at least one element. FALSE

3. The Bundle function can be used to add elements to a cluster. FALSE

4. Clusters can contain both controls and indicators within the same shell; however, arrays cannot. FALSE

5. It is possible to have clusters containing arrays as well as arrays containing clusters. TRUE

Page 5: Workshop 04 Review

Review Question 2

The Error Cluster contains which of the following?

a) Boolean

b) Array

c) String

d) Numeric

e) Cluster

Page 6: Workshop 04 Review

Review Question 2

The Error Cluster contains which of the following?

a) Boolean - status

b) Array

c) String - source

d) Numeric - code

e) Cluster

Page 7: Workshop 04 Review

• Cluster elements have a logical order unrelated to their position in the shell

• You can view and modify the cluster order by right-clicking the cluster border and selecting Reorder Controls In Cluster from the shortcut menu

• Order determines how cluster is unbundled

Clusters: Order

Page 8: Workshop 04 Review

• Clusters differ from arrays in that they are a fixed size

• Clusters can contain mixed data types; arrays contain only one data type

• Like an array, a cluster is either a control or an indicator and cannot contain a mixture of controls and indicators

• You can create a cluster of clusters, cluster of arrays, array of clusters, but NOT an array of arrays

Clusters vs. Arrays

Page 9: Workshop 04 Review

Enumeration

• An enum represents a pair of values, a string and a numeric, where the enum’s value is one of a defined list of value pairs

• Appears as a string to you, and a number to computer

Page 10: Workshop 04 Review

Enumeration: Configuring1. Right-click on the enum

2. Select Edit Items…

Page 11: Workshop 04 Review

Demonstration 1: Configuring an Enum

Page 12: Workshop 04 Review

• Chart:• Remembers history – new point added to end of plot

• Good for inside a loop

Graphs vs. Charts

• Graph:• New plot of all new data

• Good for outside the loop

• Use the Context Help window to determine how to wire multi-plot data to Waveform Graphs and XY Graphs

Page 13: Workshop 04 Review

• Right-click the chart and select Advanced»Update Mode from the shortcut menu

• Strip chart is the default update mode

• Scope chart and Sweep chart modes display plots significantly faster than the strip chart mode

Chart Update Modes

Page 14: Workshop 04 Review

Demonstration 2: Plotting Charts and Graphs

Page 15: Workshop 04 Review

THANK YOU !!!