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:
MX3000, IF/Else & Variables, HELP!
This thread has 4 replies. Displaying all posts.
Post 1 made on Tuesday December 8, 2009 at 00:25
sofa_king_CI
Super Member
Joined:
Posts:
June 2009
4,230
Can I fake IF/ELSE statements on a MX3000? I've kind of heard I can nest Variable macros and make it work but I'm not thinking so.

I also have an MSC400 which I can do the flags and tracking on, but I have multiple MX3000's in the system so I have to make copies of each flag. Which it may be easier to make duplicate copies of every device so that each MX3000 has 5 sources for Living room, 5 sources for Family Room, 5 sources for M.Bedroom....etc.

I'd rather just use some flag logic, create each source page once then be done, however this also means that I can't just add new remotes to the system (well more whole house MX3000's) b/c each MX3000 would have to have its own set of flags on the MSC.

Here is the process I tried on the MX3000 Editor
I made 8 variables on the 3000 Editor, one for each room. Then I created a page that has 6 of the rooms (the rest have VC's) I then made a VOL+, VOL- and MUTE button for each room.

Then on each button I did the macro as follows,
* Select the VARIABLE MODE optioin

* Select Variable that I'm using (example living room ON)

* Change from "0" to "1" (which changes the macro screen, same as the press and hold option, as if I can have two macros, one if the variable is "0" and one if the variable is "1") so i make so that if the variable is "0" nothing happens, but if "1" then sends AVR command.

* I do that for all rooms

* Then I build a macro on the Main VOL + Button that goes through and presses each of those VOL + buttons.

BUT, on the macro ALIAS' I have the option to use "0/Before" or "1/After" What does this mean? Is this asking which command to run, if so then this is really more like a toggle and not a nested IF/ELSE statement.

Can someone please correct me if I'm wrong here.

What do you think is the best way to go about this?
do wino hue?
Post 2 made on Tuesday December 8, 2009 at 07:27
vbova27
Super Member
Joined:
Posts:
July 2006
2,987
The before and after is just the way the if then macro looks when you are selecting it from the tree menu. Don't worry about selecting 0 or 1. Just select the main button in your nested macro and it will execute the variable check on the button you specify. The reason you see 0 and 1 is simply because you actually created 2 buttons on the one button - a set of commands to execute if the condition is 0, and a set of commands to issue if the variable is 1. Just select the main macro (without going down to the variable level).

You are not "faking" if then variables on the MX-3000 - you are actually creating them. For example, if you careted the following:

Button 1 - CHECK_ROM
If 0 then page jump to Zone 1 Home Page
If 1 then page jump to Zone 2 Home Page

By aliasing to the check_room on your home page button you are in effect nesting a macro by making it a conditional check to see what zone your in and making the appropriate page jump.

This is a very simple example, but gives you an idea of how the if/then works. In CCP, the if/then is actually created with more of a programming look so you can see the whole statement at once - while cosmetically better, it doesnt offer any difference in the way it works.

Hope this helps,
Vincent
OP | Post 3 made on Tuesday December 8, 2009 at 11:04
sofa_king_CI
Super Member
Joined:
Posts:
June 2009
4,230
Okay,

Here is how my macro looks:

1. Alias| 1_Vol+ [0][Flags Page/Volume1-6]
2. Alias| 2_Vol+ [0][Flags Page/Volume1-6]
3. Alias| 3_Vol+ [0][Flags Page/Volume1-6]
4. Alias| 4_Vol+ [0][Flags Page/Volume1-6]
5. Alias| 5_Vol+ [0][Flags Page/Volume1-6]
6. Alias| 6_Vol+ [0][Flags Page/Volume1-6]

And each of those VOL+ command variables are set so that it the when variable=0, no command is sent, when variable=1, the command for that room is sent.

So button "1_Vol+" has variable state "0" empty, and variable state "1" has a macro that only sends the Onkyo Z1 Vol+ command.

So if this is all correct, when they hit Vol+, it will go through and if all the variables are current set to "0", then nothing should happen, but if say "2_Vol+" (the family room) is set to "1" then it will ONLY send the one command b/c everything else is set to "0".

If/Else statements are so much easier to work with. Thanks for the help!
do wino hue?
OP | Post 4 made on Wednesday December 9, 2009 at 03:40
sofa_king_CI
Super Member
Joined:
Posts:
June 2009
4,230
anyone?
do wino hue?
Post 5 made on Wednesday December 9, 2009 at 08:49
vbova27
Super Member
Joined:
Posts:
July 2006
2,987
If you can send the part of the configuration that isn't working that would be great. It could be a waste of time to troubleshoot a description of what is on the buttons.


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