Results 1 to 4 of 4

Thread: Qwt real time

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt real time

    Or every time you add new point manually set scale div using setInterval():
    Qt Code:
    1. plot->axisScaleDiv( QwtPlot::xBottom )->setInterval( new_point_time - visible_time_span, new_point_time );
    To copy to clipboard, switch view to plain text mode 

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

    oddytz1989 (10th February 2012)

  3. #2
    Join Date
    Jan 2012
    Posts
    23
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt real time

    Thanks. Made so:

    Qt Code:
    1. if ((vectX1.size()) < 10)
    2. {
    3. vectX1.append(time1.fromTime_t(osX).toTime_t());
    4. vectY1.append(osY);
    5. curv1->setSamples(vectX1,vectY1);
    6. }
    7. else
    8. {
    9.  
    10. vectX1.pop_front();
    11. vectY1.pop_front();
    12. vectX1.append(time1.fromTime_t(osX).toTime_t());
    13. vectY1.append(osY);
    14. curv1->setSamples(vectX1,vectY1);
    15.  
    16. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by oddytz1989; 10th February 2012 at 10:13.

Similar Threads

  1. Zoom in real time
    By oddytz1989 in forum Qwt
    Replies: 4
    Last Post: 7th February 2012, 05:00
  2. Real time QT application?
    By marc2050 in forum Newbie
    Replies: 1
    Last Post: 8th June 2011, 06:08
  3. Real time rendering
    By kaszewczyk in forum Newbie
    Replies: 1
    Last Post: 7th July 2010, 17:26
  4. real time plotting
    By agostain in forum Qwt
    Replies: 0
    Last Post: 10th August 2009, 10:47
  5. real time plotting
    By gyre in forum Qwt
    Replies: 4
    Last Post: 11th December 2007, 16:13

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.