OPC Studio User's Guide and Reference
ReadValueFunction Method



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA.NodeSpace Namespace > UADataVariableExtension Class : ReadValueFunction Method
Modifies the data variable to provide value for the pull data provision model by a specified function.

This method always makes the data variable readable, but that does not mean it automatically makes it non-writable. If you need a data variable that is readable and non-writable, combine this method with calling Writable(UADataVariable,Boolean) method with the 'writable' parameter set to false.

The status code will be "Good", and the timestamp will be the current time after the read function has been called.

Overload List
OverloadDescription
Specifies value type and read value function, for the pull data provision model.  
Specifies value type code and read value function, for the pull data provision model.  
Specifies the data type Id and read value function, for the pull data provision model. Uses an empty array dimension list.  
Specifies the data type Id, array rank, and read value function, for the pull data provision model.  
Specifies the data type Id, array dimension list, and read value function, for the pull data provision model.  
Specifies read value function returning typed object, for the pull data provision model.  
Specifies read value function returning typed object, and array dimensions, for the pull data provision model.  
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