I have the same scope (well, the 220, but close enough). I suspect the variation in the display is based on data levels being 'quantized' while zoomed out so far. Zooming in would likely clean up the photo.
That being said, per the 1990 spec it's permissible to have spacing (mark time) from 0 uS to 1 second between bytes of channel data and between complete packets.
Further, the mark time can also vary between 8 uS and 1 second between the break and the start code.
It's up to the designer to make sure that receiving gear functions as expected at all of those corner cases.
That scope shot basically shows when Windows/Vixen are transmiting data to the USB-DMX plugin. Data is not transmitted every 25 ms (as would be desired), but whenever the operating system feels like it. The transmissions over the USB probably take place so fast that there aren't any buffer overflows in the OS, but it means that you can't really rely on this system to create precise timing (at least not at the 25 ms level).
In fact, right now I have FlashChat running on this machine as well as a vixen sequence that is toggling all of the channels on a Renard64 on and off (25 ms interval), and I can see big pauses whenever there is a message going in/out over the Chat. None of this is unexpected, of course, but serves to emphasize the drawbacks of the PC for attempting to do anything with precise timing.
--
Phil
if you wanted a more consistant output from vixen, you could try upping the task priority under windows.
just set it to the next lvl above where it is, that should give it a higher priority than any other normal task.
see if it makes a difference.
Peter
scorpia wrote:if you wanted a more consistant output from vixen, you could try upping the task priority under windows.just set it to the next lvl above where it is, that should give it a higher priority than any other normal task.
see if it makes a difference.
Peter
It might help, but most OSes are limited in their realtime capabilities.
For example, if you read the man() page for the POSIX nanosleep() function (and pretty much any other sleep function on any non-RTOS), you'll see that such functions only guarantee that the function will sleep for a minimum of the specified time, without an maximum time guarantee.
Increasing process priority can help this, but when you're into the tens of milliseconds range, you have to deal with the fact that most OSes have internal timers that tick at a given rate, limiting the resolution of timers.
For example, Linux systems usually have a timer tick of 100, 300, or 1000 Hz. (Unless you're using a very recent "tickless" kernel with the HRTIMERs option) I think Windows has an internal timer that ticks in the 60-100 Hz range. I once had to write an an app that did timing-sensitive bitbanging over a parallel port under Linux. It would only work in one of two scenarios:
1) sleep() and similar functions were replaced with while() loops that checked a high-precision system timer (caused app to hog 100% CPU)
2) Kernel with the RT_PREEMPT patchset was installed, vastly improving the accuracy and consistency of nanosleep()
If you really want accurate timing, you have two options:
Move all timing-critical stuff to external hardware (FPGA or microcontroller) (I'm in the process of moving aforementioned app into an Atmel AVR uC)
Use an operating system with realtime capabilities, such as Linux with the RT_PREEMPT patchset (or possibly recent Linux kernels w/o the RT_PREEMPT patchset, as most of that patchset has been mainlined over the past few releases.)
