-
Synching video playback and joystick axis data collection (multiple times per trial)
by PalaceGreen ·= []timedata2 = []timeframe = []timeframe2 = []#initialize joystickself.my_joystick = pygame.joystick.Joystick(0)self.my_joystick.init()#record start time of the trialStart_time = self.time()exp.set( -
Measuring how much time a button was pressed
by Jarik ·You can copy the code in an inline item that follows a sketchpad item for example. This sketchpad item can have a duration of 0 milliseconds so it advances to your inline code immediately. You can us… -
Moving texts and shapes using canvas functions
by Clem ·i) I'm struggling to place the text at the center of the shape. It is centered at the #initial screen# but for some reasons, starts from above the rectangle when the animation starts. I'm assuming I d -
Randomly playing wav. files from the file pool.
by Flippy ·i=1 #control variablesound_list = [] #initializationwhile i <= 90: #90 sounds sound_list.append(& -
Response time during video display
by cletess ·dimensions video = cv2.VideoCapture(path) #initiate the video with a keypress and start the clock key = None while key == None: for event in pygame.event.get(): if event.ty -
Several correct touch responses
by Pascal ·Hi Candice, -
Keyboard Timeout set to a jitter
by mckd ·from random import randint#start timert0 = clock.time()#calculate jitter lengthoffset_time = randint(850, 1150)#initiate keyboard, set wait time to the jittermy_keyboard = keyboard(keylist=['space', ' -
Keyboard Timeout set to a jitter
by mckd ·from random import randintfrom openexp.keyboard import keyboard#start timert0 = clock.time()#calculate jitter lengthoffset_time = randint(850, 1150)#initiate keyboard, set wait time to the jittermy_ke -
Problem connecting Open Sesame to Eyelink
by rrr ·See http://osdoc.cogsci.nl/3.1/manual/eyetracking/eyelink/#installing-pylink. -
Problems with music running in experement
by Jarik ·* http://osdoc.cogsci.nl/3.1/manual/python/about/#inline_script-items -
Attempting to have a form_base call upon variables from an inline-script
by TroyS ·As the title says, I'm attempting to have variables displayed in an inline script to no avail. -
Problem with sending parallel-port-triggers (EEG)
by TheAdriWest ·#Inlinescript 1#Init Trigger at the beginning of the experiment try: from ctypes import windll global io io = windll.dlportio # requires dlportio.dll !!! -
MAC retina version GUI issue
by Daniel ·at http://osdoc.cogsci.nl/3.1/dev/fromsource/#installing-with-homebrew, although I admit it might be a bit outdated (as OpenSesame has added some dependencies over the last few versions). If you ins -
[Help needed] Callback function with Pyaudio implying unknown error
by G_Merlhiot ·#Initiate -
[open] pygaze_drift_correct
by sebastiaan ·* http://osdoc.cogsci.nl/devices/pygaze/#install-from-source -
[open] ISI with fixed intervals
by mfp49 ·# Here we will determine the random duration between 400 and 600 ms:# Import the Python module random:# See also: http://docs.python.org/2/library/random.htmlimport random# Use the function random.ran -
[open] ISI with fixed intervals
by mfp49 ·# Here we will determine the random duration between 1000 and 2500 ms:# Import the Python module random:# See also: http://docs.python.org/2/library/random.htmlimport random# Use the function random.r -
[open] media_player_gst not working in fullscreen mode
by Daniel ·from multiprocessing.pool import ThreadPoolfrom openexp.synth import synthfrom openexp.keyboard import keyboard#Initialise componentsexp.keybrd = keyboard(exp, keylist=['SPACE'], timeout=2000)exp.soun -
[open] RuntimeError: Unknown Command
by ckoops ·We have the Eyelink software running on the display PC which is connected via Ethernet to our PC running OpenSesame. The connection works, as far as we have been able to see. On the OpenSesame PC, we' -
[solved] Custom forms: How to activate a 'Next Button' only when a checkbox is chosen
by Josh ·It seems that there is no simple option or command to take care of this directly (based on http://osdoc.cogsci.nl/forms/form-variables/#in-custom-forms)