Skip to content

TimePlot

Alexius Wadell edited this page Jan 18, 2017 · 1 revision

Syntax

ds.TimePlot(ChannelName)

ds.TimePlot(ax,__)

ds.TimePlot(__, 'unit', channelUnit)

Description

ds.TimePlot(ChannelName) Creates a time plot of the channel data logged by ChannelName for datasource ds.

ds.TimePlot(ax,__) Creates the plot on the axes ax instead of the current axes (gca)

ds.TimePlot(__, 'Name', Value) Additional optional parameters can be passed to the Histogram using Name-Value pairs

Input Arguments

ChannelName

The name of the channel used to generate the histogram plot. For a list of possible channel see allLogged.

ax

The axes in which to plot, specifed as an axes object. Defaults to the current axes (gca)

Name-Value Pair Arguments

'unit' -- Unit System

Sets the units used to report the channel values - See getChannel

Example

Goal: Plot an Engine RPM trace

dm = Datamaster;
ds = dm.getDatasource('limit', 1);

ds.TimePlot('Engine_RPM', 'unit', 'rpm');