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

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

关于configuration file的问题

已解决!
转到解答

我用configuration file VIs写了个程序,如下图:

读取序列.jpg

我用事件结构来触发读取,如果中途不取消也没什么问题,但如果我点击了读取序列,它弹出对话框让我选择文件时,我突然不想读取了,点击对话框中取消,它就会提示一个错误——用户终止,但如果点continue,程序还是可以继续运行的,但这个错误能不能不出现呢?

0 项奖励
1 条消息(共 4 条)
4,621 次查看

Place the entire Read (Configuration) File code within a Case, and wire its control to the File Dialog's output i.e. exists, cancelled etc.

 

Execute the Read (Configuration) File code if the file i.e. exists AND not (!) cancelled

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

我改了一下,不过是用登记改的,不是读取,但可能没有完全领会你的意思,所以。。。还是不行

见附件

下载全部
0 项奖励
3 条消息(共 4 条)
4,609 次查看
解答
已被主题作者 413332985 接受

Hi,

 

Attached File Dialog simple example for your reference.

Message Edited by ian fung on 01-18-2010 11:32 AM
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
4 条消息(共 4 条)
4,604 次查看