650 likes | 756 Views
Control and Data Agenda. 1. Definitions 2. Decision tables 3. Data flow 4. Instrumentation 5. Homework. 1. Definitions. Open-loop Vs closed-loop control Discrete Vs continuous control Logical Vs state-variable control States and status Mode Reconfiguration.
E N D
Control and Data Agenda 1. Definitions 2. Decision tables 3. Data flow 4. Instrumentation 5. Homework
1. Definitions • Open-loop Vs closed-loop control • Discrete Vs continuous control • Logical Vs state-variable control • States and status • Mode • Reconfiguration There are several types of control. 1. Definitions
2. Decision Tables • Two goals in logical control • Examples 1-4 2. Decision tables
Two Goals in Logical Control • Enumerating all control options • Determining when the control applies 2. Decision tables
Example 1 -- Control of Remote Terminal Remote terminal (RT) 1 Master bus communications self test loading operation RT 1 power switch closed open power • Goal -- turn on power, establish communications, load, and operate. 2. Decision tables
Logical Control Requirements in Words • Two power control states • 1. Off • 2. On • Off when power switch is open. • On when power switch is closed 2. Decision tables
Complete State Diagram Power-state state diagram RT 1 power switch open 1 off transition paths RT 1 power switch closed RT 1 power switch open same- state transition paths RT 1 power switch closed 2 on Power-state state diagram showing state transition paths and same-state transition paths 2. Decision tables
Simplified State Diagram Power-state state diagram 1 off Power switch closed Power switch open 2 on Power-state state diagram showing only state transition paths and not showing the same-state transition paths. This form is used often. 2. Decision tables
Number of Paths in a State Diagram • Maximum number of state transition paths is n2 • Maximum number of same-state transition paths is n • Maximum number of state transition paths excluding the same-state transition paths is n2 - n. • Maximum number doesn’t need to be present 2. Decision tables
Truth Table criterion RT 1 power switch RT 1 power state open off closed on decisions A truth table the same information as state diagram, but it is less graphic 2. Decision tables
Decision Table RT 1 power-state decision table A decision table is a truth table with the information rearranged to be more compact when typed 2. Decision tables
Value of Decision Tables • Identifies all possibilities • Uncovers hidden paths • Promotes consistency • Provides concise documentation • Allows numerical checks for quality 2. Decision tables
Limits of Decision Tables • Decision tables don’t guarantee that the decisions are right 2. Decision tables
Number of Decisions • Number of decisions equals the product of the number of choices for each criterion. • Must account for all the decisions • A “-” in a decision table means that the decision table doesn’t care what the value of a criterion is. 2. Decision tables
Showing the Number of Decisions RT 1 power-state Number of decisions per criterion Number of decisions It’s not necessary to show the number of decisions, but showing the number of decisions helps check the quality of the table 2. Decision tables
Showing the Number of Paths RT 1 power-state Add current state even though not needed in example Show the matrix of paths It’s not necessary to show the number of paths, but showing the number of paths helps check the quality of the state diagram. 2. Decision tables
Matrix of Paths • Show the number of paths between each state 16 1 2 14 14 2 3 3 2 2 1 2. Decision tables
Example 2 (1 of 3) • Two communications states • 1. Not established (not est) • 2. Established (est) • Not established if power state is off or ability to communicate is false • Established if power state is on and ability to communicate is true 2. Decision tables
Example 2 (2 of 3) communications not established power state = on and ability to communicate = true power state = off or ability to communicate = false communications established
Example 2 (3 of 3) Communications state 2. Decision tables
Guidelines for Control • Use one state diagram for each decision or concept • Use one decision table for each diagram • Use adjectives to avoid ambiguity • Confirm quality of decisions 2. Decision tables
Canonical Format Example canonical format 2. Decision tables
Rules for Ordering Criteria • Listed vertically • Based on the author’s guess at the impact of each criterion on state • Strongest criterion at the top • Weakest at the bottom 2. Decision tables
Rules for Ordering Decisions • 1. Listed from left to right • 2. Weakest criterion change fastest • 3. Strongest change slowest 2. Decision tables
Simplifying the Canonical Format Example canonical format 2. Decision tables
Rules for Simplifying • 1. Find columns in which criteria have no effect • 2. Merge such columns into a single column • 3. Replace the values of the criteria that have no effect with a “-”. 2. Decision tables
Guidelines for Creating a DT (1 of 2) • 1. Identify all states • 2. Identify all criteria • 3. Identify all values of each criterion • 4. Enter the criteria values into the table in canonical format 2. Decision tables
Guidelines for Creating a DT (2 of 2) • 5. Determine state corresponding to each column • 6. Simplify the decision table • 7. Confirm the number of decisions 2. Decision tables
Order of the Criteria Rows • Order of the rows can be changed • Number of columns may change 2. Decision tables
Simplifying • Not necessary to simplify • Minimizing makes printing the decision table easier and helps definition and implementation 2. Decision tables
Optimization • Row order resulting in fewest number columns is not always obvious • Obtained by trial and error 2. Decision tables
Invariance • Number of decisions and the path matrix remain the same • Confirms accuracy of rearranging rows 2. Decision tables
Changing Rows • Changing rows doesn’t leave table in canonical format 2. Decision tables
Making Columns Mutually Exclusive • The columns must be mutually exclusive 2. Decision tables
Violation of Mutual Exclusive Left hand Right hand Columns 1 and 2 in the left hand table are not mutually exclusive. Columns 1 and 3 in right hand table are not mutually exclusive. Results are conflicting. 2. Decision tables
Additional Results Information Results in addition to state can be shown. However additional information may prevent merging some columns. 2. Decision tables
Mechanical Guidelines for DTs • 1. Use Excel • 2. Use ‘- to enter a minus into a cell • 3. Use calculating capabilities to check numbers • 4. Use non-proportional fonts • 5. Use single character criteria 2. Decision tables
Example 3 (1 of 5) • Three load states • 1. Not loaded or loading • 2. Loading • 3. Loaded • Determined by • Communications state (not est, est -- [F,T]) • Load state (1, 2, 3 -- [1, 2,3]) • Load command (none, stop, load -- [N, S, L]) • Load status (none, failure, complete -- [N, F, C]) 2. Decision tables
Example 3 (2 of 5) • If (1) the comm state is not established or (2) the load status is failure, then the load state is not-loaded-or-loading • If (1) the comm state is established and (2) the load status is not failure and (3) the load command is stop, then the load state is loading • If (1) the comm state is established and (2) the load status is complete and (3) the load command is none and (4) the current load state is loading, then the load state is loaded 2. Decision tables
Example 3 (3 of 5) not loaded or loading (1) comm state = not est or load status = failure comm state = not est or load status = failure comm state = est & load cmnd= load & load status = not failure comm state = est & load status =complete loading (2) loaded (3) comm state = est & load cmnd= load & load status = not failure 2. Decision tables
Example 3 (4 of 5) 2. Decision tables
Example 3 (5 of 5) Problems with developing decision table ad hoc 67>54 2. Decision tables
Example 4 (1 of 3) • Two operate states • 1. Not operating • 2. Operating • Determined by • Operate command (stop, operate -- [S,O]) • Operate state (1, 2-- [1,2]) • Load state (not loaded, loading, loaded [1,2,3] • If (a) the operate command is stop, or (b) the operate command is operate and the loading state is 1 or 2, then the operate state is not operating • If the operate command is operate, then the operate state is operating 2. Decision tables
Example 4 (2 of 3) not operating (1) operate command = operate operate command = stop operating (2)
Example 4 (3 of 3) 2. Decision tables
3. Data flow • Flow diagrams • Automated techniques • Terminology • Tracing data flow 3. Data flow
Flow Diagrams (1 of 2) • Flow diagrams show the flow of physical quantities, data, and control into, out of, and through a product. Examples are • Power • Cooling air • Signals • Control 3. Data flow
Flow Diagrams (1 of 2) • Diagrams can be functional or physical • Controlling the flow is one of the strongest influences a product engineer has on the development of a product 3. Data flow
Automated Techniques • Excel spreadsheet • Data bases; e.g. TeamWork 3. Data flow
Flowing Down Interfaces Product requirements concept; e.g.,power control Product design requirements requirements requirements Lower product A requirements Lower product B requirements Interface requirements requirements Product requirements suggest a concept; e.g., power control. Design develops this concept and creates requirements for lower products and interfaces. The interface requirements also become requirements for the lower products 3. Data flow