Results 1 to 3 of 3

Thread: Using QT to plot real time graphs via interface with PIC18f4550 microcontroller

  1. #1
    Join Date
    May 2013
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Windows Android

    Default Using QT to plot real time graphs via interface with PIC18f4550 microcontroller

    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!

  2. #2
    Join Date
    Feb 2012
    Location
    Warsaw, Poland
    Posts
    37
    Thanks
    3
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Using QT to plot real time graphs via interface with PIC18f4550 microcontroller

    Hi,
    I have never used these libraries and maybe I'm wrong, but probably you are looking for this:
    - Qwt,
    - QtSerialPort.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Using QT to plot real time graphs via interface with PIC18f4550 microcontroller

    Quote Originally Posted by JackSparrow View Post
    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.

Similar Threads

  1. Replies: 3
    Last Post: 12th April 2013, 06:18
  2. How to plot real time x/y graph in Qtopia
    By desperado_43 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 18th May 2012, 08:00
  3. Replies: 5
    Last Post: 17th June 2011, 12:12
  4. real time graph plot
    By robotics in forum Qt Programming
    Replies: 5
    Last Post: 24th May 2011, 05:04
  5. QFileSystemWatcher with a Qwt Real-time plot
    By gen_mass in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2010, 21:28

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.