OPCDA.NET Reference Manual
Read(OPCDATASOURCE,Int32[],OPCItemState[]) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcGroup Class > Read Method : Read(OPCDATASOURCE,Int32[],OPCItemState[]) Method

src
IN: The 'data source': OPC_DS_CACHE or OPC_DS_DEVICE
aSrvHnd
IN: The list of server item handles for the items to be read
aResult
Array of structures in which the item values are returned. It also contains the error code which OPC specifies in a separate array.

Glossary Item Box

Read the value, quality and timestamp information for one or more items in a group. The function runs to completion before returning.( IOPCSyncIO::Read )

Syntax

Visual Basic (Declaration) 
Public Overloads Function Read( _
   ByVal src As OPCDATASOURCE, _
   ByVal aSrvHnd() As Integer, _
   ByRef aResult As OPCItemState() _
) As Integer

Parameters

src
IN: The 'data source': OPC_DS_CACHE or OPC_DS_DEVICE
aSrvHnd
IN: The list of server item handles for the items to be read
aResult
Array of structures in which the item values are returned. It also contains the error code which OPC specifies in a separate array.

Return Value

HRESULT success/error code

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.