PDA

View Full Version : Using QT to plot real time graphs via interface with PIC18f4550 microcontroller



JackSparrow
29th May 2013, 18:33
Hi,

Im completely new to this software!

Im using the PIC18f microcontroller to get real time data into the computer via USB.
How do I interface USB with the Qt software?!
And how can I plot graphs of real- time data coming in?
The frequency of the data coming in can be quite high!

Thank you for any replies! :)

west
29th May 2013, 19:04
Hi,
I have never used these libraries and maybe I'm wrong, but probably you are looking for this:
- Qwt,
- QtSerialPort.

ChrisW67
29th May 2013, 21:57
Im using the PIC18f microcontroller to get real time data into the computer via USB.
How do I interface USB with the Qt software?

That depends on how you are using USB. If the device appears to your host as a virtual port you could use QtSerialPort. If you need raw access to the USB then you would need a third party library or raw operating system API code to access it. Libusb would be a common choice.


And how can I plot graphs of real- time data coming in?
Take a look at Qwt.


The frequency of the data coming in can be quite high!
There is a difference between how fast data might arrive and how fast a GUI display needs to be updated. If there is a wide difference then you will need to consider buffering data until there is sufficient to warrant a display update etc.