Persistent variables

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by filpee, Mar 3, 2009.

  1. filpee

    filpee

    Joined:
    May 31, 2006
    Messages:
    204
    Likes Received:
    0
    Location:
    Western Australia
    Is there a way I can make a variable persistent in a PAC module?

    The only way I can think of at the moment is to read/write to a file with a colour touch.
    Which means that a B/W touch also couldn't do persistent.

    I'm trying to capture schedule on/off times in a PAC but if for some reason there is a power fail then the times will revert back to the times I have hard coded into the source file.
     
    filpee, Mar 3, 2009
    #1
  2. filpee

    Mark

    Joined:
    Oct 28, 2004
    Messages:
    196
    Likes Received:
    1
    Location:
    Grenoble, France
    System IO

    Hi,

    Yes! Use System IO!

    SysIO is stored in Non Volatile Memory, so you can store the time into a User SysIO variable and it'll be there again when you power up.

    Cheers,
    Mark.
     
    Mark, Mar 3, 2009
    #2
  3. filpee

    filpee

    Joined:
    May 31, 2006
    Messages:
    204
    Likes Received:
    0
    Location:
    Western Australia
    Orsm. :D

    Thanks for that.
     
    filpee, Mar 3, 2009
    #3
  4. filpee

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,420
    Likes Received:
    62
    Location:
    Adelaide
    Err.. the PAC doesn't have System IO..

    Nick
     
    NickD, Mar 3, 2009
    #4
  5. filpee

    Mark

    Joined:
    Oct 28, 2004
    Messages:
    196
    Likes Received:
    1
    Location:
    Grenoble, France
    Sorry

    Opps - i use a B&W C-Touch#2 for my logic stuff.

    Sorry!
    Mark.
     
    Mark, Mar 4, 2009
    #5
  6. filpee

    filpee

    Joined:
    May 31, 2006
    Messages:
    204
    Likes Received:
    0
    Location:
    Western Australia
    Yea bummer. I noticed this today while onsite. Never mind.
     
    filpee, Mar 4, 2009
    #6
  7. filpee

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This should be fixed in the next release.
     
    Darren, Mar 5, 2009
    #7
  8. filpee

    filpee

    Joined:
    May 31, 2006
    Messages:
    204
    Likes Received:
    0
    Location:
    Western Australia
    Is this now enabled? I noticed that there is a new firmware release for the PAC's 3.41.0
     
    filpee, Apr 9, 2009
    #8
  9. filpee

    paulas

    Joined:
    Feb 4, 2008
    Messages:
    14
    Likes Received:
    0
    Yes, it's in the current firmware, seems to work pretty well.
     
    paulas, Apr 16, 2009
    #9
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.