Replies: 11 comments 22 replies
-
the only restriction is that Mdf file should be created by TSMaster calibration module, then it can be replayed in TSMaster |
Beta Was this translation helpful? Give feedback.
-
You are welcome. The restriction is because this mdf file is exported by mat file, so it should follow mat file structure. Two years ago I planned to create a converter to make real mdf file but due to lack of time, this converter is not built. So I recommend two solutions: |
Beta Was this translation helpful? Give feedback.
-
Hi, real mdf file means TSMaster can export and import standard mdf files generated by other tools such as CANape and INCA. This feature is to be developed, it is not ready yet. In order to replay successfully in current version of TSMaster, you need to load a correct A2L database in calibration module, so as to generate all system variables as signals defined in your A2L file. Then you need to write a converter to convert your mdf file to mat file, I think it is easier, you can reference to source code "converter_mdf_mat.py", this code reads a mdf file and then creates a mat file. You can also reference to application note "TSMaster\bin\Help\Application Notes\AN0003\AN0003.pdf", this doc describes mat file format, but it is in Chinese, sorry for that. |
Beta Was this translation helpful? Give feedback.
-
@freshhope
and as i recall, you said that the data should be recorded using TSMaster! But i know for sure now that this mf4 and those previous mdf files that i said throw me an error, are recorded using CANAPE. although all of them can be played without any problem in asammdf gui.
i will try other ways to convert mdf/mf4 files directly to .mat files outside of TSMaster. I'll report the results when i have done it. |
Beta Was this translation helpful? Give feedback.
-
and one more thing that i've done to resolve the issue: i guess that means TSMaster uses different method or specific configuration to generate .mat files (because of difference in size) and it could be the main issue here? |
Beta Was this translation helpful? Give feedback.
-
apart from the issues i have about not being able to play back mdf/mf4 files of other softwares, i'm facing a new problem.
i run the code and replayed mf4 file. but, the output was always 0. i copied this piece of code right from TSMaster > simulation > system variables > right-click on variable > copy read code.
again, to make sure i'm understanding things correctly, i tried to actually write some data on the same variable and then read it:
surprisingly, the output is still 0! and checking system variables also confirms that the variable's value is not changed!
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
during replay, step function is useless there is no dark theme, i always use negativescreen software to make all things dark, so the software interface is completely white, that means after using this software, everthing is completely dark |
Beta Was this translation helpful? Give feedback.
-
now that i can read mf4 file data, i have another question. is it possible to play both blf (can) and mf4 together at the same time? i think i mentioned before, my goal in general is to have a integrated simulation environment. i'm looking for a way to play back recorded data and pass all the values to my code as the first step to have some sort of simulation. |
Beta Was this translation helpful? Give feedback.
-
replay together is possible, what you need to do is to set recording bus frames option here: |
Beta Was this translation helpful? Give feedback.
-
one more thing about mdf/mf4 files. when i'm using on_var_change function i can correctly read xcp variables. but the problem in this way, i have to have a function for each variable that i want to read. and my mf4 file actually has hundreds or maybe some thousands of variable.
|
Beta Was this translation helpful? Give feedback.
-
i'm trying to load and replay a mdf file (xcp) with tsmaster. i can load it without any problem (in Application>calibration manager> devices > measurements) but when i try to replay it, i get this error:
I also added a2l file under ECU > database, and added all the variables to "measurements list" to make sure i'm not missing anything (although i highly doubt this step is even relevant!). and the errors still persist. can you perhaps guide me through this? is there a doc or video that could help me with this?
note: I have already seen this video and it didn't help to overcome the issue. specially because i have another project with different mdf file and a2l that works without any problem.
any help?
TNX
Beta Was this translation helpful? Give feedback.
All reactions