LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop warning dialog from appearing with custom error codes

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 ->

err.PNG

0 Kudos
Message 1 of 2
(2,345 Views)

Hi eamo2020,

 

Are you passing your error cluster through to a Simple Error Handler VI (the last function to execute on your block diagram?) 

 

When your custom error is flagged, is it prompting the dialog box each time?

 

If this is the case, you can set the 'type of dialog' input, as a constant. You set this constant as 'no dialog', from the five options available.

 

The next time you run your code, the pop up dialog won't appear and you will be able to handle your errors programmatically, instead of through the dialog box.

 

I hope this helps!

Dom C
0 Kudos
Message 2 of 2
(2,313 Views)