Convert OPC HDA data object array to int32 matrix
DObj must have the same time stamps for each of the Item IDs
DObj), otherwise an error is generated. Use
resample to generate an OPC HDA data object containing the same time stamp for
all items in the object.
Load the OPC HDA example data file, convert the
hdaDataSmall object to have the same time stamps, and create an
int32 matrix from the result.
load opcSampleHdaData; dUnion = tsunion(hdaDataSmall); Vint32 = int32(dUnion);
DObj— OPC HDA data
OPC HDA data, specified as an OPC HDA data object array.
Vint32— OPC HDA data values
OPC HDA data values, returned as an
Vint32 is constructed as an
N matrix of
M is the number of items in
N is the number of time stamps in the array.