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. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Class: opc.hda.Data
Package: opc.hda

True if all elements of OPC HDA data object have same time stamp vector


tf = arrayHasSameTimeStamp(dObj)


tf = arrayHasSameTimeStamp(dObj) returns true if all the elements of dObj have the same time stamp.

Use tsunion to ensure that the time stamps of an OPC HDA data object are the same.


Load the OPC HDA example data file and see if the hdaDataSmall object has the same time stamps in all elements:

load opcSampleHdaData;
tf = arrayHasSameTimeStamp(hdaDataSmall);

Form a new data set using tsunion, and check the time stamps again:

hdaUnion = tsunion(hdaDataSmall);
tfU = arrayHasSameTimeStamp(hdaUnion)

See Also

Was this topic helpful?