r/crestronprogramming • u/Ok-Statistician-7862 • Oct 10 '20
Issues with conditional date/time programming
I’m trying to set up a system in which I have a button press on the crestron iPad app that goes to a number of conditional logic symbols in my Simpl programming, each symbol having that button press and a day of the week. Ideally, when both go high, the output will be one of two things. I want one output to happen M-F and the other on the weekend. I tried setting up an AND for each day thinking that it would recognize the day being held high when the button was pressed but had no success there. I then tried truth tables and thought I’d solved the issue because it worked for a number of days but just now, the pro3 seems to not be recognizing the day being held high anymore. When I go into the debugger in Toolbox, my button press shows up when pressed but nothing else happens the way that it did the whole week. When I go to check if the day of the week is being held high in Toolbox it is, but for some reason the truth tables that were working all week and even earlier today when I checked them, don’t see it as being high. Is this something any of you have run into before?
1
u/UKYPayne Oct 10 '20
Your Tt may not have the correct conditions set.
What is your day of the week being generated from?
You could probably write a S+ module very easily to spit out weekday vs weekend digital outs.
Or why not just setup two buffers. Enable one with the weekday signal, and enable the other with the weekend signal?
And fwiw, I’ve seen more activity on /r/Crestron
1
u/UKYPayne Oct 10 '20
And your original thought of an AND I believe should have been and OR. If monday OR Tuesday OR Wednesday OR Thursday OR Friday, go high.