Real time external signal plot in QT
-
wrote on 24 Feb 2022, 12:03 last edited by
Hi everyone;
I need to plot external signal in QT how it is possible. Like I want to plot Radio Frequency in QT ?thanks
-
Hi everyone;
I need to plot external signal in QT how it is possible. Like I want to plot Radio Frequency in QT ?thanks
-
wrote on 25 Feb 2022, 05:40 last edited by
@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/3