Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How fast program will do it this operations?

How fast program will do it this operations?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 551 Views 1 Watching
  • 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.
  • E Offline
    E Offline
    erytcg
    wrote on last edited by
    #1

    In my project I would like in every 1 milisecond do this operations:
    3x for 3 deivces(

    • send via serialport 6bytes
    • read via serialport 33bytes
    • add read data to 2 vectors
    • clear data string
    • add to variables via QString.mid parts of data
    • 4x converting from hex string to float
    • get currentTime();
    • add 3x points to CustomPlot
    • add data to other Qvectors
    • and clear datavectors optional conversion 3x variable via QScriptEngine.evaluate()
      )
      it is possible? My program sometimes slows down. I5 processor 16GB RAM.
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do I get right that you want, among other things, to update your GUI at 1kHz ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • E Offline
        E Offline
        erytcg
        wrote on last edited by erytcg
        #3

        I want real time graph:D But you have right it's no sense

        Maybe 30fps for graph is good.
        How is best and fast way to find highest value from QVector?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I'd go with std::max_element.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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