Main Content

arrayHasSameTimeStamp

R2026b

Verify if all elements in OPC UA data object have same timestamp

Description

sameTimestamp = arrayHasSameTimeStamp(dObj) returns true if all the elements of dObj have the same timestamp.

example

Examples

collapse all

Load the OPC UA example data file and verify if all the elements of the uaDataSample object have the same timestamp.

load opcSampleUaData;
tf = arrayHasSameTimeStamp(uaDataVis)
tf =

  logical

   0

Form a new data set using tsunion, and verify if all elements have the same timestamp.

uaUnion = tsunion(uaDataVis);
unionSameTimestamp = arrayHasSameTimeStamp(uaUnion)
unionSameTimestamp =

  logical

   1

Input Arguments

collapse all

Raw OPC UA data, specified as an OPC UA data object.

Output Arguments

collapse all

Indication that data object array has same timestamp, returned as logical 1 or 0. A value of 1 indicates that all the elements in the data object array have the same timestamp.

Version History

Introduced before R2006a

See Also

Functions