I'm posting this subject may help others. I do not have bullet- proof solution, but at least I have figured out when it is poping up, hopefully NI will work for solution in the next releases of Vision Builder AI.
If you start the VBAI server with certain network connection available, this will stay alive until any of you computer network connection changes the connection state. After a network connection change, the Server will report "Host_disconnected"( seen with SocketSniffer):
Send: Return Code: 0x00000000
00000000 01 00 00 51 D7 00 00 00 11 48 4F 53 54 5F 44 49 ...Q.....HOST_DI
00000010 53 43 4F 4E 4E 45 43 54 45 44 SCONNECTED
If you run now an inspection will fail with error:
Vision Builder AI: (Hex 0xFFFA9600) The connection to the remote target was lost because another user has connected to the remote target,
see attached picture:
If you set back the network connections to the state when the server was started, it will work fine again.
- Vision Builder AI 2014
- Wireless NIC ( DHCP)
- NIC (DHCP)
- Microsoft Loopback adapter ( fix IP=192.168.1.1) - this was installed after first errors I have seen, just to have an fix IP, in hope to have host network binding to this adapter. Did not help!
What do you mean by "until any of you computer network connection changes the connection state"?
Connection state changes means, one of your network connections disconnects or connects, unplug ethernet cable from NIC example.
I will contact you via private e-mail so we can discuss the issue further. The results will be posted here in the end.
After Closing the connection (without stopping the VBAI Server) and Opening it again, the Inspection works as expected. Using the appropriate precondition in TestStand ensures that the Error Handling only runs when necessary.
Can you please explain in a bit more detail? Closing the connection is not working in our case. In fact nothing is working. Even disconnecting the server and re-connecting is erroring out.