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
Qt 6.11 is out! See what's new in the release blog

Real time external signal plot in QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 431 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.
  • WaseeW Offline
    WaseeW Offline
    Wasee
    wrote on 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

    jsulmJ 1 Reply Last reply
    0
    • WaseeW Wasee

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

      thanks

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • WaseeW Offline
        WaseeW Offline
        Wasee
        wrote on 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

        • Login

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