メインコンテンツ

uint32

R2026b

Convert OPC UA data object array to uint32 matrix

Description

vUint32 = uint32(dObj) converts the OPC UA data object array dObj into a uint32 matrix.

dObj must have the same time stamps for each of the nodes (elements of dObj), otherwise an error is generated. Use tsunion, tsintersect, or resample to generate an OPC UA data object containing the same time stamp for all nodes in the object.

example

Examples

collapse all

Load the OPC UA example data file, convert the uaDataVis object to have the same time stamps, and create a uint32 matrix from the result.

load opcSampleUaData;
dUnion = tsunion(uaDataVis);
vUint32 = uint32(dUnion);

Input Arguments

collapse all

OPC UA data, specified as an OPC UA data object array. For more information, see Data.

Output Arguments

collapse all

OPC UA data values, returned as a uint32 matrix. vUint32 is constructed as an M-by-N matrix of uint32 values, where M is the number of data values in dObj and N is the number of nodes in the array.

Version History

Introduced in R2011a

See Also

Functions