Random Switching

Discussion in 'Pascal Logic Code Examples' started by Nathan, Nov 23, 2005.

  1. Nathan

    Nathan

    Joined:
    Aug 3, 2004
    Messages:
    161
    Likes Received:
    0
    I was wondering if anyone has written code for a random pulsing of group addresses from an input (ie if you have a large commerical building with 35 AC units and a current limiter triggers a relay then randomly pick a AC to turn off if it remians high keep picking random AC units to turn off)
    or ( if you have a kids party and press a switch to trigger the party mode and you have selcted lights pulsing on randomly and repeating until trigger group is turned off) let me know or I will try to write one. Cheers
     
    Nathan, Nov 23, 2005
    #1
  2. Nathan

    JohnC

    Joined:
    Apr 6, 2005
    Messages:
    554
    Likes Received:
    1
    Location:
    Sydney
    Can't help with the code, but another good example of a use for this would be an "un-attended home" thingy...

    It could turn on and off random lights, that would kind of give the impression that somebody was home when really they weren't

    Cheers, John
     
    JohnC, Nov 23, 2005
    #2
  3. Nathan

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Have a look at the "Random Event Times" topic in the FAQ of the Logic Engine help file.
     
    Darren, Nov 24, 2005
    #3
  4. Nathan

    Nathan

    Joined:
    Aug 3, 2004
    Messages:
    161
    Likes Received:
    0
    any help where to start???
     
    Nathan, Nov 24, 2005
    #4
  5. Nathan

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Also see the example project C:\CLIPSAL\PICED\Projects\Examples\Logic\Random Control
     
    Darren, Nov 24, 2005
    #5
  6. Nathan

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    Have some sample programs

    Nathan call me. Or drop a post with an email address.

    I have some sample programs. I have decided to get Darren to check these before going public, however Darren is REALLY busy and hasn't had the time. In the meantime I am happy to give out my work to individuals on the understanding that you use them for training or in any case at your own risk ;)

    The program includes serial 232 controls for high end amps etc.
     
    Phil.H, Nov 25, 2005
    #6
  7. Nathan

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Sorry Phil :(

    Now that V3.3 is released, I should be able to find some time...
     
    Darren, Nov 28, 2005
    #7
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.