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 to create signal every microsecond?
Forum Updated to NodeBB v4.3 + New Features

How to create signal every microsecond?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 408 Views 2 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.
  • B Offline
    B Offline
    banhmisua
    wrote on 5 Oct 2022, 03:42 last edited by
    #1

    hi, everyone.
    I have a GUI application require high speed. Every microsecond i receive 1 data. So I need create signal every microsecond to connect slot(receive data).
    I'm a newbie. if u have example code, it help me a lot.
    Thank a lot!

    J 1 Reply Last reply 5 Oct 2022, 05:26
    0
    • B banhmisua
      5 Oct 2022, 03:42

      hi, everyone.
      I have a GUI application require high speed. Every microsecond i receive 1 data. So I need create signal every microsecond to connect slot(receive data).
      I'm a newbie. if u have example code, it help me a lot.
      Thank a lot!

      J Online
      J Online
      J.Hilk
      Moderators
      wrote on 5 Oct 2022, 05:26 last edited by
      #2

      @banhmisua said in How to create signal every microsecond?:

      I have a GUI application require high speed. Every microsecond i receive 1 data

      I highly doubt that, there is no displaying device with a 1.000.000 Hz refresh rate and neither can you or your eyes actually see/process that


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3
      • B Offline
        B Offline
        banhmisua
        wrote on 5 Oct 2022, 07:19 last edited by
        #3

        @J-Hilk i use project about DE1-SoC FPGA, plot sin wave with period some Mhz ( by use NCO, Qsys) in QT GUI. So i need signal microsecond fast enough to capture data.

        J 1 Reply Last reply 5 Oct 2022, 07:26
        0
        • B banhmisua
          5 Oct 2022, 07:19

          @J-Hilk i use project about DE1-SoC FPGA, plot sin wave with period some Mhz ( by use NCO, Qsys) in QT GUI. So i need signal microsecond fast enough to capture data.

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 5 Oct 2022, 07:26 last edited by
          #4

          @banhmisua said in How to create signal every microsecond?:

          i use project about DE1-SoC FPGA, plot sin wave with period some Mhz ( by use NCO, Qsys) in QT GUI. So i need signal microsecond fast enough to capture data.

          A CPU cannot capture data that quickly.

          You will need to do some hardware buffering and read the data in "blocks": For example, using a DMA FIFO, make your FPGA capture and store the data and then make your CPU read a block 100000 data points every 100ms.

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

          1 Reply Last reply
          5
          • B Offline
            B Offline
            banhmisua
            wrote on 5 Oct 2022, 07:44 last edited by
            #5

            thank u very much! I'll try do it.

            1 Reply Last reply
            1
            • S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 5 Oct 2022, 08:25 last edited by
              #6

              There is no timer in Qt which gives accuracy below 1 ms: https://doc.qt.io/qt-6/qt.html#TimerType-enum

              (Z(:^

              1 Reply Last reply
              2

              1/6

              5 Oct 2022, 03:42

              • Login

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