Program Not Repeati...
 
Notifications
Clear all

Program Not Repeating

11 Posts
5 Users
0 Reactions
4,532 Views
Posts: 8
Topic starter
(@agfrost)
Active Member
Joined: 18 years ago
[#13241]

I'm pulling what little hair I have left out! My show will not repeat, and the background sequence just keeps running. I have it set up to repeat every 10 minutes for 3.5 hours. What am I missing?
Thanks!


10 Replies
kychristmas
Posts: 3955
(@kychristmas)
Famed Member
Joined: 18 years ago

How long is your show? Strange things happen when your Program is longer than your interval. I don't use an interval. I didn't like it. I tell it to repeat until a certain time. I simply add a blank sequence to the end of the show for the downtime.

If you don't want any downtime, then simply check the "repeat" option and remove the check mark on the "every" option.


Reply
Posts: 8
Topic starter
(@agfrost)
Active Member
Joined: 18 years ago

My show is around six minutes right now, I plan on adding a couple of more songs though. No FM modulator yet so I am "softly" playing the music. I don't want to bug the neighbors that much by playing the same songs back to back so I put it on a ten minute repeat. It just never comes back 🙁
Maybe I'll just make a ten minute calm pattern to run between the show.


Reply
rokkett
Posts: 441
(@rokkett)
Reputable Member
Joined: 17 years ago

How complicated is your background sequence? I have found that they can't be too complicated or they seem to lock up and not exit. Does yours continue to run and does not exit when the program needs to start? Or do the lights get "stuck" also?


Reply
dirknerkle
Posts: 10310
(@dirknerkle)
Illustrious Member
Joined: 18 years ago

I've found that the surest way to eliminate the problem is to design a sequence using perhaps 1 second intervals, tie it to your music, and either turn all pixels on your desired percentage or leave them off -- whatever -- and just include that in your program at the end. Then set your scheduler to repeat the program, and your "background music" fits in automatically as part of the program instead of trying to coordinate something in the background.

It works every time, it's easy to explain and do, and it's very simple -- a whole lot easier than dinging around with a background script.

IMO, anyway....:lol:


Reply
rokkett
Posts: 441
(@rokkett)
Reputable Member
Joined: 17 years ago

I agree, it is a hassle, but the computer scientist in me really, really wants it work. So I will keep playing until I figure it out....

(Did I say playing? I meant to say continue to test hypotheses... :))


Reply
Posts: 8
Topic starter
(@agfrost)
Active Member
Joined: 18 years ago

Actually my background sequence is kinda complicated.

void Start() {

ChannelCollection Group_One;
ChannelCollection Group_Two;
ChannelCollection Group_Three;
ChannelCollection Group_Four;
ChannelCollection Group_Five;
ChannelCollection Group_Six;
ChannelCollection Group_Seven;
Group_One = Channels(Channel_1,Channel_2,Channel_3);
Group_Two = Channels(Channel_4,Channel_5,Channel_6);
Group_Three = Channels(Channel_7,Channel_8,Channel_9);
Group_Four = Channels(Channel_10,Channel_11,Channel_12);
Group_Five = Channels(Channel_13,Channel_14,Channel_15);
Group_Six = Channels(Channel_16,Channel_17,Channel_18);
Group_Seven = Channels(Channel_21,Channel_24);



    while(true) {

        On(Group_Seven);
        On(Group_One);
        On(Group_Four, For(5).Seconds,Wait);
        Off(Group_One);
        Off(Group_Four);
        On(Group_Two);
        On(Group_Three, For(5).Seconds,Wait);
        Off(Group_Two);
        Off(Group_Three);
        On(Group_One);
        On(Group_Six, For(5).Seconds,Wait);
        Off(Group_One);
        Off(Group_Six);
        On(Group_Five);
        On(Group_Four, For(5).Seconds,Wait);
        Off(Group_Five);
        Off(Group_Four);
        Off(Group_Seven);
        On(Channel_22);
        On(Group_One);
        On(Group_Four, For(5).Seconds,Wait);
        Off(Group_One);
        Off(Group_Four);
        On(Group_Two);
        On(Group_Three, For(5).Seconds,Wait);
        Off(Group_Two);
        Off(Group_Three);
        On(Group_One);
        On(Group_Six, For(5).Seconds,Wait);
        Off(Group_One);
        Off(Group_Six);
        On(Group_Five);
        On(Group_Four, For(5).Seconds,Wait);
        Off(Group_Five);
        Off(Group_Four);
        Off(Channel_22);
        On(Channel_23);
        On(Group_One);
        On(Group_Four, For(5).Seconds,Wait);
        Off(Group_One);
        Off(Group_Four);
        On(Group_Two);
        On(Group_Three, For(5).Seconds,Wait);
        Off(Group_Two);
        Off(Group_Three);
        On(Group_One);
        On(Group_Six, For(5).Seconds,Wait);
        Off(Group_One);
        Off(Group_Six);
        On(Group_Five);
        On(Group_Four, For(5).Seconds,Wait);
        Off(Group_Five);
        Off(Group_Four);
        Off(Channel_23);

    }
}

I have 6 trees that I have changing 3 different colors (3 by 3) and 3 channels on the house with the bushes tied in with one of the house channels (group seven). I guess I could simplify it if that would help.


Reply
Aurbo99
Posts: 2804
Moderator
(@aurbo99)
Member
Joined: 19 years ago

Try this



void Start() { 

Off(All); 

ChannelCollection Group_One;
ChannelCollection Group_Two;
ChannelCollection Group_Three;
ChannelCollection Group_Four;
ChannelCollection Group_Five;
ChannelCollection Group_Six;
ChannelCollection Group_Seven; 

Group_One = Channels(Channel_1,Channel_2,Channel_3);
Group_Two = Channels(Channel_4,Channel_5,Channel_6);
Group_Three = Channels(Channel_7,Channel_8,Channel_9);
Group_Four = Channels(Channel_10,Channel_11,Channel_12);
Group_Five = Channels(Channel_13,Channel_14,Channel_15);
Group_Six = Channels(Channel_16,Channel_17,Channel_18);
Group_Seven = Channels(Channel_21,Channel_24);

On(Group_Seven);
On(Group_One);
On(Group_Four, For(5).Seconds,Wait);
Off(Group_One);
Off(Group_Four);
On(Group_Two);
On(Group_Three, For(5).Seconds,Wait);
Off(Group_Two);
Off(Group_Three);
On(Group_One);
On(Group_Six, For(5).Seconds,Wait);
Off(Group_One);
Off(Group_Six);
On(Group_Five);
On(Group_Four, For(5).Seconds,Wait);
Off(Group_Five);
Off(Group_Four);
Off(Group_Seven);
On(Channel_22);
On(Group_One);
On(Group_Four, For(5).Seconds,Wait);
Off(Group_One);
Off(Group_Four);
On(Group_Two);
On(Group_Three, For(5).Seconds,Wait);
Off(Group_Two);
Off(Group_Three);
On(Group_One);
On(Group_Six, For(5).Seconds,Wait);
Off(Group_One);
Off(Group_Six);
On(Group_Five);
On(Group_Four, For(5).Seconds,Wait);
Off(Group_Five);
Off(Group_Four);
Off(Channel_22);
On(Channel_23);
On(Group_One);
On(Group_Four, For(5).Seconds,Wait);
Off(Group_One);
Off(Group_Four);
On(Group_Two);
On(Group_Three, For(5).Seconds,Wait);
Off(Group_Two);
Off(Group_Three);
On(Group_One);
On(Group_Six, For(5).Seconds,Wait);
Off(Group_One);
Off(Group_Six);
On(Group_Five);
On(Group_Four, For(5).Seconds,Wait);
Off(Group_Five);
Off(Group_Four);
Off(Channel_23);

}

Without testing this at home on my Vixen system, I cannot confirm this, but it appears your nested "While True" loop will be forever "True" therefore never ending, you need the break where your Program sequence can step in and take over.


Reply
Aurbo99
Posts: 2804
Moderator
(@aurbo99)
Member
Joined: 19 years ago

ALSO;

If you edit or mess with your script, make sure you save your script, close and restart Vixen to load the new script.

http://doityourselfchristmas.com/forums/showthread.php?t=10044&highlight=script

Check the link (second page for a quick graphical walk through of most scripting issues)


Reply
Posts: 8
Topic starter
(@agfrost)
Active Member
Joined: 18 years ago

AMAZING! Thank you so much! I will load it when I get home.


Reply
Page 1 / 2
Share: