Skip to end of metadata
Go to start of metadata

Performs an asynchronous bulk write. Takes two sequences that must have the same number of entries. The first is the list of tag paths to write to, and then second is a list of values to write. This function is dramatically more efficient than calling write multiple times.


system.tag.writeAll(tagPaths, values)

  • Parameters

String[] tagPaths - The paths of the tags to write to.

Object[] values - The values to write.

  • Returns

int[] - Array of ints with an element for each tag written to: 0 if the write failed immediately, 1 if it succeeded immediately, and 2 if it is pending.

  • Scope


Code Examples
Code Snippet
#This code write to 5 tags at once.
tags = ["Tags/T1", "Tags/T2", "Tags/T3", "Tags/T4", "Tags/T5"]
values = [2, 4, 8, 16, 32]
values = system.tag.writeAll(tags,values)
  • No labels