I have created a custom error file using the 'Error Code Editor', I want to disable the warning dialog that appears when my error codes are detected. How can I do this?

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

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

I want to stop this from appearing ->

enter image description here

有帮助吗?

解决方案

You should connect error handlers (Simple Error Handler.vi or just an error indicator) to the VI that's generating those errors. Danging error terminals will by default always pop up an error.

You can turn off this type of error handling in the preferences, but it is not recommended. The standard is to wire up all the error terminals and ultimately handle any errors at the top level.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top