SaveBpodSessionData()
SaveBpodSessionData()
Description
Saves the struct BpodSystem.Data to a data file.
The file name is determined automatically based on selections made in the launch manager, and the current time.
The file is formatted as a MATLAB .mat file.
Syntax
SaveBpodSessionData()
Parameters
-None
Returns
-None
Example
% This code sends "sma" (an existing state matrix) to Bpod, runs it 10 times, and packages the raw events for analysis.
% On each trial, the session data is saved to disk.
SendStateMatrix(sma);
for i = 1:10
RawEvents = RunStateMachine;
BpodSystem.Data = AddTrialEvents(BpodSystem.Data, RawEvents);
SaveBpodSessionData;
end