APIs

Show:

a server side monitored item

  • Once created, the MonitoredItem will raised an "samplingEvent" event every "samplingInterval" millisecond until MonitoredItem/terminate:method is called.

  • It is up to the event receiver to call recordValue.

Constructor

MonitoredItem

(
  • options
)

Parameters:

  • options Object

    the options

    • clientHandle Number
      • the client handle
    • samplingInterval Number
      • the sampling Interval
    • filter ExtensionObject
    • discardOldest Boolean
      • if discardOldest === true, older items are removed from the queue when
    • queueSize Number
      • the size of the queue.
    • monitoredItemId Number

      the monitoredItem Id assigned by the server to this monitoredItem.

    • itemToMonitor
    • monitoringMode
    • timestampsToReturn

Methods

_enqueue_value

(
  • dataValue
)
private

Parameters:

  • dataValue DataValue

    the dataValue to enquue

_on_sampling_timer

() private

extractMonitoredItemNotifications

() Array.<>

Returns:

Array.<>:

recordValue

(
  • dataValue
  • skipChangeTest
)
private

Parameters:

  • dataValue DataValue

    the whole dataValue

  • skipChangeTest Boolean

    indicates whether recordValue should not check that dataValue is really different from previous one, ( by checking timestamps but also variant value)

terminate This will stop the internal sampling timer.

()

Terminate the MonitoredItem.

Properties

node the associated node object in the address space

BaseNode | Null