Your Universal Remote Control Center
RemoteCentral.com
RTI Control Systems Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 7 made on Saturday August 4, 2007 at 23:27
Ernie Bornn-Gilman
Yes, That Ernie!
Joined:
Posts:
December 2001
30,104
On August 3, 2007 at 06:16, vbcodep said...
This leads to another question. Are system macros thread
safe meaning that they can not be pre-empted by another
system macro. In another words does it just execute one
macro at time or can it process multiple macros.

This thread makes my head hurt, probably because I'm just looking and am not involved in solving a problem like this.

I have noticed that flag actions take time. I have a pretty simple flag macro on what I laughingly call a "system" in my living room: a TV with toggle only power, a DirecTV DVR, and a Sony DVD player.

When the "system" is on and I turn it off, my T2+ shows the button in action for about a second. This process involves checking the flag and turning off the TV...and there's a clue.

If the system is off and I hit the SYSTEM OFF button, the T2+ shows the button in action for only a couple tenths of a second. And here's where that clue comes in handy: if the flag has been unset, the macro does not execute TV POWER, nor does it unset the flag, and the macro takes less time. I'm sure it takes less time because of no TV POWER command, and maybe also because of no need to unset the flag.

Regardless, if you are using flags, you must be issuing commands dependent upon the state of the flag, so the macro will take a different amount of time depending on whether the state of the flag tells the remote to issue other commands, or not.

As to macros being thread safe, I know my T2+ will not do any next step once one macro has started, until it is finished. I believe that if a macro calls up another macro, that second macro would have to finish before the first one can do the next step. I think it has to be that way, because the remote can't issue multiple commands at the same time and so have to be strictly ordered to work at all.
A good answer is easier with a clear question giving the make and model of everything.
"The biggest problem in communication is the illusion that it has taken place." -- G. “Bernie” Shaw


Hosting Services by ipHouse