Hi!
I'm using QuickOPC 5.22 build 422.1 and VB.net 2012 to create OPC client to connect to AIM*AT OPC server. First time i can't read the value and i found the problem is the client mode, it must use synchronous mode. The OPC server is support for OPC DA 2.04 & 1.0a Asynchronous I/O, I don't know why the component can't read item value using Client Mode Asynchronouse. Anyway, I can read it using synchronous mode. I need a real time data, so I loop the reading. Cause the item is more thn 4000 tag, so i'm using multi thread and 1 thread loop for reading about 300 tag.
I just success read for a few times and than got this exception:
OpcLabs.EasyOpc.OpcException: An OPC operation failure with error code -1073430509 (0xC004C013) occurred, originating from 'OpcLabs.EasyOpcRaw.DataAccess.RawEasyDAClient'. The inner exception contains details about the problem. ---> System.Runtime.InteropServices.COMException: Read not completed. This error indicates that it could not be verified that the requested read operation was completed during the timeout period. It is possible that the read operation will actually succeed or fail, but later. Increase the timeout period if you want to obtain positive or negative indication of the operation outcome. Other reason for this error may be that under heavy loads, topic request or response queue is overflowing. Check the event log for queue overflow errors (if event logging is supported by the product and enabled).
--- End of inner exception stack trace ---
at OpcLabs.EasyOpc.DataAccess.EasyDAClient.ReadItem(ServerDescriptor serverDescriptor, DAItemDescriptor itemDescriptor, DAReadParameters readParameters)
at OpcLabs.EasyOpc.DataAccess.EasyDAClient.ReadItem(ServerDescriptor serverDescriptor, DAItemDescriptor itemDescriptor)
at OpcLabs.EasyOpc.DataAccess.EasyDAClient.ReadItem(String machineName, String serverClass, String itemId, VarType dataType)
at OpcLabs.EasyOpc.DataAccess.EasyDAClient.ReadItem(String machineName, String serverClass, String itemId)
at SinalsysServer.Form1.read_HL(String tag_name, String item_name)
I need a real time data but can't use asynchronous mode. Do you have an Idea? now i have to stop all reading and put some delay after found that error and start again.
Thank You