This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

uint32

Package: opc.hda

Convert OPC HDA data object array to uint32 matrix

Syntax

Vuint32 = uint32(DObj)

Description

example

Vuint32 = uint32(DObj) converts the OPC HDA data object array DObj into a uint32 matrix.

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

Examples

collapse all

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

load opcSampleHdaData;
dUnion = tsunion(hdaDataSmall);
Vuint32 = uint32(dUnion);

Input Arguments

collapse all

OPC HDA data, specified as an OPC HDA data object array.

Output Arguments

collapse all

OPC HDA 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 items in DObj and N is the number of time stamps in the array.

See Also

Functions

Introduced in R2011a