SaveBpodProtocolSettings

SaveBpodProtocolSettings()

Description

Saves the struct BpodSystem.ProtocolSettings to disk.

  • The settings in BpodSystem.ProtocolSettings are saved over the file targeted when selecting settings in the launch manager.

Syntax

SaveBpodProtocolSettings()

Parameters

-None

Returns

-None

Example

% This code checks the selected settings file to see if it has been populated - and if not, adds default values.

S = BpodSystem.ProtocolSettings; % Load settings chosen in launch manager into current workspace as a struct called S

if isempty(fieldnames(S)) % If settings file was an empty struct, populate struct with default settings

S.SoundDuration = 0.5; % Duration of sound (s)

S.RiotDuration = 7.5; % Duration of riot(s)

SaveBpodProtocolSettings; % Saves the default settings to the disk location selected in the launch manager.

end