Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Macro Problems? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ibscas
Groupie
Groupie


Joined: October 18 2008
Location: United States
Online Status: Offline
Posts: 46
Posted: October 21 2008 at 14:37 | IP Logged Quote ibscas

grif091 wrote:
... Dave said he has fixed it in the yet to be released "fix" release and offered the ph_macro approach as an alternative.


Which is what I was to understand as well and am using that same method (obviously, given the screen shots).
Back to Top View ibscas's Profile Search for other posts by ibscas
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 21 2008 at 14:48 | IP Logged Quote grif091

With my single Timed Event working all the time and your Timed Event not working reliably, I'm going to create a new Timed Event that starts with my definition and will evolve one step at a time until it looks like yours. Perhaps I can recreate your situation and determine which change makes the difference.

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
ibscas
Groupie
Groupie


Joined: October 18 2008
Location: United States
Online Status: Offline
Posts: 46
Posted: October 21 2008 at 14:52 | IP Logged Quote ibscas

I appreciate that Lee. I'm waiting for David to finish his appointment and then he's going to call and dial in to take a look around - but all help is always appreciated!
Back to Top View ibscas's Profile Search for other posts by ibscas
 
ibscas
Groupie
Groupie


Joined: October 18 2008
Location: United States
Online Status: Offline
Posts: 46
Posted: October 21 2008 at 15:20 | IP Logged Quote ibscas

Status Update...

I've been playing around with it and it seems to me that my original assessment was correct, MY system (not to say yours... ) will NOT run ANY macro as a timed event.

I've set some events to fire a few minutes into the future, and created a series of TEST macros with just one single item in them and they do not fire. So, the complexity of the macro seems not to make any difference at all.

In each instance, I get the event in the log saying the event fired, but no subsequent TX/RX statements that the actual commands in the macro were sent.
Back to Top View ibscas's Profile Search for other posts by ibscas
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: October 21 2008 at 16:24 | IP Logged Quote BeachBum

Lee, Sorry for the delay, the beach called…. I have used both since I went to V2. When I Create from a Macro I use Command Create Time Event. When I create in a formula I use ph_createtimedevent1 ( id, active, timing, freq, offset, offsetamt, reftime, type, action, boolean ). This is new to V2. Yes some are carried over from V1 but they are created on the fly. Again I’m not experiencing the problem with Timed Events using V2. I did report a problem with the ID disappearing. I am also running under Vista. I wonder….

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: October 21 2008 at 16:38 | IP Logged Quote BeachBum

Ibscas, Hang in there. Dave will definitely resolve the problem. I go back to an earlier post that it seems like the Bolean is stopping the macro from executing but that is a very long guess. You might try adding a plus (+) 1 after the ph_… in the last field. Another variable is I am using the PLM and Lee is not.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 21 2008 at 17:58 | IP Logged Quote grif091

Pete, thanks. We are creating the Time Events using Powerhome Explorer which is why we see the PH error when creating a Timed Event using Macro and you do not (assumption).

ibscas, sorry. I created a new Timed Event with an ID containing blanks between the descriptive words. It runs a Macro using the ph_macro() function, with the Macro ID having blanks between the descriptive words. Defined an X10 device and use X10 rather than X10 Raw I was using in my Macro to run the X10 commands. Set the Timed Event times to execute a few minutes in the future and went into Powerhome Status. It showed both my original Timed Event and the new Timed Event in the queue. When the event time came, first the new Timed Event was run, followed 30 seconds later by my original Timed Event. Macros were invoked and X10 commands issued. The only piece of information not visible in your very thorough post is the Boolean field to the right of where the ph_macro formula is entered. As Pete mentioned in his earlier post, that field requires a 1 (True) or some formula that returns True for the Timed Event to function. Hopefully Dave will have more success.


Edited by grif091 - October 21 2008 at 18:18


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 
ibscas
Groupie
Groupie


Joined: October 18 2008
Location: United States
Online Status: Offline
Posts: 46
Posted: October 21 2008 at 19:06 | IP Logged Quote ibscas

Problem SOLVED!!!!

Ok, once Dave started poking around my system and we found something interesting. DON'T COPY AND PASTE THINGS FROM THE FORUM!!!!

The problem was that I copied the ph_macro("????") from the forum and pasted it into PH and changed the ???? to the macro name I wanted, leaving the quotes and everything else - that puts in funky quotes that PH doesn't like. Once those quotes were fixed with REAL quotes then everything worked as it should.

Note to self: don't copy and paste!

Thanks to you all and especially Dave who gave me the grand tour today and really showed me what this program can do!!

Edited by ibscas - October 21 2008 at 19:07
Back to Top View ibscas's Profile Search for other posts by ibscas
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 21 2008 at 20:08 | IP Logged Quote grif091

I apologize for that. Opposite sloping quotes (open close quotes) come from Word. I must have typed that last line while doing a spell check in Word. I edited the forum post so that no one else will have that problem.

EDIT:
There is always a possibility that something on the forum has a problem. In this case it was the result of typing a function into Word and then pasting the results into the forum. Anyone who has pulled information from a forum will eventually encounter a space where it should not be, missing or unbalanced parens, etc. When the formula field has been completed, be it macro, timed event, whatever, copy/paste, typed from scratch or a mixture of both, double click on the field which will take you to the Formula Builder. There is a Verify feature which will execute the content. Verify is not 100% accurate as the PH reference manual or online help describes but it is a very good tool to validate most of the workings of a formula or function.


Edited by grif091 - October 21 2008 at 21:19


__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 

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

<< Prev Page of 2
  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