Professional Documents
Culture Documents
Data Flow Diagram For ALCS: Data Flows Specifications (Preferable With Data Types)
Data Flow Diagram For ALCS: Data Flows Specifications (Preferable With Data Types)
Sensor(HW)
D1
D5 D7
D3 Transistor
Read (P1) Compare (P2) Control (P3)
(HW)
D6
D14
D2 D4 D8
D12
D9
Storage
D13 Input (P5) Output (P4)
(SW)
D11 D10
Types of data:
D1 – Input signal from sensor S (in a range between 0 and ADCmax) – integer (3.1)
D7 – Control signal that is on or off Ctrl – Boolean (not defined in specification, should be added 1):
1
5.8 Control signal is calculated by the specific library function convert from pulse width value
D10 – D10.1 Message about current relative power Msg1 – text (6.1)
Process specifications
Process P1
Name: Read
Process P2
Name: Compare
1. dif = C – P (4.1)
Process P3 (incorrect)
Name: Control
Input: D5: result of comparison dif ; D6: increment Inc, decrement Dec, precision Prec
1. if dif < 0 then PW = ___ + Inc (can not calculate because I don’t have input)
2.
Solution:
5.6. Current pulse width value is read from storage in the beginning of the function
5.7. After control pulse width calculation, the value is saved in the storage
2.10. Current value of pulse width is stored as real number, initial value is zero
New specifications will cause new data flows D6.4 and D14 appear in the system
Process P3
Name: Control
D6: increment Inc, decrement Dec, precision Prec, pulse width PW1
Output: D7: Control signal Ctrl; D8: pulse width PW2; D14: pulse width PW3
Process P4
Name: Output
Output: D10: message about power Msg1, message about setting Msg2
Process P5
Name: Input
Input: D11: buttons up, dn, ent; D12: previous value of light intensity P1, limits max, min
Output: D9: light intensity setting Set, D13: preset light intensity P2