cancel
Showing results for 
Search instead for 
Did you mean: 

datasocket read stops working

anderg
Member

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>
3 REPLIES 3
MarcoMauri
Active Participant

Rif.: datasocket read stops working

Hi anderg,

can you post your VI or a code snippet please?

 

Regards,

Marco

anderg
Member

Rif.: datasocket read stops working

Message contains an image

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>
MarcoMauri
Active Participant

Rif.: datasocket read stops working

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