MATLAB Python

getSPTBprefs

Syntax

prefs = getSPTBprefs([,'new_sptb_dir'] [,'new_raw_dir'] [,'new_mod_dir'] [,'new_group_dir'] [,'new_score_dir'] [,'new_aux_raw_dir'] [,'new_aux_mod_dir'] [,'new_aux_mod_dir'] [,'new_aux_score_dir'] [,'new_aux_Group_dir'] [,'new_dupcmd'] [,'happy_ending']) [] =optional parameters '' = parameter-value pairs

Description

GETSPTBPREFS is used to set and read preferences for the behaviour of SuperPsychToolbox. Parameters that can be set include things such as the location of the participant data directory, and functions that are called by endSession.

Usage

prefs = GETSPTBPREFS(param1,val1,param2,val2...) sets various preferences for the behaviour of SuperPsychToolbox and returns the updated values. Parameters are case-insensitive, and each string parameter name must be followed by a value as indicated: 'new_sptb_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to reflect a new general Participant Data folder location. Default: [] 'new_raw_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to specifically reflect a new Raw data folder location. Default: [] 'new_mod_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to reflect a new Modified Data folder location. Default: [] 'new_score_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to reflect a new Scored Data folder location. Default: [] 'new_group_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to reflect a new Group Data folder location. Default: [] 'new_aux_raw_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to specifically reflect a new Aux Raw data folder location. Default: [] 'new_aux_mod_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to specifically reflect a new Aux Raw data folder location. Default: [] 'new_aux_score_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to specifically reflect a new Aux Raw data folder location. Default: [] 'new_aux_group_dir' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to specifically reflect a new Aux Raw data folder location. Default: [] 'new_dupcmd' String. Calling GETSPTBPREFS() with this parameter updates the SPTB user preferences file to reflect a command to run when a session is ended, where $file in your command is substituted for the datastruct. For example, you could use rsync -avz -e "ssh" $file myuser@myserver:/my_folder to immediately transfer your datastruct to a central server once a session is over. Default: [] 'happy_ending' Two-cell array. When endSession completes successfully, a system call can be made e.g., to advise an experimenter that the session is over. The two parts of this cell array go into a system call with a string about the completed session. The first part precedes the string, and the second cell goes follows it. For example, {'echo ',' > myfile.txt'} would save this "finished" message to disk. Default: []