LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to disable the LV error handler?

I want to disable the LV error handler, im my application if an error happens i use a case structure to handle it.
 
how can i do?
0 Kudos
Message 1 of 7
(3,730 Views)

Go to Tools -->> Options & uncheck the option "Enable automatic error handling Ddialogs".

I think this ll serve your purpose.

Post back here, if you still encounter trouble.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 7
(3,718 Views)
but how can I detect the error when it happens. in my application I use TCP/IP to monitor the client. if the connection between server and client is broken, then the case structure will be true, otherwise it is false. How can I detect the status? A simple sample is appreciate.
0 Kudos
Message 3 of 7
(3,712 Views)

Before the Case Structure, rt-click on the wire & Create an Indicator. This ll create an Error-out cluster on the FP for you to view the error, when it occurs.

Can you post the code you ve developed, so that it ll be easier for us to tell you a better solution?

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 7
(3,708 Views)


@青风细雨楼 wrote:
I want to disable the LV error handler, im my application if an error happens i use a case structure to handle it.
 
how can i do?

Once you wire the error output of your function, automatic error handling is no longer relevant. That setting only matters for subVIs where you don't wire the error output.

Just take the error output and wire it to the selector terminal of the case structure. You'll get an "error" and a "no error" case. Place appropriate code in each case so it act like you want it to. 🙂

0 Kudos
Message 5 of 7
(3,704 Views)

Altenbach,

I think he already handles the error thro' the case structure, but still gets the pop-up error dialog. But I m also not sure.

Maybe, the attached VI explains Altenbach's explanation.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 7
(3,697 Views)
thanks for your help. I will try.
0 Kudos
Message 7 of 7
(3,694 Views)