'Declaration
Public Function New( _ ByVal machineName As String, _ ByVal serverClass As String, _ ByVal itemId As String, _ ByVal dataType As VarType, _ ByVal requestedUpdateRate As Integer, _ ByVal percentDeadband As Single, _ ByVal state As Object _ )
'Usage
Dim machineName As String Dim serverClass As String Dim itemId As String Dim dataType As VarType Dim requestedUpdateRate As Integer Dim percentDeadband As Single Dim state As Object Dim instance As New DAItemGroupArguments(machineName, serverClass, itemId, dataType, requestedUpdateRate, percentDeadband, state)
public DAItemGroupArguments( string machineName, string serverClass, string itemId, VarType dataType, int requestedUpdateRate, float percentDeadband, object state )
public: DAItemGroupArguments( String^ machineName, String^ serverClass, String^ itemId, VarType^ dataType, int requestedUpdateRate, float percentDeadband, Object^ state )
Parameters
- machineName
- Name of the machine. Determines the computer on which the OPC server is located. It may be an empty string, in which case the OPC server is assumed to exist on the local computer or at the computer specified for it by DCOM configuration.
The value represents a UNC or DNS computer name. Any string can be passed to this parameter (i.e. will not cause System.ArgumentException), but not all values make sense and will work when an operation using them is attempted. IPv6 addresses are normally enclosed between '[' and ']'.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - serverClass
- Contains ProgID of the OPC server.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - itemId
- Contains OPC item identifier.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - dataType
- Specifies the data type requested. Passing OpcLabs.BaseLib.ComInterop.VarTypes.Empty means that the server's canonical data type should be used.
Because the OpcLabs.BaseLib.ComInterop.VarType has an implicit conversion from System.Int32 and OpcLabs.BaseLib.ComInterop.VarTypes, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use an integer (representing the numerical value of the COM VARTYPE), or an element of the OpcLabs.BaseLib.ComInterop.VarTypes enumeration (or an allowed combination of OpcLabs.BaseLib.ComInterop.VarTypes flags) in place of this parameter, and the corresponding data type specification will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the OpcLabs.BaseLib.ComInterop.VarType.VarType Constructor(Int32) or OpcLabs.BaseLib.ComInterop.VarType.VarType Constructor(VarTypes) constructor instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - requestedUpdateRate
- How often should the updates be received (number of milliseconds).
- percentDeadband
- The percent change in an item value that will cause an update.
- state
- The state object (can be any value supplied by your code); available in event notifications.
The value of this parameter can be
null
(Nothing
in Visual Basic).