waveform display in browser

Jul 23, 2015 70 Replies

that doen't matter because browsers only get better, if you write good javascript that works today. it will still work in 10 years.

replacing 100 lines of well written javascript with 3000 lines is not likely to help long-term reliability.

umop apisdn

Those sections are talking about the color table. The index is still a maximum of 8 bits, because it's defined by the 3 bit value (which stores the exponent-1).

I thought that your original claim was that each pixel has 3 colours independent of any table, but I think I misinterpreted you and we've been talking past each other. Sorry about that.

I guess the only format I ever worked with in TIFF was the run-length encoduing used by faxes. I had forgotten there were other options for compression.

It's good to hear that SVG support is common enough to be useful.

The last time I needed to do data plots on web pages was something like 6-7 years ago, and SVG was a bit too bleeding edge at the time.

Grant

Blocking flash (with an optional white-list) is absolutely essential to making the 'web a useful place. Unless it's a site providing someting I desperately need, I usually just completely avoid web sites that require flash to get something done.

Grant

e

just serve up flot and poll the data from a json file

formatting link

-Lasse

finding the information is only part of the problem, YOU also need to understand it.

That pretty-much as I remember it from the early 90s.

hmm, seaction 19 and section 21. say something very similar to 3*2^N

  1. Table Based Image Data. "LZW Minimum Code Size" see appendix F for it's significgance starting at "ESTABLISH CODE SIZE" what it means is that the actual data is N-bit indices into the color table, because indices 2^N and above cannot be coded.

if that's too complicated, see this part ot the wikipedia page:

formatting link

umop apisdn

So this just sends the data and the web page itself generates the plot?

Rick

ate

yes, it read the data points etc. from a json file (just a text file in spe cific format) and generates the plot from that

-Lasse

yeah, you send a bunch of co-ordinates (typically ascii base-10 numbers) and it draws the lines, this is fairly wasteful of bandwidth, (compared to .WAV fromat) but that can be partially remidied using gzip compression at the server end, OTOH compression is probably not needed for this application.

umop apisdn

One of my guys threw this together pretty fast:

formatting link

It uses javascript to generate a sine wave and pushes SVG into the browser to plot it. Seems fine under Firefox. It's only 250 points and looks pretty good.

It doesn't look hard to have my tachometer box digitize waveforms (AD7276 maybe) and display in the browser, without loading any apps or anything.

John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com

Nice. I'll have to toss that into my EM simulator at some point.

Cheers

Phil Hobbs

Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required