Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Real Time Applications in Qt

Real Time Applications in Qt

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 4 Posters 9.6k 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
    shammy
    wrote on 2 Oct 2012, 03:13 last edited by
    #1

    Hello

    I have developed some GUI applications using Qt. But I never worked on advance applications like multithreading and real time applications. So for my reference I need some examples in multithreading and real time. Can I refer Scribble and gtalk application as real time applications?. These are already in Qt Examples. I am not sure which examples I can refer for getting some basic idea.
    Please help give.

    Thanks in advance

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JKSH
      Moderators
      wrote on 2 Oct 2012, 11:23 last edited by
      #2

      Do you want "real time" or "high performance"? People often use them interchangeably, but there are important differences (http://en.wikipedia.org/wiki/Real-time_computing#Real-time_and_high-performance )

      Anyway, all applications need to produce correct output, but real time applications also need to produce the output within certain deadlines. So yes, we can consider GTalk, Scribble as real-time apps -- GTalk needs to deliver messages within a few seconds or less; Scribble needs to keep up with my mouse clicks. Another example is audio/video streaming. These are soft real-time programs though, since it's not serious if they miss deadlines sometimes. (If a hard real-time program misses a deadline, it's catastrophic -- e.g. software inside a pacemaker)

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JKSH
        Moderators
        wrote on 2 Oct 2012, 11:34 last edited by
        #3

        Very simply, multithreading is just splitting up computation between different CPU cores. It's usually done to improve performance; people usually don't care if a program is single-threaded or multi-threaded or not, unless multi-threading affects the program's performance.

        Any single-threaded program can be made multi-threaded, even a "Hello World" program.

        A simple but incomplete example can be found at http://qt-project.org/forums/viewthread/20691/

        A useful example is at http://blog.qt.digia.com/2010/05/18/qtmultimedia-in-action-a-spectrum-analyser/ -- Analysing audio data takes a long time, so the programmer put that function in a different thread. Otherwise, the GUI might hang while the program is processing data.

        Warning: Qt's official documentation on QThreads are currently outdated. Don't follow them until they're updated

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LS-KS
          wrote on 24 May 2024, 06:39 last edited by
          #4

          @JKSH I need to write my own DAQ Software that acquires data from COM-Port and sets some digital outputs also over COM.
          Is there a way in Qt Framework to bind a cpu core to a Thread to mimic PLC behavior?
          I know that Beckhoff uses consumer cpus as soft PLC's.
          Thanks in advance!

          J 1 Reply Last reply 24 May 2024, 07:15
          0
          • L LS-KS
            24 May 2024, 06:39

            @JKSH I need to write my own DAQ Software that acquires data from COM-Port and sets some digital outputs also over COM.
            Is there a way in Qt Framework to bind a cpu core to a Thread to mimic PLC behavior?
            I know that Beckhoff uses consumer cpus as soft PLC's.
            Thanks in advance!

            J Online
            J Online
            jsulm
            Lifetime Qt Champion
            wrote on 24 May 2024, 07:15 last edited by
            #5

            @LS-KS said in Real Time Applications in Qt:

            Is there a way in Qt Framework to bind a cpu core to a Thread

            I don't think there is. You will have to use system calls to do this.

            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