verify conection

If you have a question about the software please ask it here.

verify conection

Postby danut1234 » Fri Jun 23, 2023 6:50 am

Hi, i have written a software in C# to control axbb using the provided wrapper, now my question is, what is the best method to verify that the connection was not lost (ethernet cable unplugged, power failure, other unexpected problems)? What method (function) from the wrapper to use?

Thank you,
Dan
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am

Re: verify conection

Postby cncdrive » Wed Jun 28, 2023 10:51 pm

It is the best if you checking it in a loop like this:

if ((UC100.ReturnVal)Isconnectionerror == UC100.ReturnVal.UC100_DEVICE_NOT_FOUND || (UC100.ReturnVal)Isconnectionerror == UC100.ReturnVal.UC100_DEVICE_NOT_OPENED)
{
// Lost connection
}
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: verify conection

Postby danut1234 » Thu Jun 29, 2023 5:06 pm

Thank you very much.

Dan
danut1234
 
Posts: 40
Joined: Thu Aug 25, 2022 9:26 am


Return to Ask a question from support here

Who is online

Users browsing this forum: Majestic-12 [Bot] and 17 guests