Menu

pyMdfParser Features

bowie
2013-03-22
2013-06-28
  • bowie

    bowie - 2013-03-22

    Hello together,

    I want to try to find out which feaures for such a parser would be required beyond the pure reading and writing.

    Some I would expect:

    • interpolation of the signals to one time channel with a minimum of loss of information
    • adding new signals to a existing file
    • ...

    Would be great if someone could bring ideas here ...

    Regs

    Marcus

     
  • TQA

    TQA - 2013-06-08

    Hello Marcus,

    I have downloaded the latest version of your mdfParser and try to use it integrated in a Tkinter GUI in python I am currently developing. Unfortunately, trying to use it for this purpose some problems occured so far. Maybe this is not what this discussion is supposed to be for but I would greatly appreciate if you could help me bit with my questions please.

    So the problem is that some data channels from me mdf file are not read properly. The physical data values are set to a maximum of 255 when I try to print or calculate with the list of values the mdfParser has read. What could be the reason for this failure? There is so far no linear factor on my values but they are clinched in a kind of arbitrary way.

    I get the data by typing:

    import mdf_parser.mdf_parser as mdf

    obj= mdf.MDFParser(myPath)
    signal_list = obj.get_signallist()
    data = obj.get(signal_list[sig]).data

    "sig" is an integer value depending on which data channel I want to choose. Is there a failure in my code? Is there another way to read the data properly?

    My second question concerns the comment channel of the mdf file. Is it possible to read the comments with your parser? I did not manage to do this yet. How should I do or is it one of the topics which still has to be developed in your parser?

    I hope you can help me a bit with this. Thank you in advance!

    BR,
    Robert

     
  • bowie

    bowie - 2013-06-22

    Hello Robert,

    sorry for the late reply but my laptop was out of order for 2 weeks
    can you provide me with the file as I do have only a limited amount of test data and therefore could not check each and every case.

    Regarding the comment:
    There is already a method called get_info.
    It returns an object of Type Info (more or less a struct) with contains the follow fields:

    date
    time
    authors_name
    department
    project
    object
    comment

    Usage:
    info=obj.get_info()

    Please check if that is enough or if you have further requirements.

    Regs Marcus

     

    Last edit: bowie 2013-06-22
  • TQA

    TQA - 2013-06-28

    Hello Marcus,

    thanks for your reply. I checked the advise that you sent to me but unfortunately this is not exactly what I was looking for.
    With comments I mean an extra channel in the mdf-file where you can find a string corresponding to each time and data point as comment for the current measurement situation.
    The get_info. method just offers the general information for the mdf-file.
    Normally I would really like to send you a file that those things could be clarified but I am not any more responsible for the project that works with your mdf-Parser.
    Maybe the person who no takes care on it will contact you in the next time.

    Regards,
    Robert

     
    • bowie

      bowie - 2013-06-28

      Hello Robert,

      I would be very interested in that as I do not know exaclty what is meant.

      Would it be possible to get the measurement file?

      Regs

      Marcus

       

Log in to post a comment.

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.