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.



在LabVIEW Real-Time中使用创建文件对话框



主要软件:
主要软件版本: 5.0
主要软件修正版本: N/A
次要软件: N/A

问题: 我在LabVIEW Real-Time中使用打开/创建/替换文件.vi 时报出43号错误,使用文件对话框.vi 时返回取消信息,这是为什么?

解答: 这两个问题是有关联的,因为打开/创建/替换文件.vi中也使用到了文件对话框.vi 来选择文件路径。 文件对话框.vi 将试着打开系统文件选择对话窗口,但LabVIEW Real-Time操作系统没有系统文件对话窗口。可以改用函数»文件 I/O»高级文件子面板下的List Directory.vi来实现类似功能。

总的来说,不推荐将访问RT目标机做为默认的通信方式。在通信过程中访问RT设备通常做为开发应用中的一种调试手段。对于最终的应用来说,最好使用TCP/IP或DataSocket进行数据的传输。

相关链接: KnowledgeBase 2M9ARPEW: Real-Time VI to Host VI Communication Method
Developer Zone Example: Choosing a File Programmatically Using the List Directory Function

附件:





报告日期: 12/10/2002
最近更新: 04/29/2009
文档编号: 2S9D21OH