SaveBpodSessionData
SaveBpodSessionData()
SaveBpodSessionData()
Description
Saves the struct BpodSystem.Data to disk.
The file name is determined automatically based on selections made in the launch manager, and the current time.
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 = RunStateMatrix;
BpodSystem.Data = AddTrialEvents(BpodSystem.Data, RawEvents);
SaveBpodSessionData;
end