pyMdfParser Code
Parser for measurement data in mdf format
Status: Pre-Alpha
Brought to you by:
bowie2
| File | Date | Author | Commit |
|---|---|---|---|
| mdf_parser | 2013-07-01 |
|
[adb2de] 0.0.7 |
| COPYING | 2013-03-10 |
|
[512f61] Initial commit |
| MANIFEST.in | 2013-03-10 |
|
[512f61] Initial commit |
| README.rst | 2013-07-05 |
|
[2fb2a3] Corrected some problem with the pipy files. |
| make_windows_installer.bat | 2013-03-17 |
|
[2cb228] README with more information |
| setup.py | 2013-07-05 |
|
[2fb2a3] Corrected some problem with the pipy files. |
This package provides a parser for reading MDF files in Python
The source code for this package lives at:
https://sourceforge.net/p/pymdfparser/code/
Please report any bugs or feature requests via the issue tracker there.
This package is registered with the Python package index, so you can do:
$ easy_install pyMdfParser
... or download from https://sourceforge.net/projects/pymdfparser/files install in the usual way:
Windows: use the Windows installer file pyMdfParser-x.y.z.win32.exe
Installation of the pyMdfParser-x.y.z.zip file via
$ python setup.py install
If you want the bleeding edge, clone the source code repository:
$ git clone ssh://bowie2@git.code.sf.net/p/pymdfparser/code pymdfparser-code
The mdf_parser package contains the class MDFParser class with is the base for all mdf related operations.
You can use the MDFParser class to read mdf data as follows:
import matplotlib.pyplot as plt
from mdf_parser import MDFParser
from mdf_blocks import CNBlock
mdf=MDFParser('CANape.MDF')
signal_list=mdf.get_signallist()
#get data for one signal
signal1=obj.get(signal_list[1])
#get data for all signals
signals=obj.get(signal_list)
For a complete account of all of the functionality available from this package, see the documentation.
Note that the pyMdfParser package supports only MDF 3 at the moment.