Page 2 of 2 FirstFirst 12
Results 21 to 28 of 28

Thread: How Can i Load data from file.ecg and plot it ?

  1. #21
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How Can i Load data from file.ecg and plot it ?

    Quote Originally Posted by ahmed ali View Post
    Master of zen << thanks a lot for your advice, but when i asked for a video tutorial this is as i am a beginner in Qt and i thought that i have something wrong in my setting.
    Before you start learning how to run, first you have to learn how to stand on your feet.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    ahmed ali (22nd March 2012)

  3. #22
    Join Date
    Mar 2012
    Posts
    19
    Thanks
    15
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Windows Symbian S60

    Default Re: How Can i Load data from file.ecg and plot it ?

    ChrisW67 << again, thanks a lot for helping me finally i installed it correctly

    Master of zen << thanks a lot for your Precious Advices

  4. #23
    Join Date
    Mar 2012
    Posts
    19
    Thanks
    15
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Windows Symbian S60

    Default how to load file and plot it plot using Qwt

    Hello Everybody
    I have a file with extension of ECG (Demo.ecg) that is contain a ECG signals, but i have a problem to load this file and plot it using Qwt
    http://www.mediafire.com/?3ngo1nwxcbb6z9c
    can any one help me?
    thanks in advance

  5. #24
    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: how to load file and plot it plot using Qwt

    Why start a new thread for the same problem? Please attach the file to your post rather than leave it on on a third-party site.

    Now we know that the ECG file is not a text file this somewhat changes the solution you were attempting in the other thread. QTextStream is not the correct tool for the job: the input is not text. Do you know what the binary data layout is?

  6. The following user says thank you to ChrisW67 for this useful post:

    ahmed ali (27th March 2012)

  7. #25
    Join Date
    Mar 2012
    Posts
    19
    Thanks
    15
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Windows Symbian S60

    Default Re: how to load file and plot it using Qwt

    thanks a lot
    sorry for posting new thread about the same problem.

    what do you mean by "binary data layout"?
    if you mean the data of ecg file,
    yes, the binary data layout is (for example)

    -0.00300000000000000
    -0.00200000000000000
    -0.00100000000000000
    0
    0.00200000000000000
    0.00400000000000000
    0.00400000000000000
    0.00600000000000000
    0.00600000000000000
    0.00700000000000000
    0.00800000000000000
    0.00900000000000000
    0.0100000000000000
    0.0100000000000000
    0.00800000000000000
    0.00600000000000000
    0.00200000000000000
    -0.00100000000000000
    -0.00300000000000000
    -0.00300000000000000
    -0.00300000000000000
    -0.00100000000000000
    0.00100000000000000
    0.00400000000000000
    0.00500000000000000
    0.00400000000000000
    0.00200000000000000
    -0.00200000000000000
    -0.004000
    My problem is how to load these data from the file of extension of ECG and plot it
    can i convert this file format to txt format ? but using Qt?
    thanks in advance

  8. #26
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to load file and plot it using Qwt

    As far I could find *.ecg file is a binary file.
    If you have some documentation what is the format of the file (binary layout) then I can help you how to read those data and how to plot them with Qwt6.

  9. The following user says thank you to MarekR22 for this useful post:

    ahmed ali (27th March 2012)

  10. #27
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to load file and plot it using Qwt

    Quote Originally Posted by ahmed ali View Post
    My problem is how to load these data from the file of extension of ECG and plot it
    can i convert this file format to txt format ?
    You have to understand one thing. The extension of a file does not determine its contents. There may be several types of file using the same file extension. I have seen one file format for electrocardiography but that was indeed a textual format (as far as I read on their webpage) and what you provided is a binary file. Without reverse engineering the file it is not possible for us to determine the layout of the file and I'm sure nobody here is going to spend hours of their time analyzing your file. So please do your homework and find out (maybe from a person who gave you the file?) what the file really is and whether there are already existing libraries that can read this format and output numerical data such as those you have pasted in your post. Once you have those numbers, plotting them should be simple.
    Last edited by wysota; 27th March 2012 at 14:02.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #28
    Join Date
    Mar 2012
    Posts
    19
    Thanks
    15
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Windows Symbian S60

    Default Re: how to load file and plot it using Qwt

    Quote Originally Posted by MarekR22 View Post
    As far I could find *.ecg file is a binary file.
    If you have some documentation what is the format of the file (binary layout) then I can help you how to read those data and how to plot them with Qwt6.
    thanks in advance for your help i will try to find some documentation what is the format of the file (binary layout)

    master of zen <<< OK

Similar Threads

  1. Replies: 12
    Last Post: 31st October 2010, 17:08
  2. Load data from different ui
    By Xtresis in forum Newbie
    Replies: 2
    Last Post: 29th September 2010, 11:57
  3. Way to load all of data from 2 tables into one QTableView?
    By Kevin Hoang in forum Qt Programming
    Replies: 8
    Last Post: 3rd April 2010, 09:42
  4. Saving pure plot data to image file
    By Debilski in forum Qwt
    Replies: 4
    Last Post: 7th April 2009, 17:02
  5. Replies: 6
    Last Post: 26th March 2009, 05:45

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
  •  
Qt is a trademark of The Qt Company.