plot

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

Plot OPC HDA data object as lines

Syntax

plot(dObj)
plot(dObj, 'Parent', AX)
plot(dObj, ....)
pH = plot(dObj, ...)

Description

plot(dObj) plots the data in OPC HDA data object dObj. Each element of dObj is plotted into the current axes as the value against its time stamp. Quality is not displayed in the plot.

plot(dObj, 'Parent', AX) plots the data into the axes of handle AX.

plot(dObj, ....) passes any additional arguments to the MATLAB® plot function. Use this syntax to define colors and line styles for the data, or to modify other properties of the plotted data.

pH = plot(dObj, ...) returns the handles to the created line series objects in pH.

In all cases, if the current plot is not held, the X-axis is updated using datetick to show date ticks instead of numeric ticks.

Examples

Load the OPC HDA example data file and plot the hdaDataVis object:

load opcdemoHDAData;
plot(hdaDataVis)

See Also

| |

Was this topic helpful?