lvanderlinden
About
- Username
- lvanderlinden
- Joined
- Visits
- 1,620
- Last Active
- Roles
- Administrator
Comments
-
Hi Felix, The part of code you'll need is the following. It should be put in the Prepare phase tab of an inline_script item that is placed after the form_multiple_choice item(s): while True: # Prepare and run the multiple choice forms (you'll h…
-
Hi Felix, You will need a bit of Python inline code to do this. The logic is explained in this post (my first comment in this discussion): * http://forum.cogsci.nl/index.php?p=/discussion/197/solved-multiple-response-collection-on-one-page Becaus…
-
Hi, Perhaps I didn't get the question, but why don't you simply paste it to LibreOffice Writer (or OpenOffice, or Word)? That works really well. Maybe the reason that pasting to spreadsheets doesn't give the expected result, is that the tables hav…
-
Hi, If the two possible answers to give to the first question are indeed yes and no (case sensitive), the logic for the subsequent run-if statements will be: For the "yes" sequence: [response] = yes For the "no" sequence: [r…
-
Perfect! I'm glad to hear! :)
-
Hi Merel, I thought the idea was to show the participant one equation per trial: * show equation * collect the response * log all variables from the current trial etc. If this is indeed what you want, I think the above method should work. I just…
-
Thank you very much for the response!! :)
-
Hi Merel, One solution that comes to mind is to change your dictionary into a list of smaller lists. In the smaller lists, the first element is the question, the second one is the correct response, and the third one is the type. For example: Defi…
-
Hello, One possibility is that you define at the beginning of every block a list with all possible durations: * Append an inline_script item to your block sequence, and place something like the following code in the Prepare tab: # Make a list wit…
-
Hi, Welcome to the forum. As the above message already tells you, you can find the full error message in the debug window. You can open the debug window by pressing the ladybug item. (Image) Could you perhaps provide us with the full error mess…
-
Hi Ben, You cannot use the square-bracket syntax when using Python code. Instead, you should use self.get() to retrieve an in-the-GUI defined variable in an inline_script. So: # Retrieve the variable 'number', which is set in a loop item:# Thus: F…
-
Hi JB, In that case I guess the best idea is to * Append a keyboad_response item after the presentation of the test word and let the experimenter make a button press depending on the accuracy of the participants verbal response. Choose a button fo…
-
Hi JB, Welcome to the forum! Just a quick question: (Quote) Does this mean your participants make a verbal response?
-
Hi Njord, You could determine the path of the directory in which your OpenSesame is placed by using the following piece of Python inline code: currentPath = self.get('experiment_path') Does that help? Cheers, Lotje
-
Hi Ben, Inline_script items require Python coding, whereas sketchpad items require OpenSesame coding. You cannot mix the two. In your case, I think it's best to determine which picture to show in your inline_script item, and to subsequently set th…
-
Hi Marie, Welcome to the forum! Building an Approach Avoidance task is certainly possible with OpenSesame. Did you already go through the step-by-step tutorial? I think by doing that, you'll already find an answer to the 1st and 3rd question. Did…
-
Hi Boris, Yes, that's possible! :) import oscurrentPath = self.get('experiment_path')dstPath = os.path.join(currentPath, "my_output.csv")myfile = open(dstPath, 'wb') Cheers, Lotje
-
Hi Nina, That sounds good! Don't hesitate to ask any further questions. Cheers, Lotje
-
Hi, If you're looking for the response times per trial, you should use the variable 'response_time', which is never undefined. The variable 'avg_rt' contains the average response time of all previous responses (until you reset the variable) and co…
-
Hi Nina, I'm not exactly sure whether I understand your design. The sketchpad should be presented for 4000 ms, but: * You only want to wait for 900 ms before playing the sentence * and the interval between sentence (offset?) and word (onset?) is o…
-
You're welcome! :)
-
Hi Boris, Thanks for providing us with your inline scripts, that really helped! I think the "test_1.csv" file is saved in your Home folder. Could that be it? To save it in another directory: import osdst = os.path.join("/home/lotje…
-
Hi, (Quote) Yes! I think what was going on in your previous design, is that the experiment freezed/paused for 500 ms after sketchpad onset. Therefore, no response could be collected during this interval. Only after 500 ms, your experiment advanced …
-
Hi, (Quote) Yes! In order to make in-an-inline-script-defined variables available in the GUI (e.g. the logger item) as well, you should set them at the end of you inline script by using the exp.set() function. For example: exp.set("session_nr…
-
Hi, Could you perhaps provide us with some more information, for example by sharing the experimental script or making a screenshot of your experimental overview? And by making a screenshot of your output table? To upload your experiment you could …
-
Hi Joshua, If you set the duration of the sampler item to 0 ms, the experiment will advance immediately, while stilling playing the sound in the background. Does that help? Best, Lotje
-
Closed as duplicate of #744.
-
Hi Boris, Why would you want to log your variables manually, rather than by appending a logger item to the end of your trial sequence? (Image) About your Python code: you didn't define the variable 'final_list' before using it. Could that be it?…
-
Hi, If you want a given variable to have a different value for, for example, every trial, it's more convenient to define this variable via a loop item. Did you already read this page? * http://osdoc.cogsci.nl/usage/variables-and-conditional-state…
-
Hi Rotem, Could you please provide us with * your sketchpad script * and the error message? Cheers, Lotje