John,
Thanks for posting your scrolling graph code. Its a good example of what LW CVI
is capable of when a little ingenuity is applied. I noticed two minor problems
which the attached version fixes: 1) At fast update rates (e.g. sample period
of 1 ms.) the graph would flicker while scrolling and 2) the size of the graph
would get out-of-kilter when adding X-axis labels longer than six characters
long. This latter phenomenon appears to be either a bug or an undocumented
restriction in the graph library.
Off the top of my head, I can think of a number of additions that would make
this example more useful for "data exploration" R&D applications:
* The scrolling graph performance was good on my 500 MHz K6, 128MRAM PC but
slows down after
a few thousand points. Letting the user limit the no. of
points in the "sliding window" of interest to a reasonable value would help.
* Multiple traces with run-time label/line-style assignment.
* Oscilloscope-style offset and gain adjustments for each trace as well as a
virtual "DC coupling" option for each one.
* Snapshot option for saving graph images to disk, exporting to word/excel
or printing hardcopy.
* "Math functions" for doing data-smoothing, derivatives, statistics etc. on
the data like many O-scopes now support.
* Graph cursors for measuring offsets between signals, peak-to-peak volts etc.
* Annotation feature for letting the user add labels/notes anywhere on the
graph.
I'd be happy to tackle some of these items if you or anybody else is
interested in a collaborative effort.
Best Regards,
Nick
"John Sch." wrote in message
news:5065000000050000002E800000-1023576873000@exchange.ni.com...
> Attached is my demo. This demo is a graph that scrolls lik
e a strip
> chart. I would like any comments or questions.
[Attachment GraphDemo2.zip, see below]