Trial - Changing stimulus (word) per keypress


Author
Message
DannyPilgrim
DannyPilgrim
Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)Partner Member (543 reputation)
Group: Forum Members
Posts: 37, Visits: 146
Hello everyone,

I had a similiar question some time ago and received a good answer so I hope that my following issue is simple as well.
Basically I am programming an experiment right now where subjects see one sentence per trial. This sentence is split into each word an presented alone in the middle of the screen. After each presented word the subject should press the space-key to proceed with the following stimulus. For example:

Trial 1:
1.1: Fixationcross
1.2: Clearscreen
1.3: "THE", (space)
1.4: "BLOKE", (space)
1.5: "HAS", (space)
1.6: "A", (space)
1.7: "HORSE", (space)

The trial ends with another space-key press and the subject receives a question (openended.example) based on the content of that trial.

I got the following Inquisit-trial as a reference. The difference here is that the words are shown for a specific time before they vanish and I like to substitute that with a keypress function/ parameter:

<trial AT2>
/ontrialbegin = [
    values.condition = 12;
    values.congruency = 0; values.fixationonset = 0; values.r_trialnum = 164;
     trial.AT2.resetstimulusframes();
  trial.AT2.insertstimulustime(clearscreen, values.fixationonset);
  trial.AT2.insertstimulustime(text.Fixationcross, values.fixationonset + parameters.clearduration);
  trial.AT2.insertstimulustime(clearscreen, values.fixationonset + parameters.clearduration + parameters.fixationduration);
  trial.AT2.insertstimulustime(text.DerG, values.fixationonset + parameters.clearduration + parameters.fixationduration + parameters.clearduration);
  trial.AT2.insertstimulustime(text.Kerl, values.fixationonset + parameters.clearduration + parameters.fixationduration + parameters.clearduration + parameters.worddurationT);
    trial.AT2.insertstimulustime(text.hat, values.fixationonset + parameters.clearduration + parameters.fixationduration + parameters.clearduration + parameters.worddurationT + parameters.worddurationT);
    trial.AT2.insertstimulustime(text.einen, values.fixationonset + parameters.clearduration + parameters.fixationduration + parameters.clearduration + parameters.worddurationT + parameters.worddurationT + parameters.worddurationT);
    trial.AT2.insertstimulustime(text.Maske, values.fixationonset + parameters.clearduration + parameters.fixationduration + parameters.clearduration + parameters.worddurationT + parameters.worddurationT + parameters.worddurationT + parameters.worddurationT);
]
/ correctresponse = ("2") / beginresponsetime = parameters.clearduration + parameters.fixationduration + parameters.clearduration + parameters.worddurationT + parameters.worddurationT + parameters.worddurationT + parameters.worddurationT
/ validresponse = ("2", "8") / branch = [if(trial.AT2.responsetext == "2") {openended.A2;} ]
/ stimulustimes = [0=clearscreen]
/ontrialend = [
    list.condition.insertitem(trial.AT2.correct, 1)
    list.responses.insertitem(trial.AT2.correct, 1);
    list.responses_congruent.insertitem(trial.AT2.correct, 1);
    
    if (trial.AT2.correct) {        
        list.latencies.insertitem(trial.AT2.latency, 1);
        list.latencies_congruent.insertitem(trial.AT2.latency, 1);        
    }
]
</trial>

If you need further information, please ask right away! Thank you very much

Danny

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
DannyPilgrim - 3 Years Ago
Dave - 3 Years Ago
Dave - 3 Years Ago
                 Thank you very much, Dave! That really helps!
DannyPilgrim - 3 Years Ago
DannyPilgrim - 3 Years Ago
                     Not easily, but it's doable.
Dave - 3 Years Ago
                         Wow, thanks again for your detailled answer!
DannyPilgrim - 3 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search