Skip to main content

Parser for MDF files

Project description

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.

Project details


Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page