James517 Posted December 13, 2016 Posted December 13, 2016 I want to use the ISY to control 5 landscape pumps. So, for the Spring & Fall, I wrote a set of programs that will exercise the pumps periodically each day. However, for the hottest of summer or to prevent freezing, I need a completely different set of programs. The only way I can figure out so far is to create a set of programs for a time of year, then back them up to a file. Clear the programs out, then start over with a new set for different conditions, then backing them up to a new name. By restoring the correct backup, I get the set of programs that are right for those conditions. 1. Is there a more elegant way to do this? 2. I assume that all I need to do is do an "all stop" to all the pumps before I restore from the backup and everything will start over fresh with the new programs. Correct? Thanks.
G W Posted December 13, 2016 Posted December 13, 2016 Have you considered putting each set of programs in its own folder and then disabling the folders you don't want to run? Also, could you base each folder on outside temperature? Gary Funk Merry Christmas
stusviews Posted December 13, 2016 Posted December 13, 2016 Placing the seasonal programs in folder is a good idea. It's not possible to disable a program folder, but it's easy to created a condition that's true or false: Folder Conditions for 'Spring'If $iRun_Spring is 1 Then Allow the programs in this folder to run.
G W Posted December 13, 2016 Posted December 13, 2016 Thank you, Stu. I've never used folder programming. Gary Funk Merry Christmas
stusviews Posted December 13, 2016 Posted December 13, 2016 Even easier is to create one state variable for all seasons, then change only the variable: Folder Conditions for 'Spring'If $sRun_Season is 1 Then Allow the programs in this folder to run. Folder Conditions for 'Fall'If $sRun_Season is 2 Then Allow the programs in this folder to run. etc. then add a program to change the variable: SpringIf From Sunrise on date_to_start To Sunrise on date_to_end Then $sRun_Season = 1 Else - No Actions - (To add one, press 'Action') FallIf From Sunrise on date_to_start To Sunrise on date_to_end Then $sRun_Season = 2 Else - No Actions - (To add one, press 'Action') etc.
larryllix Posted December 16, 2016 Posted December 16, 2016 Folder conditions, like program conditions, will not trigger on an Integer variable. The variables must be state type variables or nothing will happen. I just tested this to be true again.
stusviews Posted December 16, 2016 Posted December 16, 2016 Folder conditions, like program conditions, will not trigger on an Integer variable. The variables must be state type variables or nothing will happen. I just tested this to be true again. Thanks for the reminder. I corrected my post to reflect the correction.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.