LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datasocket return wrong value

Hello Everyone:

I am using datasocket to communicate with an opc server.I built a quite simple vi to test the communicaion as you see in the picture.If I highlight the execution I got the right return value( a boolean type indicator),but I run it normally I get the wrong value.The quality of the datasocket read vi display 0.Meanwhile if I add a while loop outside the datasocket read vi,then I get the right value again.I only want to read the opc tag once,do not want to add the while loop in this vi.What should I do?please help me.Thank you very much!22649i2ACAD32EB3BCCF1F

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

你先尝试在DataSocket read vi的输入节点加入延时(根据实际应用调节下延时长短)。

无惧边界
0 Kudos
Message 2 of 2
(2,222 Views)