QuickOPC User's Guide and Reference
ReadItemValue Method (IEasyDAClientExtension2)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.Extensions Namespace > IEasyDAClientExtension2 Class : ReadItemValue Method
Reads a typed named item from an OPC server. Only the item's typed value is returned (quality and timestamp are not returned).

The server can be local or can be remotely accessed via DCOM. Optionally, an access path can be specified or a specific data type can be requested.

Use this method if you are only interested in the actual typed value of the OPC item. Use ReadItem method if you also need the quality or timestamp. The ReadItemValue method makes it very easy to obtain the actual typed data value with just one function call.

The ReadItemValue method waits until the quality becomes "good", or the timeout elapses.

Overload List
OverloadDescription
Reads a typed named item from an OPC server. Only the item's typed value is returned (quality and timestamp are not returned). Reads a value of typed named item using descriptor objects for the OPC server and OPC-DA item.  
Reads a typed named item from an OPC server. Only the item's typed value is returned (quality and timestamp are not returned). Reads a value of typed named item using descriptor objects for the OPC server and OPC-DA item, and specifying read parameters such as the data source or value age.  
Reads a typed named item from an OPC server. Only the item's typed value is returned (quality and timestamp are not returned). Reads a value of typed named item using individual parameters specifying its location.  
Reads a typed named item from an OPC server. Only the item's typed value is returned (quality and timestamp are not returned). Reads a value of typed named item using individual parameters specifying its location, a specific data type, and value age.  
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also