Thanks for the reply @JensBoelte !
I’ve editted the task based on your suggestion. I delete the call for the library of ‘random‘ and used randchoice to pick a iti. the ‘$‘ was also removed from iti for duration.
However, when I merged the movie with the fixation into one routine, the fixation wont show up. Instead, when a movie was done playing and a key_resp was made on a response routine, the screen stayed on the response routine for 3-4 seconds and started play the next video after. This behavior is similar to my timing situation in my oroginal post where a fixation cross will last 3-4 second instead of being controlled by the iti variable
The fixation cross is only visible when movie and fixation cross (text component) were seperated into different routines. The component in this routine was ordered as code → fixation → movies. Only one line of code was in the code component “iti = randchoice([])“. The variable ‘iti’ defines both the duration (s) of the fixation cross and the start (s) of the movie.
(Movie backend is ffpyplayer in case you want to know, and psychopy yielded error messages in the runner when switched to other backend)
Below are the psychopy version:
PsychoPy 2026.1.1
Paths to files on the system:
userPrefsFile: C:\Users\Power House\AppData\Roaming\psychopy3\userPrefs.cfg
appDataFile: C:\Users\Power House\AppData\Roaming\psychopy3\appData.cfg
demos: C:\Program Files\PsychoPy\lib\site-packages\psychopy\demos
appFile: C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\PsychoPy.py
System Info:
Operating System: Windows-10-10.0.26200-SP0
Processor: Intel64 Family 6 Model 154 Stepping 4, GenuineIntel
CPU freq (MHz): 1700.0
CPU cores: 10 (physical), 12 (logical)
Installed memory: 16579715072 (Total), 5827661824 (Available)
Python info:
Executable path: C:\Program Files\PsychoPy\pythonw.exe
Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
(Selected) Installed Packages:
numpy (2.2.6)
scipy (1.14.1)
matplotlib (3.10.8)
pyglet (1.4.11)
PyGLFW [not installed]
pyo 1.0.5
psychtoolbox (3.0.19.14)
wxPython (4.2.5)
OpenGL Info:
Vendor: Intel
Rendering engine: Intel(R) Iris(R) Xe Graphics
OpenGL version: 4.6.0 - Build 32.0.101.7080
Shaders supported: True
(Selected) Extensions:
GL_ARB_multitexture: True
GL_EXT_framebuffer_object: True
GL_ARB_fragment_program: True
GL_ARB_shader_objects: True
GL_ARB_vertex_shader: True
GL_ARB_texture_non_power_of_two: True
GL_ARB_texture_float: True
GL_STEREO: False
max vertices in vertex array: 1048576