APIs

Show:

Methods

add_dataItem_stuff

(
  • variable
  • options
)
private

Parameters:

  • variable Object
  • options Object
    • definition

      [Optional]

    • valuePrecision

      [Optional]

    • modellingRule

      [Optional]

addAnalogDataItem AnalogDataItem DataItems that represent continuously-variable physical quantities ( e.g., length, temperature) , in contrast to the digital representation of data in discrete items NOTE Typical examples are the values provided by temperature sensors or pressure sensors. OPC UA defines a specific UAVariableType to identify an AnalogItem. Properties describe the possible ranges of AnalogItems.

(
  • options
)
UAVariable

Parameters:

  • options Object
    • browseName String
    • definition String
    • [valuePrecision=null] Double | Null optional
    • instrumentRange
      • low Double
      • high Double
    • engineeringUnitsRange.low Double
    • engineeringUnitsRange.high Double
    • engineeringUnits String
    • dataType NodeId

      // todo :check

    • [accessLevel= "CurrentRead | CurrentWrite"] AccessLevelFlag optional
    • [userAccessLevel= "CurrentRead | CurrentWrite"] AccessLevelFlag optional
    • value
    • [modellingRule] optional

Returns:

Example:

:

namespace.add_analog_dataItem({ componentOf: parentObject, browseName: "TemperatureSensor", definition: "(tempA -25) + tempB", valuePrecision: 0.5, //- instrumentRange: { low: 100 , high: 200}, // optional engineeringUnitsRange: { low: 100 , high: 200}, // mandatory engineeringUnits: standardUnits.degree_celsius,, // optional // access level accessLevel: 1 minimumSamplingInterval: 10, });

addDataItem

(
  • options
)
UAVariable

Parameters:

  • options Object
    • browseName String
    • definition String
    • [valuePrecision=null] Double | Null optional
    • dataType NodeId

      // todo :check

    • value
    • componentOf

Returns:

addMultiStateDiscrete

(
  • options
)
Object | UAVariable

Parameters:

  • options Object
    • browseName String
    • [nodeId] NodeId optional
    • [value= 0] UInt32 optional
    • enumStrings String

      an array containing the String associated with each enumeration value, starting from 0 onward

Returns:

Object | UAVariable: