Contenuto principale

tsintersect

R2026b

Intersection of timestamps in OPC UA data object

Description

newObj = tsintersect(dObj) resamples data in OPC UA data object dObj so that all elements of the object have the same timestamps. The function obtains same timestamps by the intersection of all timestamps in all elements of dObj.

If dObj contains elements with the same node name, the function combines those elements into one element. So the size of newObj might be smaller than the size of dObj.

example

Examples

collapse all

Load the OPC UA example data file and find all common timestamps of uaDataVis.

load opcSampleUaData;
newObj = tsintersect(uaDataVis);

Display the values and timestamps of the new object.

newObj
newObj = 

1-by-3 OPC UA Data object array:

         Timestamp                 Double                      Float                        Int32             
    -------------------  --------------------------  --------------------------  ---------------------------  
    2015-04-22 09:00:40       40.000000 [Bad (Raw)]        30.000000 [Good (Raw)]               30 [Good (Raw)]  
    2015-04-22 09:01:30       90.000000 [Good (Raw)]       90.000000 [Good (Raw)]               90 [Good (Raw)]

Input Arguments

collapse all

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

Output Arguments

collapse all

Resampled OPC UA data, returned as an array of OPC UA data objects. Each column in the array corresponds to one node.

Version History

Introduced before R2006a

See Also

Functions