LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datasocket read stops working

Hello,

 

I'm using datasocket to read some values from the OPC server.

 

I'm running three different programs with the datasocket read function all day to adquire data from the OPC. It is working fine but when some time passed (four days more less) the datasocket read stops reading and it get blocked, so i have to restart the program (close and open the datasocket connection).

 

Is there any limitation in the number of "reads"  using datasocket or some buffer?

 

Thanks

Image and video hosting by TinyPic
<script type="text/javascript" async src="//cdn.youracclaim.com/assets/utilities/embed.js"></script>
0 Kudos
Message 1 of 4
(3,375 Views)

Hi anderg,

can you post your VI or a code snippet please?

 

Regards,

Marco

0 Kudos
Message 2 of 4
(3,340 Views)

Yes, I'm doing something similar to this

 

prueba.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

It is similar to the  the Multiple OPC items Monitor.vi

 

Thanks

Image and video hosting by TinyPic
<script type="text/javascript" async src="//cdn.youracclaim.com/assets/utilities/embed.js"></script>
0 Kudos
Message 3 of 4
(3,331 Views)

Hi anderg,

I'm not a Datasocket expert, but I would suggest to add some error handling.

For instance in case of error you could try to close and reopen the Datasocket connection.

If you program is expected to run for a long time, a connection drop is something that is going to happen.

Regards,

Marco

0 Kudos
Message 4 of 4
(3,318 Views)