I've got 5 sequences that run flawlessly in the Sequencer, but when I schedule and run a show, things periodically get out of sync - seemingly at the beginning of each song - although I've seen it happen mid-sequence. I'm wondering what's different running a show vs. running in the Sequencer. Is the timing different, for instance?
Some info on my setup: I'm using the Generic Serial controller with 4 outputs connected to an Arduino via USB. I'm using Custom Value effects to send bytes to my Arduino sketch. Vixen update interval is set at 50ms. I've tried baud rates from 19,200 to 57,600. The sketch relies on getting Vixen serial output in a round robin fashion - outputs 1,2,3,4,1,2,3,4,etc. - so I know which of my elements the byte is destined for. My sketch is doing some work with each byte it receives (translating to a code that I send to some XBees at the actual physical elements) so it's possible my sketch is getting over-run with data coming too fast. I'm having trouble debugging that because the serial port is busy with Vixen, of course.
Any ideas?
Thanks,
Erik
There is really nothing different from editor vs a scheduled show. The same core engine is used in both processes. I am not sure if you are relying on exact timing or not, but the 50ms interval can vary a few ms either way.
Jeff
Hmmm. I'm definitely not relying on exact timing - just processing bytes as they come my way. Is there any difference at the beginning or end of sequences when running a show? Can I somehow see the stream of bytes coming from Vixen in a debug window? I'm not ruling out a bug in my Arduino sketch or some sort of data overrun but I can't figure out a way to debug the sketch while the Arduino serial is tied up receiving Vixen data... The errors are definitely more frequent at the beginning of sequences.
More data on this issue. It's not a timing issue. It looks like a scheduler pre-processing issue to me. I can now see that I get the same errors each time through the show. Most of the show runs fine but a few segments I get random bytes coming down the line for periods of time which of course make my show look like a complete mess - the same bytes each time through the show - and they're timed correctly - in other words, coming at times where I've placed a Custom Value effect.
My sequences consist entirely of Custom Values. Nothing else.
The reason I suspect the preprocessor is if I stop the show and restart, I get either a totally fine show or errors in another place that repeat each time through the show.
I'm running 3.1u1 on Vista.
Correction: "random bytes coming down the line" is not accurate. I get the wrong byte (I.e. Not what the custom value should be) but I get it at the right time and for the correct duration (I.e. Every 50 ms for the correct duration). Baffling.
V3 sends out data all the time. So I suspect you are seeing zeros in the idle time up to the point it starts to run your sequence then the custom values would come in at the points in your sequence. So does your Aduino deal with a constant stream of data?
Yes. My Arduino deals with the constant stream. It eats the 0's and just updates my internal "channel" number so it stays in sync. When custom values come in, it sends them out the XBee to the Arduinos that control the physical elements. Everything runs great in the Sequencer, it's just in show mode that I get the errors. It really feels like a pre-processor issue since the "stop show, restart show" sequence changes things and then whatever errors I get stay the same each time through the show - until I stop and restart again.
I've tried installing all .NET updates that were pending. Uninstalling Vixen 3.1u1 and re-installing. I even tried uninstalling and then installing the 32 bit version. Still seeing occasional errors in show mode.
The preprocessing in the scheduler is the same thing that happens when it renders in the sequencer. Just all sequences happen at the same time. If you limit it to one sequence in the scheduler do you still see it?
Sent from my iPhone using Tapatalk
Is there any reason you're using custom value effects and your own protocol as opposed to lighting effects with one of the standard protocols?
I'm not saying it shouldn't work. But this is definitely an edge case usage scenario.
--Jon Chuchla--
Sent from my iPhone using Tapatalk
Yeah, I know I have an odd setup. It's a holdover from previous years. This is my first attempt at syncing to music. My setup definitely makes this issue stand out since I have infrequent value changes. Any hiccup shows up in my show at least until the next pattern change and looks really bad since it's not just a weird color value for 50ms but rather a whole different pattern for however long that lasts.
I'll try a one sequence show and let you know, Jeff.
