The temperature regulation section serves to keep the box at a prescribed temperature. Here the code is centered around a user defined VI named GoUnlessTooHot2, which reads the user indicated target temperature and turns the hotplate on if the highest measured temperature is more than one degree fahrenheit below that value and turns it off if the highest measured temperature is more than one degree higher than that value. GoUnlessTooHot2 also checks if the amount of consecutive zero and NaN values reported from the variable Highest temperature is too high and if the box temperature exceeds 190 degrees Fahrenheit. If either of these conditions are met the VI will shut the box off for the remainder of the run with the use of the VI HP 1 Outlet 1 OFF. GoUnlessTooHot2 is contained in the true state of a case structure that is in a false state until a connected timer indicates that ten seconds have passed. The timer value resets after every ten second cycle; the result is that GoUnlessTooHot2 only reads values from the variable Highest Temperature every ten seconds. Therefore, the hotplate state can only change at a maximum frequency of once every ten seconds. Having both a time constraint and a temperature range is redundant so the time dependence of the case structure should be removed, but the case structure itself should be left in tact as it has another function as explained in the stop conditions section.<br/><br/> | The temperature regulation section serves to keep the box at a prescribed temperature. Here the code is centered around a user defined VI named GoUnlessTooHot2, which reads the user indicated target temperature and turns the hotplate on if the highest measured temperature is more than one degree fahrenheit below that value and turns it off if the highest measured temperature is more than one degree higher than that value. GoUnlessTooHot2 also checks if the amount of consecutive zero and NaN values reported from the variable Highest temperature is too high and if the box temperature exceeds 190 degrees Fahrenheit. If either of these conditions are met the VI will shut the box off for the remainder of the run with the use of the VI HP 1 Outlet 1 OFF. GoUnlessTooHot2 is contained in the true state of a case structure that is in a false state until a connected timer indicates that ten seconds have passed. The timer value resets after every ten second cycle; the result is that GoUnlessTooHot2 only reads values from the variable Highest Temperature every ten seconds. Therefore, the hotplate state can only change at a maximum frequency of once every ten seconds. Having both a time constraint and a temperature range is redundant so the time dependence of the case structure should be removed, but the case structure itself should be left in tact as it has another function as explained in the stop conditions section.<br/><br/> |