PDA

View Full Version : Background sequence



ctmal
11-25-2008, 09:19 AM
My display will be running about every 1/2 hour and is about 10 minutes long. I was thinking during the 'downtime' I would like to have certain lights lit and the Bethlehem star twinkling. I think I need to make a background sequence to do this, so I need to make a script.
I found the text file with the description of the Vixen elements(on, off, etc) but I noticed in other posts people use WaitOnTimers(). This is not covered in the text I found. Does anybody have more information on that or where I can find information?
Also, using a background script, am I correct in saying that it will try to run 24/7? I'm figuring I would have to add a time check in there to stop that.

Thanks,
Chris

cbell
03-06-2009, 11:53 PM
I noticed in other posts people use WaitOnTimers(). This is not covered in the text I found. Does anybody have more information on that or where I can find information?

I have also been playing with background sequences and am wondering about the WaitOnTimers() funciton. I'm assuming it allows the sequence to work with the scheduler built into Vixen, but I also see people who want their scripted sequence to loop using


while(true) {
// turn lights on and off
continue;
WaitOnTimers();
}

I haven't used C# in a year or two, but it seems to me all the continue statement is doing is bypassing the WaitOnTimers() every iteration, therefore it seems (and please correct me if I'm wrong) that WaitOnTimers() never gets called. Do infinite loops like this work with the Vixen Scheduler?