turls Posted August 15, 2013 Share Posted August 15, 2013 I'm having issues with 2-3 hour sprinkler macros that seem to be failing on variable checks, but I haven't been able to figure out the pattern yet.It would make it much easier if I could see if a macro is still in progress or not, or even better interrupt a running macro.Is there any way to do this, or are you stuck with a macro until it finishes unless you reboot the system? Link to comment Share on other sites More sharing options...
turls Posted August 15, 2013 Author Share Posted August 15, 2013 I see the stop command but I want to just stop one specific macro, not whatever other programming is running that could cause unintended consequences. Link to comment Share on other sites More sharing options...
RyanE Posted August 15, 2013 Share Posted August 15, 2013 There's no way to 'externally' stop a macro once in progress.There's also no way to know if it's still running.A workaround is that you *could* create a variable that gets set to 'start' at the start of the macro, and before executing any line, check the variable, and if it's changed to 'stop', stop execution.You could also set it to 'stop' at the end of the macro, and can use it to tell if the macro is still executing.Pretty hacky, but it'd do what you're asking about, although with a *lot* of work (i.e. one check per line).RyanE Link to comment Share on other sites More sharing options...
RyanE Posted August 15, 2013 Share Posted August 15, 2013 BTW, the *stop* command does only stop the current script where the stop command is found.RyanE Link to comment Share on other sites More sharing options...
turls Posted August 15, 2013 Author Share Posted August 15, 2013 Ok, good to know what STOP actually does. I think I figured out my issue with the macro so hopefully I don't have to go to this length of troubleshooting after all. Thanks Ryan! Link to comment Share on other sites More sharing options...
CFUG Posted August 15, 2013 Share Posted August 15, 2013 Not to hard to figure-out what STOP does. And, I do not think it is a "hack" to set a VAR to indicate which part of the script is active. This is what I'd do short of interrogating any timers used in the script/ Link to comment Share on other sites More sharing options...
turls Posted August 15, 2013 Author Share Posted August 15, 2013 The documentation is not clear about STOP, it made it sound like it would stop any active programming the way I read it. I've never used it before but it makes sense the way Ryan describes it. Link to comment Share on other sites More sharing options...
RyanE Posted August 15, 2013 Share Posted August 15, 2013 It's a hack in the sense that it's doing something the system had not been designed to do (i.e. stopping a macro part-way through). I've never needed to do it, myself.I don't say hack in a derogative sense. I like hacks.After all, the site I post my own Control4 stuff to is http://untestedhacks.com.RyanE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.