RE: Exporting data from Sleephead
Signal Plant is another program for reading EDF files.
signalplant.codeplex.com
Its open source (requires registration) also free.
RE: Exporting data from Sleephead
(01-07-2016, 03:14 PM)AlanE Wrote: If the files are of the EDF exntension you can try a script written in Python that supposedly pulls the data out. github.com/rays/pyedf I have not tested it but I might now that I found it. You can read more on the EDF file format here: edfplus.info/specs/index.html
I think ResMed data is in EDF format, and Philips Respironics is a different format, but you might want to double check. I don't know if Respironics data format has any similarities to EDF, or if ResMed format is standards compliant or somewhat proprietary.
Get the free OSCAR CPAP software here.
Useful links.
Click here for information on the main alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check it yourself.
01-08-2016, 01:25 PM
(This post was last modified: 01-08-2016, 03:23 PM by wolson.)
RE: Exporting data from Sleephead
(01-07-2016, 10:19 PM)archangle Wrote: (01-07-2016, 03:14 PM)AlanE Wrote: If the files are of the EDF exntension you can try a script written in Python that supposedly pulls the data out. github.com/rays/pyedf I have not tested it but I might now that I found it. You can read more on the EDF file format here: edfplus.info/specs/index.html
I think ResMed data is in EDF format, and Philips Respironics is a different format, but you might want to double check. I don't know if Respironics data format has any similarities to EDF, or if ResMed format is standards compliant or somewhat proprietary.
i am using a Philips Respironics System One Series 60 .... I have tried all of the known and readable standard formats using Mathematica without avail. i believe Mathematica has the most complete list of formats that can be read (EDF was one of them.) Apparently, PR is using a User Defined Format which I haven't decoded yet. I haven't yet dug through Sleephead's *.dll's but the answer is probably there (... a hint of which one would be appreciated.) It doesn't look like there is a shortcut other than, "UGH", hard work. I know I am reinventing the wheel here...
QUICK UPDATE: found the PRS1 loader files in the source libraries and am working through them./WWO/
Walter W. Olson, Ph.D., P.E.
Mechanical Engineering
Professor Emeritus, Professional Engineer
RE: Exporting data from Sleephead
Walter, if you have a strong programming interest and think you may be able to help with Sleepyhead development, send a PM request to SuperSleeper highlighting your interest and experience, and request admission to the private software development group that works directly with Mark Watkins, and where the biggest collaboration of programming, troubleshooting and user input exists. Once there, you'll have better luck getting these details and actually feeding your contribution into development. I'm sure that if Mark shares the code with you for development purposes, you'll need to agree to some terms of use.
Sounds like you would be a very good addition to the group, but the decision is made through SuperSleeper and Mark.
RE: Exporting data from Sleephead
(01-08-2016, 01:45 PM)Sleeprider Wrote: Walter, if you have a strong programming interest and think you may be able to help with Sleepyhead development, send a PM request to SuperSleeper highlighting your interest and experience, and request admission to the private software development group that works directly with Mark Watkins, and where the biggest collaboration of programming, troubleshooting and user input exists. Once there, you'll have better luck getting these details and actually feeding your contribution into development. I'm sure that if Mark shares the code with you for development purposes, you'll need to agree to some terms of use.
Sounds like you would be a very good addition to the group, but the decision is made through SuperSleeper and Mark.
Thank you, I will do that in the near future.
Walt
Walter W. Olson, Ph.D., P.E.
Mechanical Engineering
Professor Emeritus, Professional Engineer
01-09-2016, 02:41 PM
(This post was last modified: 01-09-2016, 02:49 PM by wolson.)
RE: Exporting data from Sleephead
SUCCESS!!!
http://sourceforge.net/p/sleepyhead/code...Format.odt
Apparently, this document found in the source code for SleepyHead is exactly what I need. I haven't tried it on a file yet but it sure looks like the answer!
Thank you, Mark, for writing it and posting it!
Now I have a bit of programming to do!
Walt
Walter W. Olson, Ph.D., P.E.
Mechanical Engineering
Professor Emeritus, Professional Engineer
01-12-2016, 03:22 PM
(This post was last modified: 01-12-2016, 03:23 PM by wolson.)
RE: Exporting data from Sleephead
An update: I successfully downloaded and extracted my flow data from the SD Card for a PRS1 Series 60. The file by JediMark above was a great help.
You need to be careful, though: he mixes hexadecimal and decimal numbers at times:
the datasize in decimal is = BlockLength - 24 - 3*nsig.
Everything I wanted was in the session.005 file. The block headers are a JediMark described but you need to reverse the byte orders for 16 bit and 32 bit entries. The actual flow data is stored as Signed Integer 8. If you read the data in as Unsigned Integer 8 (as I did to parse out the header) you need to perform a 2's complement to get the actual values. My data was not interleaved so extracting it was very easy, once I understood the format.
Now that I have the data, I still need to do the analysis.
Walt
Walter W. Olson, Ph.D., P.E.
Mechanical Engineering
Professor Emeritus, Professional Engineer
RE: Exporting data from Sleephead
Nice job. and I understood everything you wrote. scary...
RE: Exporting data from Sleephead
Perhaps we can make you into a programmer yet, Alan.
How did you do with Lemmings?
RE: Exporting data from Sleephead
(01-13-2016, 12:21 AM)pholynyk Wrote: How did you do with Lemmings?
You just push one off the cliff and sit back, watch the show.
|