The control package of expyriment.
End expyriment.
Parameters : | goodbye_text : str, obligatory
goodbye_delay : int, optional
confirmation : bool, optional
fast_quit : bool, optional
system_exit : bool, optional
|
---|---|
Returns : | out : bool
|
Check if the audiosystem is busy playing sounds.
Parameters : | channel : pygame.mixer.Channel, optional
|
---|---|
Returns : | out : bool
|
Return a dictionary with all default values in the current Expyriment environment. The keys represent the variables names.
Parameters : | search_str : str, optional
as_string : bool, optional
|
---|
Initialize an experiment.
This initializes an experiment defined by ‘experiment’ as well as the underlying expyriment system. If ‘experiment’ is None, a new Experiment object will be created and returned. Furthermore, a screen, a clock, a keyboard and a event file are created and added to the experiment. The initialization screen is shown for a short delay to ensure that Python is fully initialized and time accurate. Afterwards, “Preparing experiment...” is presented on the screen.
After experiment initialize the following additional properties are available:
Parameters : | experiment : design.Experiment, optional
|
---|---|
Returns : | exp : design.Experiment
|
Return True if IDLE is running.
Return True if IPython is running.
Pause a running experiment.
This will show a pause screen and waits for ENTER to be pressed to continue.
Register a wait callback function.
The registered wait callback function will be repetitively executed in all Expyriment wait and event loops that wait for an external input. That is, they are executed by the following functions (at least once!):
control.wait_end_audiosystem, misc.clock.wait, misc.clock.wait_seconds, misc.clock.wait_minutes io.keyboard.wait, io.keyboard.wait_char, io.buttonbox.wait, io.gamepad.wait_press, io.triggerinput.wait, io.mouse.wait_press, io.serialport.read_line, io.textinput.get, stimulus.video.wait_frame, stimulus.video.wait_end
Parameters : | function : function
exp : design.Experiment, optional
|
---|
Notes
CAUTION! If wait callback function takes longer than 1 ms to process, Expyriment timing will be affected!
Run the Expyriment test suite.
Set defaults for a more convenient develop mode.
Parameters : | onoff : bool
intensive_logging : bool, optional
|
---|
Notes
The function set the following global variables
>>> expyriment.control.defaults.initialize_delay = 0
>>> expyriment.control.defaults.window_mode = True
>>> expyriment.control.defaults.fast_quit = True
>>> exypriment.control.defaults.auto_create_subject_id = True
>>> expyriment.io.defaults.outputfile_time_stamp = False
Start an experiment.
This starts an experiment defined by ‘experiment’ and asks for the subject number. When the subject number is entered and confirmed by ENTER, a data file is created. Eventually, “Ready” will be shown on the screen and the method waits for ENTER to be pressed.
After experiment start the following additional properties are available:
Parameters : | experiment : design.Experiment, optional (DEPRECATED)
auto_create_subject_id : bool
|
---|---|
Returns : | exp : design.Experiment
|
Start the audio system.
Stop the audio system.
Unregister wait function.
Parameters : | exp : design.Experiment, optional
|
---|
Wait until audiosystem has ended playing sounds.
Blocks until the audiosystem is not busy anymore and only returns then.
Parameters : | channel : pygame.mixer.Channel, optional
|
---|