Convert OPC HDA data object array to uint8 matrix
V = uint8(DObj)
V = uint8(DObj) converts the OPC HDA data object array
DObj into an uint8 matrix.
constructed as an
N array of uint8
M is the number of items in
N is the number of time stamps in the array.
DObj must have the same time stamps for each of the item IDs
DObj), othewise 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 uint8 matrix from the result:
load opcSampleHdaData; dUnion = tsunion(hdaDataSmall); vUInt8 = uint8(dUnion);