08-29-2010 02:58 AM - edited 08-29-2010 03:06 AM
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!
09-02-2010 09:24 PM
你先尝试在DataSocket read vi的输入节点加入延时(根据实际应用调节下延时长短)。