![](/img/trans.png)
[英]How to list all the channels in .mdf4 file using asammdf in Python?
[英]How to use interpolation in Asammdf? (Python)
我正在嘗試讀取 .mdf 文件並將其寫入 .csv 文件。 我發現不規則的選項(時間戳),但它有不一致的差距。
我怎樣才能得到一個固定的時間間隔,比如 0.002 秒?
我的代碼如下。
from asammdf import MDF, set_global_option
import pandas as pd
set_global_option("raise_on_multiple_occurrences", False)
data = MDF('example.mdf')
df = data.to_dataframe(use_interpolation=True)
df.to_csv('result.csv')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.