Skip to content
SAFedorov edited this page Feb 12, 2019 · 2 revisions

The functionality to record measurements over certain periods of time is implemented in MyLogger class, which has a dedicated GUI that can be used separately for log visualization. The logger GUI Is started in independent mode by executing runLogViewer.

MyLogger

An object that incorporates a measurement timer and MyLog to store the recorded data. The measurement timer callback executes MeasFcn and appends the new data to MyLog, optionally saving it.

this = MyLogger(varargin)

Constructor.

start(this)

Start the measurement timer.

stop(this)

Stop the measurement timer.

GuiLogger

Interactive interface with MyLogger and its record.

MyLog

Object for storing of logs, with capabilities of saving in readable format and plotting.

this = MyLog(filename)

Instantiate object, optionally loading the data from a file if filename is specified. MyLog stores the measurements data, typically in the form of a numeric array each row of which corresponds to one measurement, times at which the data is taken and optional "time labels" that mark certain moments of time.

save(this, filename)

Save in a readable format. Metadata for the log (column headers and time labels) are saved as a separate text file with extension .meta.

load(this, filename)

Load log and its metadata.

plot(this, Ax, varargin)

Plot log in axes Ax. If Ax is not given explicitly, plot in current axes. Time labels are drawn by default, they can be hidden by specifying 'time_labels', flase in varargin.