LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

suppress error pop-ups

is there a way to suppress the LV error window that pops up, for example, when you select Cancel from a file dialog. I don't want the error dialog to pop up telling me I have error 43 if the user clicks cancel. I don't want anything to happen in that instance.

Thanks
0 Kudos
Message 1 of 6
(3,395 Views)
If you drill down into the VI that is generating the pop up window, you should somewhere find a general error handler. The general error handler is what is creating the dialog. If you remove this VI, you should no longer get the pop up window. However, I would recommend replacing the general error handler with some sort of error handling.

Matt Kisler
Applications Engineering
National Instruments
0 Kudos
Message 2 of 6
(3,395 Views)
HI Matt

Well I did some drilling and I'm in the general error handler.vi diagram but I'm a little nervous about playing with anything in here. Anything more specific would be helpful

thanks again
0 Kudos
Message 3 of 6
(3,395 Views)
Sorry, I should have mentioned this before but the first thing you will want to do when editing these VIs is first save them to a different directory (not the VI.lib folder) with a different name. This way if you make a mistake and save it you will always still have the original VI showing up on your palette. I have attached a modified version of the "Write to Spreadsheet File.vi" (one of the VIs that will display a pop up message). You can compare it to the one that comes off the palette. I replaced the "General Error Handler.vi" with an Error Out cluster. Now an error is still generated but it won't bring up the dialog box.
Message 4 of 6
(3,396 Views)
Thank you Matt, appreciate your efforts.

I will have a look at it.
0 Kudos
Message 5 of 6
(3,395 Views)

Hi Matt,

Is there any chance you could come up with something like that for the "Write Characters to File vi"?

I'd greatly appreciate it.

 

Thanks...

Using Labview 7.0 and 2010 SP1 with Windows XP and 7.
0 Kudos
Message 6 of 6
(3,246 Views)