Results 1 to 3 of 3

Thread: Realtime Graph on embedded system - performance problems

  1. #1
    Join Date
    Apr 2013
    Posts
    2
    Qt products
    Qt4 Qt5

    Default Realtime Graph on embedded system - performance problems

    I'm wondering what I can do to fix my problems... I will be reading data from a sensor and plotting the x/y points in realtime... I am using QWT to do this and it works fine on my development computer. The board I am developing for is the TS4700, and when I run my software on this board the performance is bad for the graph. It seems that any animation overloads the CPU? I'm not sure if this is a coding issue or something else... As long as the animation isnt visible (looking at a different tab or something) everything seems to work fine, if I show the animation, it loads up the CPU and I lose control of my mouse. If I set a timer to stop the plotting after X seconds I will regain control when it stops...

    It seems just any animation kills the CPU - any ideas?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Realtime Graph on embedded system - performance problems

    Obviously you try to draw a curve with many points too often. The first thing you ( and everyone writing a similar application ) should do is to decouple sample and refresh rate using a timer.

    How to improve the performance of a replot is a different story, that heavily depends on the specific details of your plot. F.e the oscilloscope example shows a tricky implementation that is able to update a curve with many, many points with almost no CPU load - try it on your board.

    Uwe

  3. #3
    Join Date
    Apr 2013
    Posts
    2
    Qt products
    Qt4 Qt5

    Default Re: Realtime Graph on embedded system - performance problems

    Thank you I will look into that example and implement your suggestion. Also to note is that I'm using qwt 5.2.1 and not 6.0.2... The example you suggest looking at isnt available in 5.2.1. Are the methods implemented still applicable with the new functions being used from 6.0.2 (or whichever version of qwt that the example comes with)?

    Again, thank you for the response and for being so quick with it. I am going to try and change this and check out the oscilloscope as well.

Similar Threads

  1. Replies: 9
    Last Post: 5th September 2012, 16:05
  2. Performance problems playing video with Phonon and GStreamer on QT Embedded.
    By MarcosRodriguez in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 13:57
  3. Qt Embedded Run time performance
    By nrabara in forum Qt Programming
    Replies: 2
    Last Post: 8th October 2009, 15:36
  4. Replies: 6
    Last Post: 5th March 2009, 06:26
  5. Graph display in QT/Embedded
    By hvreddy1110 in forum Newbie
    Replies: 1
    Last Post: 22nd September 2006, 19:02

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.