首页 > 解决方案 > 尝试使用 python 读取 TDMS 文件,但出现“检查 tdm_index 是否与文件匹配”错误

问题描述

当我运行此代码时:

from nptdms import TdmsFile as tf 
file = tf('myfile.tdms')

我收到以下错误:

“检查 tdms_index 文件是否与 tdms 数据文件匹配。”)

ValueError:试图读取位置 123 处的数据段,但未找到段起始标头。检查 tdms_index 文件是否与 tdms 数据文件匹配。

我做错了什么,我需要改变什么?

标签: pythonlabview

解决方案


推荐阅读