10-05-2012 10:25 AM
Hi, I was wondering if there is a way to suppress the error dialog boxes that appear when calling interface type commands. For example, I'm calling the TCP/IP Open command and if the port is not avaible it throws up a dialog box with an error stopping execution. I want to handle the error without stopping so I can report the error manually. I'm sure there is a way to suppress this from happening. Usually the general error handler is for showing the dialog errors if you want them.
Thanks...
Solved! Go to Solution.
10-05-2012 10:32 AM
Go to the properties of your VI and turn off "automatic Error handling", make sure you wire your errors or you will never see them
10-05-2012 10:33 AM
Sounds to me like you have Auto Error Handling turned on. If you just handle the error, the dialog should go away.
10-05-2012 10:39 AM
Yep, thanks guys...
10-05-2012 10:44 AM
Actually, I turned off the auto error reporting, but TCP/IP still throws the error dialog even though the auto reporting is disabled in the VI properties. Any other ideas?
Thanks...
10-05-2012 10:47 AM
Well, you said you wanted to handle the error yourself, so why are you turning off automatic error reporting???
You cannot "handle the error" unless you wire something to the error out terminal. (You won't get an automatic error reporting of you wire something to the error out of your function.)
10-05-2012 11:08 AM
That was a rude response! All I want to do is handle the error coming out of the TCP/IP open command without the error dialog box coming up, I still want the error reported though the error out, but just not the dialog. Whether it takes turning off the auto error reporting or not, I could really care less as long as the dialog box is not thrown. BTW, the only reason I turned off the auto reporting Altenbach is because someone else mentioned it previously that it might be causing the error dialog.
10-05-2012 11:17 AM - edited 10-05-2012 11:18 AM
@QRP wrote:
That was a rude response! All I want to do is handle the error coming out of the TCP/IP open command without the error dialog box coming up, I still want the error reported though the error out, but just not the dialog. Whether it takes turning off the auto error reporting or not, I could really care less as long as the dialog box is not thrown. BTW, the only reason I turned off the auto reporting Altenbach is because someone else mentioned it previously that it might be causing the error dialog.
What Altenbach is saying is if the error dialog is coming up, then, by definition you have an unhandled error. It is virtually impossible to handle an error if you are not capturing it, and you cannot capture it if you don't have something coming out of the error out terminal. The only way this dialog is shown is because you do not have an error out terminal wired, so the LabVIEW handling takes over. When a default error dialog comes up, it is basically to tell you you have an unhandled error.
10-05-2012 11:19 AM - edited 10-05-2012 11:23 AM
@QRP wrote:
That was a rude response!
Thank you. That comment was offtopic and uncalled for.
Well, once "I" wire something to the "error out" of TCP open, I don't get an error popup. If you still get an error popup, it could mean that you wire it to some other functions that don't have the error-out connected down the line, for example. In this case, the error of the TCP function is propagated to that unwired output at the end, causing a popup (if automatic error handling is enabled).
We need to see some code!
I also assume that you are talking about the remote port. (For client conenctions the "local port" is typically not wired)
10-05-2012 11:23 AM
To quote what I said earlier: "If you just handle the error, the dialog should go away." And the definition of "handle" to the automatic error handler is that you wire the error out to something, even an indicator.