Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

DahmSF

About

Username
DahmSF
Joined
Visits
145
Last Active
Roles
Member
Thanked
1

Comments

  • Thank you for that solution. If you change the color, my workaround does not work anymore, because it logs var.Resp= 5 So i used your monkey-patch. Maybe it helps someone else who wants to assess educational levels. var.Phase='education' var…
  • Hi Gisel, in a new experiment. make a sequence. Put the inline_script and a logger item behind. That's it. Try the code if it fits for your porpuse. Then adopt it as you need it. The standard amount 100 keeps always the same as in the pictu…
  • Probably this can be done without inline_scripting too. But here is a way to do it with inline_scripting. space = keyboard(keylist = ['SPACE']) # your response on the keyboard list_num = range(10) # or [1,2,5,7,13] ALPHA = [] #create a list wi…
  • Try this: RespKeys = keyboard(keylist = ['x','m']) # your responses on the keyboard var.low=50 #starting value var.high=100 #starting value for i in [2,4,8,16,32]: Stim=canvas() Stim.text('Please select x for: '+str(var.low) + ' or sel…
  • So the easiest and most convinient way is what i wrote you. 1. Save one big log file. 2. When the data of all subjects is collected, put all logfiles together. 3. Then delete the irrelevant rows and cols. Save it with a new name for researcher…
  • Unfortunately, it did not help. With xrange it stopped after i=58 With two seperate loops range(107) and range(107,214) it stopped after i=111 I tested the original range(214) twice and it stopped after i=115 For the new runs i closed OpenSesame…
  • Stuck means: Nothing goes. I need to open the task manager to shut down OpenSesame. Not even Escape button works.
  • I now created a list of names. And based on this list i kind of overwrite the same canvas object 214 times (I have 214 images). However, it always get's stuck at i=115. Any idea why? Here is part of the code: #prepare the picture (more is not …
  • Old post, same problem my_mouse.set_pos(pos=(0,375)) works fine in window mode ('quick run') but not in fullscreen. I am using xpyriment because of timing. The mouse is always set to pos=0,0 in fullscreen.
  • Hi S_H, you can put an inline_script at the end of each of your experiments that logs at this certain point: import shutil,os,datetime backup_path = os.path.join(var.experiment_path,"Logfile") if not os.path.isdir(backup_path): os.makedirs…
  • Hi Sebastiaan, you are right. It's annoying, but not really a problem. I now figured out that the bug only occurs in the 'quick run' but not in 'Run fullscreen'. Hence, it's even less a problem. To your answer: Sometimes the python crash i…
  • Ah, now i see. Just put your logger at the end of the experiment. At the moment it is set into the loop. That's not the correct position.
  • Hi Sylvain, Have you tried it with xpyriment backend? You can select the backend in the main settings by clicking on "new experiment". If you want to have Diff time_pres to be close to 1000ms, do not use clock.sleep (1000), but clock.sleep (995)…
  • Hi Flippy, Here a code with mouse clicks. This code works with two Items on one page. You need to find the rectangles (x,y coordinates) of your canvas on your own StrengthOfRep = canvas() StrengthOfRep.image(pool['StrengthOfRep.tif']) list_x…
  • I always work with these standard settings in the "general options": Foreground black Background white Font mono 18px With that it looks nice.
  • And for those who need an ID_code Info: use Bday and ID_code a) to check whether a participants participates twice in the same experiment b) or whether the same participant participated in two of your experiments def ID_code_validator(): …
  • Thanks for this masterpiece http://osdoc.cogsci.nl/3.2/manual/forms/validation/ I changed the code a little to get the exact age with Birthday. Here is the code for anyone who is interested def my_form_validator(): """Checks whether bo…
  • I also thought about the two lists, but there was the problem with the shuffling. Great idea to shuffle i and not the list! Nice! Thanks! OS Team you are the BEST!
  • Hi Sylvain, thanks for your answer but that does not help. My stimuli are first created and put into a list. The list is shuffled. Then i present them in a sequence. I want to log the presented stimulus before each response. Usually i made a…
  • Hi Lea, my question was how you open the csv-file. I would recommend you to you R not Excel. If you use Excel open an empty Excel sheet and then go on import from text data. See the link above.
  • Hey Lea, this looks strange. Did you open the logfile correctly? See detailed description http://osdoc.cogsci.nl/3.2/manual/logging/
  • solved COR2_list = [] for i in range(3): COR2_list.append(str(i)) COR2_list[i] = canvas() path = pool['Folie'+str(i+3)+'.tif'] COR2_list[i].image(path) COR2_list[i].show() key, time = target.get_key() var.Resp = k…
  • Hi Sylvain, some thoughts: 1. my_keyboard.flush() does not make sense in prepare phase 2. why do you insert a loop, and do not write it in python code? The rest is written in python code. Not sure whether this might fix your problem. But it's w…
  • The problem seems to come up with copy/paste or something within the text. Not sure what it is. Here's the text.
  • posting a new post was possible And even in a new post, it is possible. [seems like it is the color size of text post, that does not like me anymore. I just wanted to post, how i solved it.]
  • Hi Strako, you assume something trivial? Here, some simple questions: 1. Have you put a logger_item at the end of your experiment? 2.1. Have you tried to put log.write_vars() into your loop? Not just when it's ended. 2.2. I do not see that yo…
  • Hi akca_ece, Also think outside the box. Do you have the same problem with other programs? What's your connection of the input device? I noticed that I get a delay if my keyboard has a USB connection. So it's better to use parallel port or the …
  • As you say. You are new. Some questions: 1. Do you request just one keypress? L or R? Then just use a keyboard response. 2. Do you request several keypresses and know how many there will be? Just use your amount of keyboard responses (Maybe in a f…
  • Hey BJ, you could also put this in the prepare phase fixation1 = visual.GratingStim(win, size=15, pos=[0,0], sf=0, color='yellow', mask='circle') But i did not understand what's the problem. Could you explain further what exactly happens th…
    in Timing issues Comment by DahmSF May 16