ahmed ali (22nd March 2012)
ChrisW67 << again, thanks a lot for helping mefinally i installed it correctly
Master of zen << thanks a lot for your Precious Advices![]()
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
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?
ahmed ali (27th March 2012)
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
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.
ahmed ali (27th March 2012)
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.
Bookmarks