SyncSchedule - Strange behaviour

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Ingo, Feb 8, 2008.

  1. Ingo

    Ingo

    Joined:
    Dec 2, 2006
    Messages:
    290
    Likes Received:
    1
    Location:
    South Africa
    I found the following very strange. Create the following two modules:

    Test1:
    Delay ("00:01:00");
    DisableModule("Test2");

    Test2:
    WriteLn('Hello World');

    If you stop and start the logic engine everything works fine, it delays for 1 minute before disabling module Test2. As soon as you select Sync to Schedules function it skips the delay function and immediately disables module Test2.

    Am I missing something here or is this supposed to happen?

    The only workaround I found was using the following in Test1:
    StartTime := RunTime;
    WaitUntil(RunTime - StartTime >= 60);
    DisableModule("Test2");
     
    Ingo, Feb 8, 2008
    #1
  2. Ingo

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    When you run the Sync to Schedules, PICED runs all schedules and logic for the last 24 hours. It essentially compresses 24 hours of schedules and logic into a minute or so.

    This means that any delays in the logic will also happen much more quickly (ie. virtually instantly).

    So it is behaving as it should.
     
    Darren, Feb 10, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.