From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

CVI中如何逐行读取txt文件的数据

我按照时间顺序在txt文件中保存了好几天的数据,现在想把他们按照时间顺序读取出来,并显示在 strip chart 中,从而实现 历史数据的曲线 回放,但是我不知道如何按照时间顺序进行读取,麻烦大家给个例程或一段代码指导一下! 非常感谢!

I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
0 项奖励
1 条消息(共 3 条)
3,263 次查看

我说错了,我这个应当是按列读取数据,

我的数据存放格式如下:
04-12-2011  14:30:58     外部交流电压 220, 主回路电压 27.347,主回路电流 0.114
04-12-2011  14:31:08     外部交流电压 219, 主回路电压 27.366,主回路电流 0.075
04-12-2011  14:31:18     外部交流电压 221, 主回路电压 27.354,主回路电流 0.087
04-12-2011  14:31:28     外部交流电压 221, 主回路电压 27.348,主回路电流 0.112
04-12-2011  14:31:38     外部交流电压 221, 主回路电压 27.347,主回路电流 0.11
我现在需要按照顺序把 外部交流电压  主回路电压 主回路电流 显示到strip chart上

I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
0 项奖励
2 条消息(共 3 条)
3,261 次查看

楼主你好,请问你是怎么解决这个问题的?

0 项奖励
3 条消息(共 3 条)
1,846 次查看