Workshop 04 Review
-
Upload
migiwara -
Category
Technology
-
view
472 -
download
2
description
Transcript of Workshop 04 Review
Workshop 04 Review
Today's Topics
Review of Workshop 04 Arrays Clusters Error Cluster
Enumerations
Graphs and Charts
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.
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
Review Question 2
The Error Cluster contains which of the following?
a) Boolean
b) Array
c) String
d) Numeric
e) Cluster
Review Question 2
The Error Cluster contains which of the following?
a) Boolean - status
b) Array
c) String - source
d) Numeric - code
e) Cluster
• 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
• 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
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
Enumeration: Configuring1. Right-click on the enum
2. Select Edit Items…
Demonstration 1: Configuring an Enum
• 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
• 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
Demonstration 2: Plotting Charts and Graphs
THANK YOU !!!