Writes values to Tags at the given paths. This This function will "block the script from continuing " until the write operation is complete or times out. Meaning, execution of the calling script will pause until this function finishes. This useful in cases where the tag write must complete before further lines in the same script should execute.
Permission Type: Tag Editing
Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.
system.tag.writeBlocking(tagPaths, values, [timeout])
List tagPaths - A List of Tag paths to write to. If no property is specified in a Tag path, the Value property is assumed.
List values - A list of values to write to the specified Tag paths.
Integer timeout - How long to wait in milliseconds before the write operation times out. This parameter is optional and defaults to 45000 milliseconds if not specified. [optional]
List - A List of QualityCode objects, one for each Tag path. See Scripting Object Reference.
Gateway, Vision Client, Perspective Session
system tag writeBlocking, tag.writeBlocking