Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

handling errors

Hi, I have created the VB tutorial "Developing an OPC Client Application Using Visual Basic". All works fine with a FP1600, AI110 & RLY422 module. Now I am wondering how do you successfully detect errors that occur, such as removing the network cable, pulling out a module, power failure, etc. I have tried many things, but have been unsucessful. I need error handling! Anyone know how to do it ?

Chris 🙂
0 Kudos
Message 1 of 2
(2,895 Views)
Hello

There are a couple of things you can do to trap errors in VB. There is a great document on the MSDN that explains how to use the error handler for trapping errors that might the controls might throw.

Check out this link

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,895 Views)