Your Universal Remote Control Center
RemoteCentral.com
Complete Control by URC Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
MSC-400: Speed difference in nesting macros versus not-nesting?
This thread has 3 replies. Displaying all posts.
Post 1 made on Monday December 17, 2012 at 07:33
John Klimek
Long Time Member
Joined:
Posts:
October 2007
116
I'm trying to setup discrete activities for each step of a macro, but the MSC-400 seems to take a very long time to execute.

For example, I have macros for the following:

[Turn on TV]
[Set HDMI switch to Input #1]

I'm using nested macros for each step because this way I can change the -contents- of the nested macros without needing to change the main macro itself.

Does that make sense?

The alternative is to copy the actual IR/RS232 commands into each macro and then if a piece of equipment changes you need to change -everything- instead of the nested macros...

The disadvantage is that it seems like the MSC-400 takes a very long time to execute a nested macro. If I don't nest macros, but use the exact same IR/RS232 commands, it seems to execute much, much faster.
Post 2 made on Monday December 17, 2012 at 19:06
Lowhz
Senior Member
Joined:
Posts:
April 2012
1,168
So what's the question?
OP | Post 3 made on Wednesday December 19, 2012 at 06:52
John Klimek
Long Time Member
Joined:
Posts:
October 2007
116
Sorry...

I'm wondering if nested macros are really slower than executing just a bunch of direct IR commands, or if it's just my imagination.

I'm also wondering if setting up dedicated macros (i.e. "Turn on TV") is a best practice compared to embedding IR commands everywhere, etc.
Post 4 made on Wednesday December 19, 2012 at 10:42
Lowhz
Senior Member
Joined:
Posts:
April 2012
1,168
Well, you could build 2 test macros: one with nested macros and one with a long list of individual codes. Start each macro by changing the state of one of the relays on the back and end it with changing the state of that relay again so that you can hear a 'click' when it flips. Use those clicks as references for your stopwatch and report back your results.


I imagine when you build a big group of nested macros it takes the CPU longer to dereference the memory address the command is in since you are calling a function from within a function.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse