Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: waiting vs timed events Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
bhlonewolf
Senior Member
Senior Member


Joined: March 29 2007
Online Status: Offline
Posts: 198
Posted: June 02 2008 at 15:43 | IP Logged Quote bhlonewolf

Quick question -- is there a "durability" difference between a macro that is waiting vs a timed event?   

In my case I want to run a dehumidifier for a certain amount of time -- but I'll vary it based on humidity levels. When the macro starts, it turns on the appliance, calculates the time out, then ... I can either wait until timeout, or just set a timed event for now+timeout.

Is there a difference between the two in terms of durability? If PH or my machine restarts for whatever reason, I was thinking the timed event would be more durable, but that might not be the case.
Back to Top View bhlonewolf's Profile Search for other posts by bhlonewolf
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 02 2008 at 17:35 | IP Logged Quote TonyNo

Good question! I would go with a Timed Event, but...

I await a response from DTG!
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
bhlonewolf
Senior Member
Senior Member


Joined: March 29 2007
Online Status: Offline
Posts: 198
Posted: June 02 2008 at 21:52 | IP Logged Quote bhlonewolf

Well, to be honest... originally I was thinking a timed event seemed to make more sense. However, I'm thinking that waiting macros may be more durable in my case. Here's why.

First, there are two options when starting PH -- "execute past events" and "resume waiting macros." I never paid attention to resume waiting macros, but I had purposefully left execute past events disabled. I have timed events run external executables, and if I keep PH off for some reason, running it with this option can be disaster. (Yeah, I can simply prompt for it, I realize.)

But with it disabled, obviously timed events won't get fired if their execute time has passed.

But waiting macros will still execute.

So in my setup, waiting macros actually seem more reliable/durable, but figured there could be other cases I wasn't thinking of.
Back to Top View bhlonewolf's Profile Search for other posts by bhlonewolf
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum