-
feedback
by zsc ·if var.stop_signal == 1 and var.correct == 1: #stop_signal == 1 -> 0 = stop trial; 1 = go trial -
Implementing variable restrictions in full factorial designs
by sebastiaan ·Hi Franziska, -
[solved] Variable Interstimulus Interval (ISI)
by eduard ·#variable fixation durationvar.fix_bottom = 250var.fix_top = 750f = range(var.fix_bottom, var.fix_top)#shuffle list:import randomvar.fixation = random.choice(f)#variable stimulus durationvar.stim_bott -
Sampler for different conditions
by Jarik ·*http://osdoc.cogsci.nl/3.1/tutorials/beginner/#step-4-add-images-and-sound-files-to-the-file-pool -
[solved] Variable Interstimulus Interval (ISI)
by zsc ·#variable fixation durationvar.fix_bottom = 250var.fix_top = 750f = range(var.fix_bottom, var.fix_top)#shuffle list:import randomvar.fixation = random.choice(f)#variable stimulus durationvar.stim_bott -
Synching video playback and joystick axis data collection (multiple times per trial)
by PalaceGreen ·== 'xpyriment': surface = exp.window#set a regularly occurring event every 200 ms. Joystick data will be collected every time one of these events occurs (sampling rate of 5 Hz).BEEP = pygame.USERE -
Randomly playing wav. files from the file pool.
by Flippy ·#90 sounds #Sound play: sound = str(random.choice(sound_list)) #chose a random item of the list src = pool[sound] #get the path of tha -
Parallel loops
by Flippy ·für Thread 2 #thr1.start() #Starte Thread 1 thr2.start() #Starte Thread 2 #thr1.join() #Hinzufügen von Thread 1 zum Mainthread thr2.join() #Hinzufügen von Thread 2 zum Mainthread retur -
changing text colour as a variable
by eduard ·Hi esther, -
Response time during video display
by cletess ·#initiate the video loop while go: #set the frame rate to 20fps and wait if too fast FPSCLOCK.tick_busy_loop(20) # Get a frame and break the loop if we failed, usually beca -
text alignment in forms with right-to-left text
by sebastiaan ·I'm afraid not. The alignment is handled by the text-rendering module, so it works the same regardless of how you render text. -
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 -
Presenting two images
by Jarik ·* http://osdoc.cogsci.nl/3.1/tutorials/beginner/#step-3-fill-the-block-loop-with-independent-variables -
conflict for feedback element?
by eduard ·Hi, -
need some ideas for the programming part of the experiment
by oriane_g26 ·aList [4] yield aList [5]recup_index = index()#specify the end type to choose for target stories and for control stories #specify for target stories the end type to choose:if var.category == & -
basic button response for use on tablets
by sebastiaan ·* http://osdoc.cogsci.nl/3.1/tutorials/capybara/#step-10-define-the-touch-response -
log all key presses
by DahmSF ·kb = keyboard(keylist = ['f','g','h','j','LSHIFT','RSHIFT','d','k']) A = canvas() A.text('A') B = canvas() B.text('B') #seq=[1,2] #print seq, len(seq), (len(seq)-1) seq = [A,B]*5 -
Pulling up a different canvas depending on the variable
by tnells ·from openexp.canvas import canvasfrom openexp.keyboard import keyboard#settingstimeout1 = var.tar_present_time #target presentation durationtimeout2 = var.keyboard2_time #fixation canvas durationtim -
[wishlist] What would you like to see in OpenSesame?
by sebastiaan ·* http://osdoc.cogsci.nl/3.1/manual/structure/loop/#shuffle_horiz