LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

opc client not updating

Hi
I have created two OPC client that are reading on the same OPC server (UniNETOPC), but the fist application is updating correctly, the second is very slow, Why?
Thanks
0 Kudos
Message 1 of 6
(3,047 Views)
Hi
after many test, I have noticed the real problem:
My project contains an OPC client, 4 main shared variable library, each of them is made by 20  shared variable at least, and finally 4 VI.
Each VI is very simple program, it contains a while loop, with the 20 shared variables inside and the outputs of this variables for the frot pannel.
The updating of the shared variable depends strongly from the number of the shared variable in my OPC client. In fact if I unbind all the shared variable except for just one,
the update of this variable is very fast, otherwise if I bind oll the shared variable, the updating  is very slow, quite 5 min. Please, help me
Thanks
 
Vincenzo
 
 
 
0 Kudos
Message 2 of 6
(3,029 Views)

Hello Enzo,

Did you try reducing your shared variable number? Did you observe any performance changes? What about the type of your variable you are using? You can try to put these variables into an array and let the application improve its speed access. You also can modify the OPC update time and let the delay changes according to your need.

Finally could you evaluate to adopt DataSocket instead of shared variables? DataSocket connections work quite a bit faster than shared variables, even with read and write on the same machine, and they just seem to be more generally reliable on a congested network.

Let me know about your application

Regards

.

Matteo
0 Kudos
Message 3 of 6
(3,009 Views)
Hi Matteo
 
I have reduced the number of my shared variable and it works correctly. My shared variable are int16, 
how can I put this variable into an array?
Moreover I use an OPC update of 0ms (the fastest possible).
If I use the DataSocket, can I show simultaneously more than one shared variable?
thank
 
Vincenzo
0 Kudos
Message 4 of 6
(3,006 Views)
 

Hello Enzo,

I noticed that you posted few days ago a similar question on the forum, which received several replies. There's something diffent between the two projects? Anyway i suggest you not to duplicate posts that concerns the same argument and continue on the first one.

Regard using Shared Variable with DataSocket, please refer to this document.

Matteo
0 Kudos
Message 5 of 6
(2,992 Views)

Hi Matteo

I learn how read a shared variable with DataSocket, but If I want to open more variable simultaneously, I have just repeat many While loop, or there is a manner to use only one while loop?

Thanks

 

0 Kudos
Message 6 of 6
(2,990 Views)