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. Real time external signal plot in QT
Forum Updated to NodeBB v4.3 + New Features

Real time external signal plot in QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 312 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.
  • W Offline
    W Offline
    Wasee
    wrote on 24 Feb 2022, 12:03 last edited by
    #1

    Hi everyone;
    I need to plot external signal in QT how it is possible. Like I want to plot Radio Frequency in QT ?

    thanks

    J 1 Reply Last reply 24 Feb 2022, 12:16
    0
    • W Wasee
      24 Feb 2022, 12:03

      Hi everyone;
      I need to plot external signal in QT how it is possible. Like I want to plot Radio Frequency in QT ?

      thanks

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Feb 2022, 12:16 last edited by
      #2

      @Wasee https://doc.qt.io/qt-5/qtcharts-index.html
      https://www.qcustomplot.com/

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • W Offline
        W Offline
        Wasee
        wrote on 25 Feb 2022, 05:40 last edited by
        #3

        @jsulm Hi;
        Thanks Your valuable Response!
        How is the best way to plot a complex number into qCustomPLot?

        I have a complex number like this:

        int main()
        {
            const Complex test[] = { 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0 };
            CArray data(test, 8);
          
            // forward fft
            fft(data);
          
            std::cout << "fft" << std::endl;
            for (int i = 0; i < 8; ++i)
            {
                std::cout << data[i] << std::endl;
            }
          
            return 0;
        }
        

        My output is:

        fft
        (4,0)
        (1,-2.41421)
        (0,0)
        (1,-0.414214)
        (0,0)
        (1,0.414214)
        (0,0)
        (1,2.41421)

        The problem is: the output is not a simple vector. I want to plot just the real part of the complex number as Y-axis.
        Thanks

        1 Reply Last reply
        0

        1/3

        24 Feb 2022, 12:03

        • Login

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