Help with timer app development


(Josh Beauvais) #1

I’m a bit out of my depth here and I was hoping someone more knowledgable could help. The goal is a simple timer app that will run once and clear it self out until set again. I’m trying to allow for input of two out of 3 parameters on time, off time, and run time. What I’m having the most trouble with is the behavior of the simulator in the IDE. The simulator seems to run throught the program multiple times and clear out the input data and I can’t tell why. It does this even when I have the “interesting” bits of the code commented out and I’m just trying to monitor the state of the outlet.

Thanks in advance for your assistance.

Here is a link to the code that I have put together.


(Josh Beauvais) #2

Here is what I’m getting from the simulator that I don’t understand:

6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug Updated: on time is 2017-08-11T13:35:00.000-0400, off time is 2017-08-11T13:36:00.000-0400, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug preferences: ontime is 2017-08-11T13:35:00.000-0400, offtime is 2017-08-11T13:36:00.000-0400, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug outlet is outlet
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:49 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:42 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:42 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:42 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:42 PM: debug outlet is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:42 PM: debug preferences: ontime is null, offtime is null, runtime is null
6f79e9a9-4d62-43b4-94b3-701fd6e0cf6a 4:22:42 PM: debug outlet is null