Initialising every 10 minutes

Discussion in 'C-Bus Wiser 2 Controller' started by MichaelD, Nov 4, 2016.

  1. MichaelD

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,522
    Likes Received:
    173
    Location:
    Adelaide, Australia
    Life is so much easier when you have the source code :)
     
    Ashley, Nov 10, 2016
    #21
  2. MichaelD

    MichaelD

    Joined:
    Apr 3, 2016
    Messages:
    46
    Likes Received:
    0
    Location:
    UK
    It not just that PICED didn't give an error, PICED actually wrote that code. Although I've done a lot of software dev, I haven't used PASCAL, so I just used the statement wizard to create the code, then went into testing.
     
    MichaelD, Nov 10, 2016
    #22
  3. MichaelD

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    I've been following this thread to learn a bit more about logic implementation.
    Maybe someone can help to clarify.
    From MichaelD's initial log post it seems the logic crashed at "virtual sleep on" and that seems to be the case.
    Wiser CPU usage is ramping up fast before the crash.
    I wonder what is a reasonable CPU usage for Wiser to stably run logic?
     
    Last edited by a moderator: Nov 10, 2016
    DarylMc, Nov 10, 2016
    #23
  4. MichaelD

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    All that CPU stuff is the effect, not the cause.

    The problem is the logic code includes functionality that is not actually implemented in the underlying interpreter so when it tries to actually do the function it just runs off to who knows where and eventually crashes the interpreter. The high CPU will be caused by it executing random memory with no control and not the intended code.

    Rohan
     
    rhamer, Nov 10, 2016
    #24
  5. MichaelD

    DarylMc

    Joined:
    Mar 24, 2006
    Messages:
    1,308
    Likes Received:
    49
    Location:
    Cleveland, QLD, Australia
    Thanks Rohan
     
    DarylMc, Nov 11, 2016
    #25
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.