Reads a typed named item from an OPC server. Only the item's typed value is returned (quality and timestamp are not returned).
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 requires that the value quality is "good".
The server(s) can be local or can be remotely accessed via DCOM.
Overload List
Overload | Description |
ReadItemValue<TValue>(IEasyDAClient,ServerDescriptor,DANodeDescriptor) | Reads a value of typed named item using descriptor objects for the OPC server and OPC-DA item. |
ReadItemValue<TValue>(IEasyDAClient,ServerDescriptor,DANodeDescriptor,DAReadParameters) | 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. |
ReadItemValue<TValue>(IEasyDAClient,String,String,String) | Reads a value of typed named item using individual parameters specifying its location. |
ReadItemValue<TValue>(IEasyDAClient,String,String,String,Int32) | 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