Results 1 to 5 of 5

Thread: How to read two sensors connected serialy in Qt and Plot iy in two graph ?

  1. #1
    Join Date
    Jan 2017
    Posts
    13
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Android

    Default How to read two sensors connected serialy in Qt and Plot iy in two graph ?

    I am designing a Patient monitoring system Gui in Qt . i have complete c code for processing two sensor output values and i designed a GUI for plotting two graphs in a window .i tested c code running from qt and worked .

    Two sensors are connected serially and trying to read each ports and plotting . I completed reading one sensor at a time and plotted it in my Gui by calling c program from qt using Q Process and it worked . i wrote two widgets for two sensors and trying to plot it as two graphs at same time , but is not reading . My friend suggested to Use QThread for reading two serial port at a time .

    i want to read two sensor reading at a time and plot with respect to time ... Anyone please help me ... or give suggestion to use any method's for reading two serial port at a time ...

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to read two sensors connected serialy in Qt and Plot iy in two graph ?

    How to read these sensors. Whether it is in response to the question whether the sensor sends a continuous stream of data?

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to read two sensors connected serialy in Qt and Plot iy in two graph ?

    If you are running two programs via QProcess you shouldn't need threads.

    You are using QProcess asyncrhonously, right?

    Cheers,
    _

  4. #4
    Join Date
    Jan 2017
    Posts
    13
    Thanks
    4
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Android

    Default Re: How to read two sensors connected serialy in Qt and Plot iy in two graph ?

    Thanks for quick reply...
    @Lesiok and @ anda_skoa ,yes , sensors sending continues data's.. in a specific baud rate ... Qprocess containing serial port reading and processing of two continues data's from two serial port ,only single Qprocess is using and it contai; processing of each datas.. .. but in my window gui , i designed two widgets and promoted each to two sensor output values . output from Qprocess reading in qt and plotting , but reading two serial port at a time is not occurring

  5. #5
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to read two sensors connected serialy in Qt and Plot iy in two graph ?

    You need to show some code. In particular, how to start and operate these processes.

Similar Threads

  1. Plot a graph without Qwt
    By abghosh in forum Qwt
    Replies: 2
    Last Post: 17th August 2010, 11:33
  2. how to plot graph using qwt ?
    By sunitverma04 in forum Newbie
    Replies: 2
    Last Post: 13th April 2010, 14:50
  3. how to plot graph using qwt ?
    By sunitverma04 in forum Qwt
    Replies: 1
    Last Post: 2nd April 2010, 12:27
  4. how to plot scatter graph?
    By rambo83 in forum Qwt
    Replies: 0
    Last Post: 25th February 2010, 13:24
  5. How to plot a graph in Qt ?
    By vinod in forum Qt Programming
    Replies: 2
    Last Post: 27th April 2006, 14:44

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.