You are on page 1of 4

//Blind Automation Algorithm Program //Turn off HVAC for Experiment by Turning OFF BO2 //Begin Experiment by ommanding

either BO! or BO"# to On

//Cal ulate $olar %rradian e ba&ed on 'ux reading Variable ()&ol //*+, Variable E)ill

E)ill - *C.)/012#2)'34$" 5 C.)/012#2)'34$2, / 2 ()&ol - "2 6 E)ill //Find &olar irradian e from orrelation oeffi ient *+,

//Cal ulate the heat balan e for the 7indo7 e8ery minute 9oE8ery "0

//.e&ted heat balan e 8aliable& Variable d)3 // +

Con&tant &etpoint - 2# // degree C Con&tant / - #:#; // </+ Con&tant C - 2"2#### // =/< Con&tant Tau - "#>### // $ Con&tant d)T - 2## // $e ond&

//.eed to ad?u&t d)T

Con&tant A" - #:;@12 Con&tant A2 - #:"A@; Con&tant A@ - #:#@>@ Con&tant AA - #:#"#2 Con&tant A; - #:##21 Con&tant A2 - #:##1

Variable T)" Variable T)2 Variable T)@ Variable T)A Variable T); Variable T)2

Variable T)out Variable T)in

T)out - C.)/012#2)OAT T)in - BA%"#" TE0PB

//Find Temp& for Predi ti8e Algorithm T)" - T)in 5 ****T)out C T)in, / /, 5 ()&ol, 6 *d)T / C,, T)2 - T)" 5 ****T)out C T)", / /, 5 ()&ol, 6 *d)T / C,, T)@ - T)2 5 ****T)out C T)2, / /, 5 ()&ol, 6 *d)T / C,, T)A - T)@ 5 ****T)out C T)@, / /, 5 ()&ol, 6 *d)T / C,,

T); - T)A 5 ****T)out C T)A, / /, 5 ()&ol, 6 *d)T / C,, T)2 - T); 5 ****T)out C T);, / /, 5 ()&ol, 6 *d)T / C,,

//$ol8e heat balan e u&ing predi ti8e method d)3 - *A" 6 *T)" C &etpoint,, 5 *A2 6 *T)2 C &etpoint,, 5 *A@ 6 *T)@ C &etpoint,, 5 *AA 6 *T)A C &etpoint,, 5 *A; 6 *T); C &etpoint,, 5 *A2 6 *T)2 C &etpoint,,

End 9o

9oE8ery ;0

%f d)3 D # And BBlind ControlB - 9o7n Then BBlind ControlB - 3p El&e %f d)3 D # And BBlind ControlB - 3p Then A2">AA:C$)#@VV//P12#2 - "## El&e %f d)3 E # And A2">AA:C$)#@VV//P12#2 DE # Then A2">AA:C$)#@VV//P12#2 - # El&e %f d)3 E # And BBlind ControlB - 3p Then BBlind ControlB - 9o7n

End %f End %f End %f End %f

End 9o

BHeat Balan e VariableB - d)3