Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Real time plotting of data
Forum Updated to NodeBB v4.3 + New Features

Real time plotting of data

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 496 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    drd1988on
    wrote on last edited by
    #1

    Hi

    I wants to plot real time data in a chart using QT and QML.
    Data will be coming from hardware in every 180 millisecond.
    How can I plot such data?
    Can we use QChart?

    Regards
    Divya

    B 1 Reply Last reply
    0
    • D drd1988on

      Hi

      I wants to plot real time data in a chart using QT and QML.
      Data will be coming from hardware in every 180 millisecond.
      How can I plot such data?
      Can we use QChart?

      Regards
      Divya

      B Offline
      B Offline
      Bob64
      wrote on last edited by
      #2

      @drd1988on It is possible to use QML charts to display dynamically updating plots. The Oscilloscope example that comes with Qt shows how to do this.

      The rate at which data becomes available from your hardware presumably does not need to be precisely matched by the chart refresh rate? What I mean is that you could buffer the data and update the chart less frequently if it turns out to be necessary.

      D 1 Reply Last reply
      0
      • B Bob64

        @drd1988on It is possible to use QML charts to display dynamically updating plots. The Oscilloscope example that comes with Qt shows how to do this.

        The rate at which data becomes available from your hardware presumably does not need to be precisely matched by the chart refresh rate? What I mean is that you could buffer the data and update the chart less frequently if it turns out to be necessary.

        D Offline
        D Offline
        drd1988on
        wrote on last edited by
        #3

        @Bob64 hi in my project it is showing data from a medical device so accuracy is important how will i achieve this

        B 1 Reply Last reply
        0
        • D drd1988on

          @Bob64 hi in my project it is showing data from a medical device so accuracy is important how will i achieve this

          B Offline
          B Offline
          Bob64
          wrote on last edited by
          #4

          @drd1988on Hi - it depends on what you mean by accuracy and what work your GUI needs to do. If the focus is on just updating the chart, and the data can be provided to the UI efficiently and in a form that does not require much further processing, I imagine it will be possible to keep up with data coming in at 180ms intervals. However, is it really important to update the chart immediately on each data point? Would it be unacceptable if you refreshed your chart at 500ms intervals say, so that you were updating every 2 or 3 data points?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved