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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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:
Would be great if someone could bring ideas here ...
Regs
Marcus
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
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
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
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