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 (before main loop):
BpodNotebook('init')
On subsequent calls (once per trial):
NewData = BpodNotebook('sync', Data)
Parameters
Returns
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