BpodNotebook

BpodNotebook()

Description

Displays a notebook, for taking notes on individual trials, or marking them digitally for classification based on manual criteria.

  • The written notes are saved in the BpodSystem.Data struct as a cell array of strings, with one cell per trial.

  • The digital marks are saved in the data struct as a vector named "TrialMarkerCodes".

  • The notebook is shown here:

  • The "Editing Trial#" window shows the trial whose notes and markers are currently being edited.

  • The single arrow buttons <, > select the next or previous trial to edit respectively.

  • The double arrow buttons <<, >> select the first or current trial to edit respectively.

  • Each time the function is called, the notes in the data are overwritten with the GUI data (i.e. previous trials can be selected and edited)

Syntax

On first call:

BpodNotebook('init')

On subsequent calls:

NewData = BpodNotebook('sync', Data)

Parameters

Returns

  • NewData: A struct with the current notebook data added.

Example

% This code launches the notebook GUI, and adds its entire set of notes to the data on each trial.

BpodNotebook('init');

for currentTrial = 1:1000

...Create, send and run state matrix, add and save events.

BpodSystem.Data = BpodNotebook('sync', BpodSystem.Data);

end