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

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

append to file

已解决!
转到解答
往文件中写数据,每次都要覆盖前面数据,所以
append to file选择false
每次运行结束会弹出对话框问是replace还是cancle
怎样才能不让它弹出对话框而直接覆盖?
0 项奖励
1 条消息(共 8 条)
6,350 次查看

which write function are you using?

 

 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
2 条消息(共 8 条)
6,331 次查看
write characters to file
0 项奖励
3 条消息(共 8 条)
6,305 次查看
解答
接受人 ok~forward

For Write Characters To File.vi, you may save it as another copy (without updating the caller vi).

 

After that, open it and modify it by wiring advisory dialog? (display:T) to append to file? (new file:F)

 

That means, when append to file? is set false, advisory dialog will not be prompted. 

 

PS: you may try download it at my site too under File IO

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
4 条消息(共 8 条)
6,295 次查看

不好意思,不是很明白

是说把程序另存一下然后再打开,连线 advisory dialog? (display:T) to append to file? (new file:F)吗?

能否截个图?谢谢

 

 

0 项奖励
5 条消息(共 8 条)
6,279 次查看
Precisely!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
6 条消息(共 8 条)
6,261 次查看

我试过这种方法,但是刚开始它还是会弹出保存文件的提示框,如图,不知道是不是您的意思。

我是想让它不要弹出任何提示框自动覆盖保存的

0 项奖励
7 条消息(共 8 条)
6,230 次查看
You have to ensure that the file path is valid (not empty) even for the first time...
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
8 条消息(共 8 条)
6,218 次查看