Parameters
- client
- The client object that will perform the operation.
- itemArguments
- Holds an OPC server and item descriptor.
- readParameters
- The read parameters (such as data source or value age).
Exception | Description |
---|---|
OpcLabs.EasyOpc.OperationModel.OpcException | Thrown when the OPC operation fails. |
System.ArgumentNullException | A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument. |
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 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 data value with just one function call.
The ReadItemValue method waits until the quality becomes "good", or the timeout elapses.
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2012, Windows Server 2016; .NET Core, .NET 5, .NET 6: Linux, macOS, Microsoft Windows