Logging random number input irrelevant of video sequence.
Hello,
I need participants to decide if they want to see the video sequence again or not. But whichever path they choose they should type in the previously shown random number. The random number input should of course be logged for later analysis.
I have established a random number generator with an inline script and have the videos playable in the table of the loop. I tried inserting the keyboard_response item, but as far as I got was either the experiment ended when participants wanted to see the same video sequence again or the next video sequences played no matter what the participants typed. On both occasions the random number input was only partially logged (usually after seeing the next video sequence).
Can I do this with Open Sesame or must another Inline Script be inserted?
Thank You!
Dcube
Comments
Hello again
Good thing that it seems to log the random numbers though! Now it seems it is only a matter of enabling participants to either view the same video again or move to the next one. Does anyone has a suggestions? Sounds like something easy is missing, here is the arrangement of items in my experiment:
Experiment_sequence>
1st main usual sequence, is followed by:
Inline_Script>
Has the codes: exp.set('response', 'None') and is followed by:
Experiment_Loop>
The table has addresses of required videos, sequential, never to break, and evaluate on first cycle are on, which is followed by:
Sequence>
Just presents the following loop:
New_Loop>
The table has two variables: Trial_Number (set at 1) and Video (set as [VIDEOS]), set to break if [response] = y, sequential, and is followed by:
New_Sequence>
Has all the items listed much like below:
RandomNumberInlineScript>
Generates random numbers, followed by:
Sketchpad>
Positions the random numbers, followed by:
Video_Player>
Uses variables mentioned in the loop in the Video File area, such as [VIDEOS] or [Video]
Text_Input_forRandomNumbers>
This is where the shown random numbers are typed, followed by:
Logger>
Stores all the responses.
Text_Input_ToDecideToRepeatOrNext>
Informs participants to either press y to move to next or SPACE to see the same video player again.
Keyboard_Response
Allowed responses are y and SPACE.
With this arrangement of items OS replays when SPACE is pressed and logs the random numbers. But should one press y then the experiment ends rather than move to the next video sequence.
Can anyone please tell me what is missing in my experiment?
Thanks
DCube
An Inline_Script should tie the loose ends. If clicked y move to next, else repeat the same video. Can someone tell me how to write that in a acceptable language for OS please?
DCube
Or a custom python code right below the Video Player area might do the trick?
DCube
Particularly quiet these days around here. Here is the inline script that I am trying see if it works:
But the Inline Script is red so far!
The problem is that when y is pressed to Break the new_loop, the experimental_loop brakes too for some reason, leading to the end of the experiment. Why does it not moves on to the Next video sequence in the experimental_loop at this point but rather ends the whole experiment instead?
DCube
Strangest of all solutions!
Just by putting another text_input item below the new_loop, the break if command does not ends the experiment!
Could anyone provide an interpretation as to why that is so at least?
DCube
Hi DCube,
I doubt that adding merely adding another
text_inputis the sole reason why this worked suddenly. Especially, considering that your code above is not proper python code. Anyway, if it works now and you're happy with it, then everything is fine I suppose. If not, it might be a good idea to upload your experiment for us to have a better look.Thanks,
Eduard