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
287
Last Active
Roles
Member
Thanked
8

Comments

  • 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 2018
  • Now color works nice! But why does font_size or font-size not work? c = Canvas() #c.text('Regular text with a big ☺') c.text('Regular text with a big ☺') c.show()
  • [solved] sorry for bothering anyone. The new code is much easier, but it's sad that the old code does not work anymore. def TRIALhalf1(): #1st part of a trial keyR = None if fam_hand[1] == 'L' : InstL.show() key, time=lee…
  • To your question: I thought it'll be difficult to combine text (drawing from the vars) and pictures (.jpg) in one canvas. With OpenSesame 3.2 it works fine Thanks! I would like to change font_size and color of just part of the text (the smile…
  • You may also use inline_scripts. Then you can prepare the pictures beforehand. With many pictures it may take some seconds at the start of the experiment, but during the experiment (loops) there is no delay at all
  • I would put it into one .osexp. Start with a sequence item. Put the three experiments into that sequence and use the "Run if".
  • Hi cogexp, your title is somewhat confusing. Would be better 'Var of session_nr" ? There is a fixed subject_nr within the experiment which is always logged. If you want the session_nr to be logged you may use this inline_script i wrote for one …
  • Just noticed it myself. You'll always get x.00 sec with that. Solution: format(var.yourRT/float(1000), '.2f') + ' sec' Now it works, i think.
  • try this: var.counter=0 if exp.feedbackvariable == 'green': var.counter=var.counter +1 log.write_vars I am not sure. But maybe it helps?
  • I do not exactly understand what you mean. But maybe your problem is a logging problem. If you do not want the second variable (whatever its called, maybe Circle_Blue2?) to vary, you need to log the changes in your inline script. use log.write_v…
  • Dear Bird i had the same problem just yesterday! solved it this way: format(var.yourRT/1000, '.2f') + ' sec' There you go. Greetz Stephan
  • Hi there, i was looking for the same thing. And probably it would help everyone if there was a python code (based on text_input_form) which is accessible to everyone. So everybody could just paste it into an inline_script and that's it. It shou…
  • As far as i understood, you did not use a loop. (In a loop you may have repeated your block (=sequence ) also without randomization). In a loop you need to define the new variables depending on the loop repetitions. Anyway, you just copied the bloc…
    in Feedback Comment by DahmSF April 2017
  • Hi erwinwirne, I imagine that your blocks are randomly selected in a loop, right? You may use the standardvariables as "correct_response" in combination with the variable that counts the loop. Just count them in an inline_script for each repetitio…
    in Feedback Comment by DahmSF April 2017
  • Dear wooyou, If you have a complicated sequence maybe this helps you: http://forum.cogsci.nl/index.php?p=/discussion/2345/serial-reaction-time-task-srt#latest If you have a simple sequence. Just put your items into a loop. And select the rand…
  • Hi Paul, whether Excel recognizes "." or "," depends on both a) your setting on the computer (Windows language) b) the settings in Excel (decimal mark) By the way: you should really not use Excel for your data analysis. ;-) Hope this helps …
  • Hi Irem, is this what you are looking for? http://www.cogsci.nl/forum/index.php?p=/discussion/2892/set-an-incompressible-duration-of-sketchpad-while-recording-response-time
  • Hi Irem, Hide cursor: I had the same thing once. You may look into my old forum discussions. The solution. An inline_script with this text. mouse().show_cursor(False) Just put it at the position where you want the cursor to disappear. I did…