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:
MX-980 Macro sequence
This thread has 8 replies. Displaying all posts.
Post 1 made on Sunday December 2, 2012 at 16:45
CI256
Long Time Member
Joined:
Posts:
December 2012
59
I'm having an issue with my MX-980 in my personal setup. I have never noticed the issue with a client's setup.

I have several IF/Else steps in my macros to make my system behave the way I want it too and to supposedly make macros faster when the system is already powered on.

The system functions as it should but the macros take much longer to run than it seems they should. I have ignored this for quite a while but today I was determined to figure this out. I simply cannot figure out what is going on.

Take the "Media Center" macro, my most frequently used. When I add up all of the delays in all of the steps I get a total of 4.2 seconds from a cold start with everything off. This should be all that is required. If the system is on it should only take 1.3 seconds to run the macro.

Regardless of whether the system is on or off the macro takes 15 seconds to run every time and will sit on the "Please Wait" screen for the full 15 seconds.

Here is a screenshot of the macro:


Any ideas why this takes 15 seconds to run? Am I nesting things incorrectly? I'm using an MRF 350 and everything is RF except the projector.

Last edited by CI256 on December 2, 2012 16:53.
Post 2 made on Sunday December 2, 2012 at 18:40
dalto
Long Time Member
Joined:
Posts:
July 2005
435
You could certainly simplify it.

First off....you are turning on your xbox twice.

The section from if(system power, off) could be greatly simplified. Not sure if this will help your problem but it will make it a lot easier to read and maintain

if(system power, false)
delay 3.0
var system power =true
alias TV-HDMI2
delay 0.1
ALIAS receiver-dvd
if(system mem, false)
delay 0.1
alias audio 3-left
jump media center

I am fairly certain that is functionally equivalent to what you have and a lot simpler. The indentations indicate what should go inside the if.
OP | Post 3 made on Sunday December 2, 2012 at 23:56
CI256
Long Time Member
Joined:
Posts:
December 2012
59
Unless I'm misunderstanding your suggestion then no, it doesn't work. There is a redundant sequence because IF SYS PWR is false then it adds a 3 second delay to allow time for the receiver to power on before switching the input. ELSE, the same sequence is sent without the 3 second delay. I see no way around that.

It doesn't get to that point though, for at least 12 seconds. If I switch to another source and back again it takes 12 seconds for the input changes to be made. That is what does not make sense. There is nothing in the macro that should take that long to execute.
Post 4 made on Monday December 3, 2012 at 01:15
dalto
Long Time Member
Joined:
Posts:
July 2005
435
Gah...the indents got lost. Let me try that again

if(system power, false)
-----delay 3.0
var system power =true
alias TV-HDMI2
delay 0.1
ALIAS receiver-dvd
if(system mem, false)
-----delay 0.1
-----alias audio 3-left
jump media center

basically, only do the things that are different inside the if.

Also, are any of the things you aliasing macros with their own delays?

Lastly, is there anything else below that?
Post 5 made on Monday December 3, 2012 at 01:35
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
That macro could and should be completely cleaned up. I've done some monster systems with URC and never came close to needing anything like what you have there. I'll bet you if it was cleaned up your problems would go away.
"Quality isn't expensive, it's Priceless!"
OP | Post 6 made on Monday December 3, 2012 at 02:01
CI256
Long Time Member
Joined:
Posts:
December 2012
59
There are no aliases with their own delays. I'm afraid I still don't understand how that will work. You're leaving out the ELSE.

If I do:

IF SYS PWR=FALSE
-----3.0sec delay
ELSE
var system power =true
alias TV-HDMI2
delay 0.1
ALIAS receiver-dvd
if(system mem, false)
-----delay 0.1
-----alias audio 3-left
jump media center

The macro stops after the 3.0 second delay because SYS PWR=False. If the system is already on and SYS PWR=True then it will complete as usual.

I have never programmed a clients system to be so complex but this is my personal setup and I have added a lot of little tweaks for myself.

I kept accidentally turning off my projector so the very first step in the macro takes me to an "Are you sure you want to turn off the projector" screen if the projector is powered on.

The System MEM variable has to do with loading system memories in my Yamaha receiver. If I manually load a system memory (seating position calibration) I don't want it to load the default position (Left) every time a source is switched until the system is shut down.
Post 7 made on Monday December 3, 2012 at 10:04
dalto
Long Time Member
Joined:
Posts:
July 2005
435
You don't need else logic in what you are doing in the example I posted above you would just have the else section do nothing.

What I posted above does the exact same thing, in the same order as your logic, it is just much smaller.

So, to show it again this time with the else's in there.

if(system power, false)
-----delay 3.0
else
-----
var system power =true
alias TV-HDMI2
delay 0.1
ALIAS receiver-dvd
if(system mem, false)
-----delay 0.1
-----alias audio 3-left
else
------
jump media center

What this says is:
If the power var is set to false add three seconds.

The next four commands are executed regardless of what "system power" is set to.

One the next if, we are adding the delay and hitting the left arrow

Then the jump media center happens no matter what.
OP | Post 8 made on Monday December 3, 2012 at 11:00
CI256
Long Time Member
Joined:
Posts:
December 2012
59
I understand what you are saying but when I actually implement it the macro hangs and does not complete. It stays on the "Please Wait" screen indefinitely and the final steps after the 3 second delay are never sent.

Speaking of the "Please Wait" screen, I changed the image on that page to another GIF and I noticed that the animation was incredibly slow and laggy. I deleted the animated GIF completely and now the total duration of the macro is less than 6 seconds. This seems to imply that the stock animation was causing a significant slow down.
Post 9 made on Monday December 3, 2012 at 12:29
Lowhz
Senior Member
Joined:
Posts:
April 2012
1,168
MSC400. Sensors. Reduce the over automation.


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