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. Faster than a millisecond

Faster than a millisecond

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 911 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.
  • S Offline
    S Offline
    sharkattack28
    wrote on last edited by
    #1

    How can have a loop faster than a millisecond? I need to read serial data that arrives every 1 millisec.. i want to loop faster than that so i can check the buffer for data. readyRead(), does not work fast enough and i get messages combined. if anyone has an idea let me know.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      code_fodder
      wrote on last edited by
      #2

      The usual practice is to service the readyRead() and split the data up as required. Can you not do this for some reason?

      Running a timer faster the 1 ms is going to be problematic on a non-real time system (i.e. a windows PC). There is a way (I think) to access a high definition timer, but I would split the data manually and use readyRead().

      You can still process each "block" one after the other if ordering is an issue. What is your use-case?

      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