adding a new response screen to a task


Author
Message
luca7
luca7
Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)
Group: Forum Members
Posts: 25, Visits: 68
Dear Inquisit users,
I’d like to modify the "Self-Paced Reading Task" available in the task library and, as a beginner user of Inquisit 4, I would really appreciate your input.

The task consists in reading sentences word by word: after pressing the spacebar it appears the first word of the sentence, press again and appears the second word of the sentence, etc.
The script in the task library already does it.

I would need to add the following to that task:
at the end of each sentence it should appear in a new screen a comprehension question and participants need to answer correct/incorrect.

So, I’m kindly asking your input on the following:
1) how do I show a comprehension question once a sentence has been read (reading a sentence has no time limit)? Would /responsetrial or /branch do it by pointing to a trial with my comprehension question?
2) sentences and comprehension questions must be linked. How can I organize the trials in a way that sentences and comprehension questions are associated (given a sentence it must follow a certain comprehension question)?

Below is the original code from the task (only block and trials).

Any suggestion that would help me to start is really appreciated.
Thank you.
Luca


***************************************************
    Trial Elements
***************************************************
<trial getstim>
/ ontrialbegin = [if(list.mwstims.unselectedcount==0)values.stopblock=1]
/ ontrialbegin = [values.inputstring=getitem(text.mwstims, list.mwstims.nextvalue)]
/ ontrialbegin = [values.maskstring=values.inputstring]
/ ontrialbegin = [reset(list.uppercase); reset(list.lowercase)]
/ ontrialbegin = [expressions.maskuppercase; expressions.masklowercase]
/ ontrialbegin = [values.maskstringhl=values.maskstring]
/ ontrialbegin = [expressions.maskuppercasehl; expressions.masklowercasehl]
/ ontrialbegin = [values.wincount=0; values.winstart=0; values.winend=0]
/ validresponse = (noresponse)
/ trialduration = 0
/ branch = [trial.MWtrial]
/ recorddata = false
</trial>

***************************************************
Display Moving Window Stimulus
***************************************************
<trial MWtrial>
/ ontrialbegin = [expressions.movingwindow]
/ stimulusframes = [1=background, mywindow, mywindowhl]
/ validresponse = (57)
/ branch = [if(values.winend==expressions.inputend)trial.getstim else trial.MWtrial]
</trial>

***************************************************
    Block Elements
***************************************************
<block cumulative>
/ preinstructions = (cumulative)
/ onblockbegin = [values.cumulative=true]
/ onblockbegin = [reset(list.mwstims)]
/ onblockend = [values.stopblock=0]
/ stop = [values.stopblock==1]
/ trials = [1=getstim]
</block>
***************************************************



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: 108K
> 1) how do I show a comprehension question once a sentence has been read (reading a sentence has no time limit)? Would /responsetrial or /branch do it by pointing to a trial with my comprehension question?

Yes. You need to set up a <trial> element that displays the question and collects the response. Then you need to adjust the /branch in

<trial MWtrial>
[...]
/ branch = [if(values.winend==expressions.inputend)trial.getstim else trial.MWtrial]
</trial>

to 
/ branch = [if(values.winend==expressions.inputend)trial.questiontrial else trial.MWtrial]

<trial questiontrial> then needs to /branch to trial.getstim.

> 2) sentences and comprehension questions must be linked. How can I organize the trials in a way that sentences and comprehension questions are associated (given a sentence it must follow a certain comprehension question)?

See the "How to present stimulus pairs" topic in the Inquisit documentation for details on how to link items between stimuli. The same (or some variation thereof) applies here.

luca7
luca7
Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)
Group: Forum Members
Posts: 25, Visits: 68
thank you so much, Dave!
That is very helpful.

Luca

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: 108K
I've attached a basic example to illustrate the branching logic and question setup. You'll still have to flesh out the question trial (i.e. what responses to collect etc.).

Attachments
SelfPacedReading_example.iqx (246 views, 29.00 KB)
luca7
luca7
Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)Esteemed Member (2.2K reputation)
Group: Forum Members
Posts: 25, Visits: 68
thank you very much, Dave. I really appreciate it.
That's exactly what I wanted.
Best,
Luca

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search