writeValue
Write values to nodes on OPC UA server
Description
writeValue(
        writes content of uaClient,nodeList,values)values, to the nodes identified by
          nodeList. You can browse for node objects using browseNamespace. You can also create nodes using opcuanode.
If nodeList is a single node, then values is the
        value written to the node. If nodeList is an array of nodes,
          values must be a cell array the same size as
          nodeList, and each element of the cell array is written to the
        corresponding element of nodeList.
The data type of the value you are writing does not need to match the node
          ServerDataType property. All values are automatically converted
        before writing to the server. However, a warning or error is generated if the data type
        conversion fails. For DateTime data types, you can pass a MATLAB datetime
        or a number; any numeric value can be interpreted as a MATLAB datetime.
To confirm what size arrays can be written to a node, check the
          ServerValueRank and ServerArrayDimensions
        properties of the node: 
- A - ServerValueRankvalue of- -3indicates a scalar or 1-dimensional array,- -2indicates any size array,- -1indicates a scalar,- 0indicates an array with 1 or more dimensions, and a positive value indicates the number of dimensions.
- If the number of dimensions is fixed, - ServerArrayDimensionsis an array specifying the maximum possible length of each dimension. A value of- 0for a dimension length indicates no limit.- For example, if a node supports 2-dimensional arrays of a maximum size of 64-by-32, - ServerValueRankhas a value of- 2and- ServerArrayDimensions- [64, 32].
writeValue(
        writes content of nodeList,values)values, to the nodes identified by
          nodeList. All nodes must be of the same connected client.
Examples
Input Arguments
Version History
Introduced in R2015b