OPC Studio User's Guide and Reference
ConstantValue Method



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA.NodeSpace Namespace > UADataVariableExtension Class : ConstantValue Method
Modifies the data variable to provide the specified constant value, non-writable.

For reads and subscriptions, the data variable will provide always the same value, specified in this method call. The data variable will not be writable.

The status code will be "Good", and the timestamp will be the current time of this method call.

Overload List
OverloadDescription
Makes constant data variable with given value type and value.  
Makes constant data variable with given value type code and value.  
Makes constant data variable with given data type Id, array dimension list, and value.  
Makes constant data variable with given data type Id and value, and an empty array dimension list.  
Makes constant data variable using generic-typed value.  
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