OPCDA.NET Reference Manual
Read(OPCDATASOURCE,ItemDef,OPCItemState) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > SyncIOGroup Class > Read Method : Read(OPCDATASOURCE,ItemDef,OPCItemState) Method

src
IN: Cache or Device
idef
IN: Item definition object
val
OUT: Read item value with quality and timestamp

Glossary Item Box

Read the current value of the item specified with the ItemDef object.
The ItemDef object was created in a previous Read or Add call. This method overload is a bit more efficient because no ItemID search as to be done. Only in a SyncIOGroup with many items could be a significant performance gain.
A synchronous OpcGroup read function is executed.

Syntax

Visual Basic (Declaration) 
Public Overloads Overridable Function Read( _
   ByVal src As OPCDATASOURCE, _
   ByVal idef As ItemDef, _
   ByRef val As OPCItemState _
) As Integer
C# 
public virtual int Read( 
   OPCDATASOURCE src,
   ItemDef idef,
   out OPCItemState val
)

Parameters

src
IN: Cache or Device
idef
IN: Item definition object
val
OUT: Read item value with quality and timestamp

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.