openDashboard: miTime stimuli are hidden

15 views
Skip to first unread message

Mayan Navon

unread,
Oct 18, 2020, 4:47:23 AM10/18/20
to Minno.js, Yoav Bar- Anan
Hi all,

I have a simple miTime task, in which I present several stimuli together on the screen, at the same time:
 // The behavior trial.
    API.addTrialSets('bv',
    {
        data : {condition:'basic', score:0, block:1},
        //Inputs for skipping.
        input: [
            {handle:'skip1',on:'keypressed', key:27} //Esc + Enter will skip blocks
        ],
        interactions: [
            { // begin trial
                conditions: [{type:'begin'}],
                actions: [ //Show the name image and behavior for 5000 ms.
                    {type:'showStim',handle:'border'}, // group-colored border
                    {type:'showStim',handle:'name'}, 
                    {type:'showStim',handle:'image'}, 
                    {type:'showStim',handle:'behavior'}, 
                //     {type:'showStim',handle:'All'}, // <== this shows all stims, while the individual calls show only thr border & name
                    {type:'trigger',handle:'hideBV', duration:5000} //50000
                ]
            }, 
            {//Hide all the stimuli
                conditions: [{type:'inputEquals',value:'hideBV'}],
                actions: [
                    {type:'hideStim',handle:'All'}, 
                    {type:'log'}, 
                    {type:'trigger',handle:'endTrial', duration:750}
                ]
            },
For some reason, when I play the task, the 'image' and ' behavior ' stimuli are hidden (when I inspect the trial elements I see a 'visibility: hidden' property, and I can see the stimuli if I remove that property). The other two stimuli are presented as expected.
When I use '{type:'showStim',handle:'All',' instead of calling showStim for each stimulus - everything is presented.

The trial you see here is a 'basic' trial that is later inherited.

What am I missing here? 

Here is the task (lrn.js), and here is the link to the study.


Thanks,
Mayan

Elad Zlotnick

unread,
Oct 18, 2020, 7:20:56 AM10/18/20
to Minno.js
Hi Mayan,

You are not setting the stimulus handles correctly.
Here is a sample of what the handles are:
  • border
  • neg1behaviors
  • name
  • neg1face
In order to do what you want, you need to name your stimuli according to the general labels (i.e. set the handle for all behaviors to 'behavior' instead of neg1behaviours etc.)

best,
Elad

Mayan Navon

unread,
Oct 18, 2020, 7:37:02 AM10/18/20
to Elad Zlotnick, Minno.js
Great, thanks!

--
You received this message because you are subscribed to the Google Groups "Minno.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minnojs+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/minnojs/a9fb23db-f33c-43fd-a952-27b3e579f721n%40googlegroups.com.


--
Mayan
Reply all
Reply to author
Forward
0 new messages