Main Content


Class: opc.hda.Data
Namespace: opc.hda

Intersection of time stamp in OPC HDA data object


NewObj = tsintersect(DObj)


NewObj = tsintersect(DObj) resamples data in OPC HDA data object DObj so that all elements of the object have the same time stamps given by the intersection of all time stamps in all elements of DObj.

If DObj contains elements with the same item ID, those elements are combined into one element. So the size of NewObj might be smaller than the size of DObj.


Load the OPC HDA example data file and find all common values of hdaDataSmall:

load opcSampleHdaData;
newObj = tsintersect(hdaDataSmall);

Display the values and qualities of the new object: