Replies: 2 comments 4 replies
-
|
Hi FloSchick, Yes you can. Here is a code snippet that should help you understand: from pathlib import Path
from asammdf import MDF
path = Path("my_file.mf4")
mdf = MDF(path)
# to get a list of ChannelGroup block source
cg_sources = [
group.channel_group.acq_source
for group in mdf.groups
]
# to get a list of Channel block source
cn_sources = [
[
channel.source
for channel in group.channels
]
for group in mdf.groups
] |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@JulienGrv Thank you! That was exactly what i was looking for. Another question arises with this. I played around a bit with channel objects and I figured out, that when I for example modify Signal names, the internal functions such as filter() won’t find these new Signalnames until I save and reload the file. Is there a way to update the mdf object when channels have been modified? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I‘m currently facing the difficulty that i have very large Signals of which i have to check the CAN number wich is located in the signal.source.comment attribute. Since my Signals are very large i just wanted to ask if anyone knows if i can get this comment without loading all the signal data which is quite slow?
Beta Was this translation helpful? Give feedback.
All reactions