Millisecond Forums

Pictures/images and description

https://forums.millisecond.com/Topic28682.aspx

By DSaraqini - 4/7/2020

Hello,

As part of my experiment, I want to show participants some pictures and include this sentence on top of each of them "Please assign to Q or P team." I can't seem to figure out a way to have a picture AND that text on the same page. Hope anyone can help!

Here's some of my script for showing the pictures, if it helps:

<trial ShortHairFace>
/ stimulustimes = [0=ready; 100=ShortHairFace]
/ validresponse = ("P", "Q")
/ correctresponse = ("Q")
/beginresponsetime = 100
/ ontrialend = [
    list.ShortHair.insertitem(trial.ShortHairFace.correct, 1);
    list.overallaccuracy.insertitem(trial.ShortHairFace.correct, 1);
    if (trial.ShortHairFace.correct) {
        list.ShortHair_correctRT.insertitem(trial.ShortHairFace.latency, 1);
        list.overallRT.insertitem(trial.ShortHairFace.latency, 1);
    };
]
</trial>

<trial LongHairFace>
/ stimulustimes = [0=ready; 100=LongHairFace]
/ validresponse = ("P", "Q")
/ correctresponse = ("P")
/beginresponsetime = 100
/ ontrialend = [
    list.LongHair.insertitem(trial.LongHairFace.correct, 1);
    list.overallaccuracy.insertitem(trial.LongHairFace.correct, 1);    
    if (trial.LongHairFace.correct) {
        list.LongHair_correctRT.insertitem(trial.LongHairFace.latency, 1);
        list.overallRT.insertitem(trial.LongHairFace.latency, 1);        
    };
]
</trial>
By Dave - 4/7/2020

DSaraqini - 4/7/2020
Hello,

As part of my experiment, I want to show participants some pictures and include this sentence on top of each of them "Please assign to Q or P team." I can't seem to figure out a way to have a picture AND that text on the same page. Hope anyone can help!

Here's some of my script for showing the pictures, if it helps:

<trial ShortHairFace>
/ stimulustimes = [0=ready; 100=ShortHairFace]
/ validresponse = ("P", "Q")
/ correctresponse = ("Q")
/beginresponsetime = 100
/ ontrialend = [
    list.ShortHair.insertitem(trial.ShortHairFace.correct, 1);
    list.overallaccuracy.insertitem(trial.ShortHairFace.correct, 1);
    if (trial.ShortHairFace.correct) {
        list.ShortHair_correctRT.insertitem(trial.ShortHairFace.latency, 1);
        list.overallRT.insertitem(trial.ShortHairFace.latency, 1);
    };
]
</trial>

<trial LongHairFace>
/ stimulustimes = [0=ready; 100=LongHairFace]
/ validresponse = ("P", "Q")
/ correctresponse = ("P")
/beginresponsetime = 100
/ ontrialend = [
    list.LongHair.insertitem(trial.LongHairFace.correct, 1);
    list.overallaccuracy.insertitem(trial.LongHairFace.correct, 1);    
    if (trial.LongHairFace.correct) {
        list.LongHair_correctRT.insertitem(trial.LongHairFace.latency, 1);
        list.overallRT.insertitem(trial.LongHairFace.latency, 1);        
    };
]
</trial>

Set up a <text> element with that text as its /items, display the <text> element via the <trial>'s /stimulustimes

<trial ShortHairFace>
/ stimulustimes = [0=ready; 100=ShortHairFace, AssignPrompt]
...
</trial>

<text AssignPrompt>
/ items = ("Please assign to Q or P team.")
/ position = (50%, 10%)
...
</text>
By DSaraqini - 4/7/2020

Thanks so much!