Skip to content

Argument

Argument Object allows the inputs and output parameters of method node methods to be defined

Functions

Argument.new(argument_name, data_type_node_id, value_rank, array_dimensions)

Creates a new Argument instance

Params

  • argument_name
    • string
    • The name of the argument
  • data_type_node_id
    • NodeId
    • The NodeId of the argument type
  • value_rank
    • number
    • The number of dimensions of the value see ValueRank enum for predefined values
  • array_dimensions
    • number[]
    • Array of positive numbers determining the size of each dimension, can be empty or nil

Returns: Argument new instance

Argument.newStandardType(argument_name, data_type, value_rank, array_dimensions)

Creates a new Argument instance with the type as one of the standard OPC-UA data types

Params

  • argument_name
    • string
    • The name of the argument
  • data_type
  • value_rank
    • number
    • The number of dimensions of the value see ValueRank enum for predefined values
  • array_dimensions
    • number[]
    • Array of positive numbers determining the size of each dimension, can be empty or nil

Returns: Argument new instance