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

Login:
Pass:
 
 

Topic:
Cycle through inputs with flags
This thread has 10 replies. Displaying all posts.
Post 1 made on Friday June 29, 2007 at 20:09
gx270
Long Time Member
Joined:
Posts:
September 2005
194
Basically, I am using a T1 and want to put all zone 2 sources on to one button.

For example: I want to label a button Zone 2: Push Zone 2 once, it goes to CD, push Zone 2 twice it goes to radio, Push Zone 2 three times, it goes to Sat. Radio, push it four times would send it back to CD.

Matt Lust had a file like this for the U1 and I e-mailed him for it but he never responded. If anyone could help out that would be great. Thanks.
Post 2 made on Friday June 29, 2007 at 20:48
Springs
Super Member
Joined:
Posts:
May 2002
3,238
Could you use toggle? Just guessing.
OP | Post 3 made on Friday June 29, 2007 at 21:03
gx270
Long Time Member
Joined:
Posts:
September 2005
194
I'm not sure I follow...but I'm using a Denon AVR-2307 and want to yeah....toggle between three sources....

CD-SAT-RADIO
Post 4 made on Friday June 29, 2007 at 21:17
Springs
Super Member
Joined:
Posts:
May 2002
3,238
Check flag 1
If Flag 1
then
CD
clear flag 1
set flag 2
Stop Macro
else
----

Check Flag 2
If Flag 2
then
sat
clear flag 2
set flag 3
Stop Macro
else
----

Check Flag 3
If Flag 3
then
Radio
clear flag 3
set flag 1
Stop Macro
else
----
Set Flag 1

Sorry forget the toggle thing... this should do it.

Just went in there and checked it and this works. See the first time you reset the remote there will be no flag on the button to issue a command. So the first time after a reset or load the button will not issue a command. But the first contact will set the flag to tell the remote to issue the first desired IR command. After that the command will be issued in sequence each time you press the button.

Last edited by Springs on June 30, 2007 07:31.
Post 5 made on Friday June 29, 2007 at 21:44
estech
Active Member
Joined:
Posts:
August 2002
584
If flag [001] is set then
If flag [002] is set then
If flag [003] is set then
ELSE
Zone2 / Radio
Set Flag: [003]
Clear Flag: [001]
ELSE
Zone2 / Sat
Set Flag: [002]
Clear Flag: [003]
ELSE
Zone2 / CD
Set Flag: [001]
Clear Flag: [002]

Last edited by estech on June 29, 2007 21:52.
Pay no attention to that man behind the curtain.
Post 6 made on Monday July 2, 2007 at 16:57
Springs
Super Member
Joined:
Posts:
May 2002
3,238
And then....
Post 7 made on Monday July 2, 2007 at 18:12
whitt
Long Time Member
Joined:
Posts:
June 2007
39
I can't test this but how about:

1=set
0=clear

flag1 .. flag2
--------------------
0 ...... 0 .....CD
0 ...... 1 .....CD
1 ...... 0 .....SAT
1 ...... 1 .....TUNER

so, when you fist come in they're both clear so start with CD:

IF flag1 set THEN
IF flag2 set THEN
TUNER
clear flag1
set flag2
ELSE
SAT
set flag1
set flag2
ELSE
CD
set flag1
clear flag2
Post 8 made on Monday July 2, 2007 at 22:14
The8thst
Long Time Member
Joined:
Posts:
October 2004
364
Try this:

Photo Sharing and Video Hosting at Photobucket

It is a little bit of a quick and dirty way, but it will work.
Post 9 made on Monday July 23, 2007 at 00:52
estech
Active Member
Joined:
Posts:
August 2002
584
On July 2, 2007 at 16:57, Springs said...
And then....

That's it. Instead of using one flag per input, I'm using a combination of flags to represent each input, a binary approach. Since the OP asked for three sources to cycle through, two flags will more than cover it (that's four combinations).
To start at the same source each time zone 2 is used, just clear flag 1 in the power off macro.

Here's a better view of the sequence macro.

Pay no attention to that man behind the curtain.
Post 10 made on Monday July 23, 2007 at 03:47
tgrugett
Select Member
Joined:
Posts:
August 2004
1,850
You may need to consider clearing all source flags but the one that is being set because if you left the page and started some other activity you may have something go out of sync.

If a processor is used, I would first create a clear all source flag macro, then create souce switching "macros" that included the source command, the clear all source flag macro and then a set flag for the source you have selected.

Once done you can create your test flag toggle macro utilizing the nested source switching macros without having to set or clear any flags. If all other macros in your configuration involving source commands use nested source switching macros you will never have to worry about things getting out of sync.

If it is in standalone mode my comments are useless to some degree.
Post 11 made on Monday July 23, 2007 at 10:33
estech
Active Member
Joined:
Posts:
August 2002
584
I agree, only if other controllers are involved, then separate system macros setting the flags for each source selection would be necessary to maintain sync.

Otherwise, if managed correctly, only this (zone2) macro would switch these specific flags. No need to worry about losing sync. The last selected source, if needed again, could easily be extrapolated from the flags, unless lost to a power outage (does that reset flags?).

I was also trying to keep the macro as short as possible, again, for the specific function requested: three source sequencing.

Here's a similar macro for four sources:

Pay no attention to that man behind the curtain.


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