LUA - Script Loop Not Working

Discussion in 'C-Bus Automation Controllers' started by pspeirs, Jul 10, 2019.

  1. pspeirs

    pspeirs

    Joined:
    Nov 23, 2013
    Messages:
    128
    Likes Received:
    4
    Location:
    Sydney
    Hi All,

    The following simple loop doesn't appear to work for me. I get log entries for 31 - 40, always only the last 10. Anyone else seen this or can verify.

    Code:
    
    for idx = 1, 40
    do
        log(idx)
    end
    
    
    Cheers,
    Paul
     
    pspeirs, Jul 10, 2019
    #1
    1. Advertisements

  2. pspeirs

    pspeirs

    Joined:
    Nov 23, 2013
    Messages:
    128
    Likes Received:
    4
    Location:
    Sydney
    pspeirs, Jul 12, 2019
    #2
    1. Advertisements

  3. pspeirs

    Pie Boy

    Joined:
    Nov 21, 2012
    Messages:
    27
    Likes Received:
    3
    Location:
    New Zealand
    It probably is working, i think the log is to slow to keep up? as the web browser is refreshing etc
     
    Pie Boy, Jul 12, 2019
    #3
  4. pspeirs

    pspeirs

    Joined:
    Nov 23, 2013
    Messages:
    128
    Likes Received:
    4
    Location:
    Sydney
    Yeah does seem to be working, I'll just need to find a way to work around the buffer size. Even a 1/2 sec wait seems to give enough time to clear out.
     
    pspeirs, Jul 12, 2019
    #4
    1. Advertisements

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.