Results 1 to 9 of 9

Thread: Qwt real time plotting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Qwt real time plotting

    Check the oscilloscope example - it might be pretty close to your requirements ( or the realtime example what also shows how to plot a curve incrementally - but has nothing to do with "realtime" ).

    The oscilloscope example shows an implementation how to plot incrementally without having to replot the complete scene for each new sample. Such an implementation is very, very fast - but you can't implement every type of plot this way. F.e. a plot like the cpuplot example - where the scales are shifted continuously - needs a replot for every point.

    If you want to have an idea what refresh rate is possible for full replots on your box try the refreshtest example and play with its options. There is no good reason why your application would have worse results - beside what you do in your code.

    Note that the version in SVN trunk re-introduces several optimizations that were removed in Qwt 6 + it offers a way to render to an OpenGL canvas.

    Uwe


    Added after 6 minutes:


    Quote Originally Posted by sonulohani View Post
    Ok, use signal and slot to do this. First, take the value that is coming and plot it and then wait for other data to come.
    Maybe use an extra thread for collecting the samples. For high sample rates better decouple the sample and refresh rate - like it is done in the oscilloscope example.

    Uwe
    Last edited by Uwe; 27th June 2012 at 14:39.

  2. The following user says thank you to Uwe for this useful post:

    santoshpradeep (28th June 2012)

Similar Threads

  1. Real time data plotting using Qwt
    By nagabathula in forum Qwt
    Replies: 8
    Last Post: 7th July 2011, 17:47
  2. Replies: 2
    Last Post: 24th June 2011, 06:31
  3. Replies: 1
    Last Post: 3rd December 2009, 15:23
  4. real time plotting
    By agostain in forum Qwt
    Replies: 0
    Last Post: 10th August 2009, 11:47
  5. real time plotting
    By gyre in forum Qwt
    Replies: 4
    Last Post: 11th December 2007, 17:13

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.