【问题标题】:Stop warning dialog from appearing with custom error codes - LabVIEW停止出现带有自定义错误代码的警告对话框 - LabVIEW
【发布时间】:2012-08-15 08:46:08
【问题描述】:

我使用“错误代码编辑器”创建了一个自定义错误文件,我想禁用在检测到我的错误代码时出现的警告对话框。我该怎么做?

<?xml version="1.0" encoding="ISO-8859-1"?>
<nidocument>
<nicomment>

</nicomment>
<nierror code="5000">
SUCCESS
</nierror>
<nierror code="5012">
INVALID HANDLE
</nierror>
</nidocument>

我想阻止它出现 ->

【问题讨论】:

    标签: error-handling labview custom-errors


    【解决方案1】:

    您应该将错误处理程序(Simple Error Handler.vi 或只是一个错误指示器)连接到产生这些错误的 VI。 Danging error 终端默认总是会弹出一个错误。

    您可以在首选项中关闭此类错误处理,但不建议这样做。标准是将所有错误终端连接起来,最终在顶层处理任何错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-19
      • 2016-12-05
      相关资源
      最近更新 更多