Preventing Non-Fatal Run-Time Errors From Being Displayed in LabWindows™/CVI™

Updated Dec 20, 2022

Environment

Software

  • LabWindows/CVI

I would like to prevent non fatal run-time errors from causing a dialog box to be displayed in LabWindows/CVI. I can do this by turning off debugging but this disables the use of debugging options such as breakpoints and the watch window. Is there another way that I can prevent these errors from being displayed?

There are two ways you can solve this, either by changing the debugging options or turning off error reporting for sections of code.

To change the debugging levels, use the following steps.
  1. Set the debugging level to Standard or Extended in Options >> Build Options >> Debugging Options
  2. Uncheck Break on Library Errors by selecting Run >> Break >> Library Errors
To turn off error reporting for certain sections of code, use
SetBreakOnLibraryErrors()
Using this will temporarily override the setting in the Run menu.