LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Datasocket Read value update issue

Dear All,

 

I am using CodeSys OPC server to establish OPC communication with Rexroth PLC.

I can see all the variables from PLC in CodeSys test client and i can see the updated value continuously for a particular BOOL variable all the time.

Now i checked with NI Quick client. Here also data is updating when we perform read.

Now i tried do the same with LabVIEW 2013 with Windows 10.

But what i have observed is when i initialize data socket, OPC server is opened in Tray. and when i tried to read the read the value in a loop, it is reading the value first time, but it is not updating the value though it is changed, which i can see in CodeSys test client.

 

Then i tried to keep datacocked init, read and close all functions inside loop with 1 sec dealy. N1ow i can see the updated value. but if i make timer less than 1 sec, it is not updating. but i can see always codesys server open and close everytime. So it is not ideal way to do it.

 

Experts, please suggest the solution. Thanks.

 

0 Kudos
Message 1 of 2
(2,724 Views)

I haven't used Datasockets, but if it's like a whole collection of other LabVIEW data IO, you don't want to be calling the Init or Close VIs inside your loop - just the Read.

 

Why don't you attach your VI and we can take a loop and see what might be improved?


GCentral
0 Kudos
Message 2 of 2
(2,671 Views)