How to create signal every microsecond?
-
wrote on 5 Oct 2022, 03:42 last edited by
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! -
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!@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
-
wrote on 5 Oct 2022, 07:19 last edited by
@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-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.
@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.
-
wrote on 5 Oct 2022, 07:44 last edited by
thank u very much! I'll try do it.
-
There is no timer in Qt which gives accuracy below 1 ms: https://doc.qt.io/qt-6/qt.html#TimerType-enum
1/6