BpodSystem_Data

BpodSystem.Data

Description

Stores session data.

  • Typically stores the output of AddTrialEvents and other data added as subfields.

  • Can be saved automatically with the SaveBpodSessionData function.

Example

% 1. This code sends "sma" (an existing state matrix) to Bpod, runs it 10 times, and packages the raw events for analysis.

% It then saves them to disk on each trial.

SendStateMatrix(sma);

for i = 1:10

RawEvents = RunStateMatrix;

BpodSystem.Data = AddTrialEvents(BpodSystem.Data, RawEvents);

SaveBpodSessionData;

end