LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 128 - Open Connection TCP or UDP

Hello,

 

Does anyone have a solution for this error?

 

I try to connect to some devices, but sometimes when some of the devices are off, i get this error 128, after tryng to open connection several times..

I am constantly trying to open a connection with the device and if there is no connection, I close the connection and after x seconds I try to open a connection with the device again.

 

After getting this error, my program is never able to reconnect, even when i try to close the connection.

I get this error even using same TCP or UDP connection.

It just works normally again after exiting and re-entering the program.

 

 

Using labview 2019.

0 Kudos
Message 1 of 4
(733 Views)

Hello,

 

Does anyone have a solution for this error?

 

I try to connect to some devices, but sometimes when some of the devices are off, i get this error 128.

I am constantly trying to open a connection with the device and if there is no connection, I close the connection and after x seconds I try to open a connection with the device again.

 

After getting this error, my program is never able to reconnect, even when i try to close the connection.

I get this error even using same TCP or UDP connection.

It just works normally again after exiting and re-entering the program.

 

 

Using labview 2019.

0 Kudos
Message 2 of 4
(715 Views)

我开发Server时遇到过128错误,一般的处理方法是:关闭防火墙,检查端口是否释放彻底

0 Kudos
Message 3 of 4
(611 Views)

 

Sounds like the connection is not closed properly. You can use the resource monitor to check if the connection is still up: https://superuser.com/questions/1025252/how-to-list-open-ports-and-application-using-them-in-windows

 


@Rgouveia wrote:

 

... even using same TCP or UDP connection.

 


That does vaguely sound like something you should not be doing. Do you have more details?

0 Kudos
Message 4 of 4
(601 Views)