OPC Studio User's Guide and Reference
Scalar Field



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAValueRanks Class : Scalar Field
The variable is always a scalar. Equals to -1.
Syntax
'Declaration
 
Public Const Scalar As Integer
'Usage
 
Dim value As Integer
 
value = UAValueRanks.Scalar
public const int Scalar
public:
const int Scalar
Remarks

This value rank is used to indicate that the variable's value is always a single value (scalar) and not an array. Scalars are the simplest form of data representation in OPC-UA, suitable for variables that hold a single value of a specific data type.

The corresponding traditional array rank value would be 0.

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