ddeanwms Posted Sunday at 06:44 PM Posted Sunday at 06:44 PM I am used to writing SQL queries....this UD program is stumping me. I have an if then else program that I want to run every 30 minutes. How is that done in UD Programs? Quote
paulbates Posted Sunday at 07:30 PM Posted Sunday at 07:30 PM (edited) Add a Repeat statement as the first statement under then. One of the options is "Repeat Every" set that to 30 minutes. The statements under Repeat will indent Note that when the conditions of the If are no longer true, it will stop. In this program, it should bounce back and forth between then and else... which I think is your intent Edited Sunday at 07:33 PM by paulbates 1 Quote
ddeanwms Posted Sunday at 07:53 PM Author Posted Sunday at 07:53 PM 19 minutes ago, paulbates said: Add a Repeat statement as the first statement under then. One of the options is "Repeat Every" set that to 30 minutes. The statements under Repeat will indent Note that when the conditions of the If are no longer true, it will stop. In this program, it should bounce back and forth between then and else... which I think is your intent I did this before (every 10 minutes as a test) by adding to the THEN and ELSE statements....but when I looked in the SUMMARY TAB of the PROGRAMS TAB, and hit "refresh" I did not see the "Last finish time" or the "next Scheduled Run" had updated at all. Is this normal? Or should it have updated? Quote
ddeanwms Posted Sunday at 08:02 PM Author Posted Sunday at 08:02 PM What I really want is for the entire program to run once an hour. Quote
larryllix Posted Sunday at 09:57 PM Posted Sunday at 09:57 PM Also to be noted in ISY programming...Looping, of any kind, cannot be nested. Multiple programs must be used for nested looping.Sent from my SM-S711W using Tapatalk Quote
Solution paulbates Posted Sunday at 10:38 PM Solution Posted Sunday at 10:38 PM (edited) 2 hours ago, ddeanwms said: What I really want is for the entire program to run once an hour. Ok, you'll need 2 programs <Program 1> Computer Cabinet once an hour If <no statement> Then Repeat every 1 hour Run If Program Computer cabinet <Program 2> Computer Cabinet <your current program> Notes: Set the first program to run on start up Disable program 2 so it does not run automatically What this will do is the the ISY will run program 1 when its started Program 1 will run once an hour Program one will call program 2 Program 2 is disabled so it will only run when program 1 calls it Edited Sunday at 11:02 PM by paulbates 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.