LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Petru_Tarabuta

Ability to enable or disable Automatic Error Handling for all project items

Status: Declined

Although we are looking at ways to make debugging more of a project-level concept, we're not planning to do our own version of a tool like Property Inspector Free Toolkit for LabVIEW - Download - VIPM by JKI.

The Project page of the Project Properties window contains the Mark Existing Items... button. When pressed, this button enables the programmer to enable the "Separate Compiled Code" setting for all files in the project. This is very useful.

 

Suggestion: It would be useful to have similar functionality that could enable or disable Automatic Error Handling for all VIs in the project. This could be achieved by adding a drop-down menu that enables the programmer to select whether they want AEH to be enabled or disabled, alongside a button that enables the programmer to apply the selection for all project items, as seen below.

Screenshot (annotated).png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Notes

  • It may be best to add the button and drop-down menu in a new dedicated Category page named perhaps "Error Handling".
  • It would be useful to have the functionality available at a class and library level too. Meaning the ability to easily enable/disable the setting for the VIs inside a lvclass or lvlib, but not for the rest of the project.
  • The "Separate Compiled Code" and Automatic Error Handling settings are similar in that they are both Boolean settings (True/False value) that apply to each and every VI.
8 Comments
wiebe@CARYA
Knight of NI

>The "Separate Compiled Code" and Automatic Error Handling settings are similar in that they are both Boolean settings (True/False value) that apply to each and every VI.

 

But AEH can be turned off at globally... It never bothers me.

Petru_Tarabuta
Active Participant

Hi Wiebe,

Sorry but I don't fully understand. Did you mean to say something like "But AEH can be turned off at EXE build time globally..."?

wiebe@CARYA
Knight of NI

No, you can turn off AEH globally for LabVIEW in the options:

wiebeCARYA_0-1725352803748.png

It's a nice option to turn off the bugfeature.

Petru_Tarabuta
Active Participant

Thanks. I was aware of the Enable automatic error handling in new VIs setting, but somehow I had never noticed the Enable automatic error handling dialogs setting beneath it. That's good to know.

 

"It's a nice option to turn off the bugfeature." - Haha. It's a feature in my book.

wiebe@CARYA
Knight of NI

Setting Enable automatic error handling dialogs (EnableAutomaticErrorHandling = True) in the exe's ini file might even turn it on for executables. Not sure, but I remember some old trauma of automatic error dialogs after deploying an exe.

Petru_Tarabuta
Active Participant

The following is a quote from the "What to Expect When You're Expecting an Error" presentation that Darren presented at GLA Summit 2024.

 

“It [AEH] does require tooling to enable or disable on an entire codebase. That was one of the best things about LabVIEW NXG, was that Auto Error Handling was a project-wide feature that you could turn on or off. I would like to see LabVIEW move in that direction so it’s no longer a per-VI setting.”

 

As can be seen, the quote directly supports this idea.

Christina_R
Active Participant

I believe you can use Property Inspector Free Toolkit for LabVIEW - Download - VIPM by JKI to set properties on project files easily.


Christina Rogers
Principal Product Owner, LabVIEW R&D
Christina_R
Active Participant
Status changed to: Declined

Although we are looking at ways to make debugging more of a project-level concept, we're not planning to do our own version of a tool like Property Inspector Free Toolkit for LabVIEW - Download - VIPM by JKI.


Christina Rogers
Principal Product Owner, LabVIEW R&D