尝试使用python读取TDMS文件,但出现“检查tdm_索引是否与文件匹配”错误

2024-09-26 22:43:29 发布

您现在位置:Python中文网/ 问答频道 /正文

当我运行此代码时:

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

我得到以下错误:

"Check that the tdms_index file matches the tdms data file.")

ValueError: Attempted to read data segment at position 123 but did not find segment start header. Check that the tdms_index file matches the tdms data file.

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


Tags: the代码fromimportdataindexthattf

热门问题