![]() ![]() The break-if statement of the loop is only checked after each complete trial cycle). participants could just take a break while the third keyboard is pending. Lastly, it could be that the time is reached during one of the five keyboard items (e.g. In the last inline of the trial sequence you would add the following lines: if self.time() - exp.start_time >= 30000: In the same inline script you can insert exp.start_time = self.time(). This implies you have to initiate exp.time_reached = False in an inline script prior to entering the block loop. In order to do this, go to the loop item and tick the 'extra options' box to reveal a break-if statement. Now comes the question of how to repeat the trial sequence for exactly 30 seconds. In the inline_script you'd insert something like: if total_response = desired_sequence: The desired sequence could be stated in the block loop item for instance. 'adgka' in case of a correct sequence) to the desired sequence. ![]() In the very last inline script, you'll then want to compare the final string (e.g. After each keyboard item, you'll have an inline script with total_response += exp.response in the run-phase. So prior to the first keyboard item, you'll have an inline script with e.g. It would be best to intersperse these keyboard items with inline scripts, wherein you add the latest response to a string of responses. Within the trial sequence, you'll want to have 5 keyboard response items, all with an infinite timeout duration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |