Complicated linking and selection of stimuli


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
I am not sure how to answer this without (a) being able to see the current state of the actual code and (b) access to the actual image files. Please be so kind and provide both (please do not include the videos). Thanks.

SmaugWithACamera
SmaugWithACamera
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 19, Visits: 29
Hey Dave,

sure no problem. I've put the whole script and the picture files into a dropbox folder:

https://www.dropbox.com/sh/2qw2xezx3xixwyd/AACUR7r6RJquOxQ_icgJ2eaMa?dl=0

Thanks again!

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Thank you for sharing the files. Turns out this was my boneheaded mistake from the get-go. The final /onexptbegin statement after setting up the lists

<expt>
...
/ onexptbegin = [list.learningitemnumbers.reset(); ]
...
</expt>

ought to actually read

<expt>
...
/ onexptbegin = [list.learningitemnumbers.resetselection(); ]
...
</expt>

in this case to work properly. reset() would not only reset selection, but also return the <list> to its initial (empty) state. Which of course doesn't make any sense here. Sorry about that.

SmaugWithACamera
SmaugWithACamera
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 19, Visits: 29
Great! Now it works exactly as I intended. :)

Thank you very much!

I have one last question regading the presentation of stimuli:

My videos differ in length so if I use a fixed trial duration I'll have problems keeping the presentation free of confoundation because either longer videos will be cut off or there will be a longer break between trials if the videos are shorter.
Is it possible if you have one defined trial that is applied to a pool of videos to let it play out the video and then automatically move on when it's completed or is this kind of dynamic video stimulus presentation impossible?


<trial lernen_b>
/ ontrialbegin = [values.vid2 = list.vid_b_itemnumbers.nextvalue; ]
/stimulusframes = [1 = maske, fixation; 66 = vid_b_item]
/trialduration = 3000 (<--- dummy value as 3000 is too short for any video)
/recorddata = true
/ontrialend = [values.datei = (video.vid_b_item.currentitem)]
</trial>




Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Yes. Set the <trial> to some short /timeout or /trialduration and -- importantly -- set the <video> elements' /playthrough attributes to 'true'.

Edited 8 Years Ago by Dave
SmaugWithACamera
SmaugWithACamera
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 19, Visits: 29
Hey Dave,

now the experiment runs exactly how I hoped it would.

Thanks a lot for all your your help!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search