Home AMX User Forum NetLinx Studio

Problem using i!-Schedule

Hello everybody,

I have the following problem using the Scheduler:

If I configure an event to be executed with a start time and an end time, when we reach at the start time the PUSH event occurs, and when we get to the end time the RELEASE event occurs. Everything is correct here.

The problem is when I configure an event with the ?No End Time? option marked. If I have an event scheduled in this way, when we reach the start time the PUSH event occurs but the RELEASE is executed too (with no time between both).

For example: If I want to open a curtain at 7AM and close it at 8AM, I can do it, because I have the code to open it in the PUSH section and the code for close it in the RELEASE section.

But I want just open the curtain at 7AM an keep it open, I can?t, because it enters in the release always and the code to close the curtain is executed.

Any idea about this?

Thanks in advance and best regards,

Antonio Vargas

Comments

  • This sounds correct - an event trigger will be a push and release - if there is no end time the release would be immediately after the push (just like a button press).

    One immediate solution (without seeing your code) would be to put an IF(flag) on the release section and then toggle that flag in a seperate event before the time you want to close the curtains.
Sign In or Register to comment.