Skip to content

Useful functions

roelandheerema edited this page Jan 27, 2021 · 8 revisions

BECHAMEL includes a few functions that are typically useful for any experiment:

  1. Fixation cross with BEC_Fixation puts a fixation cross on screen of which the visual appearance is controlled by exp_settings. The participant has the opportunity to leave the experiment while the fixation cross is on screen by pressing ESCAPE.

  2. Monitor a specific keypress with BEC_WaitForKeyPress. Enter the name of one or more keys, and the function will only output when the selected key or keys are pressed. It also has an arbitrary timeout time if no keys are pressed for a very long time.

  3. Show instruction figures with BEC_InstructionScreens. You can store images in the Stimuli folder - currently there are example instruction slides from BEC_Master_Mood that were made in PowerPoint and saved as .PNG figures. This function creates a screen and puts the slides on screens. You enter either the names of the instructions (as specified in exp_settings) or you simply enter their numbers. Often, you will want to show multiple slides, say slides 5 to 8. This function allows the participant to browse back and forth through these slides with the arrow keys, avoiding that they accidentally press a key before having fully read an instruction.

Clone this wiki locally