Menu

Tree [2fb2a3] master /
 History

HTTPS access


File Date Author Commit
 mdf_parser 2013-07-01 bowie2 bowie2 [adb2de] 0.0.7
 COPYING 2013-03-10 bowie2 bowie2 [512f61] Initial commit
 MANIFEST.in 2013-03-10 bowie2 bowie2 [512f61] Initial commit
 README.rst 2013-07-05 bowie2 bowie2 [2fb2a3] Corrected some problem with the pipy files.
 make_windows_installer.bat 2013-03-17 bowie2 bowie2 [2cb228] README with more information
 setup.py 2013-07-05 bowie2 bowie2 [2fb2a3] Corrected some problem with the pipy files.

Read Me

pyMdfParser

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.

Installation

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

Usage

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.

Notes

Note that the pyMdfParser package supports only MDF 3 at the moment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.