Recording all valid answers but keep stimulus displayed until end of trial


Recording all valid answers but keep stimulus displayed until end of...
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: 108K
No, using /response=correct is decidedly not what you actually want. (It doesn't make even sense here: You've defined no response as correct response. How is it possible to not respond after having already responded?). What you want is:

<defaults>
/ screencolor = (255, 255, 255)
/txbgcolor = (255, 255, 255)
/txcolor = (0, 0, 0)
/fontstyle = ("Arial", 40pt)
</defaults>


*************************************************************************************************************************************
                                             STIMULI
*************************************************************************************************************************************
<picture RC>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Red Circle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<picture RT>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Red Triangle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<picture GC>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Green Circle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<picture GT>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Green Triangle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<text fixation>
/items = ("+")
/position = (50, 50)
/erase = false
</text>

<text blank>
/items = ("+")
/ size = (100%, 100%)
/color = (255, 255, 255)
</text>

*************************************************************************************************************************************
                                             TRIALS
*************************************************************************************************************************************

<trial RC>
/trialcode= "RC"
/stimulustimes = [0= RC]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/trialduration = 2000
</trial>

<trial RT>
/trialcode= "RT"
/stimulustimes = [0= RT]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/trialduration = 2000
</trial>

<trial GC>
/trialcode= "GC"
/stimulustimes = [0= GC]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/trialduration = 2000
</trial>

<trial GT>
/trialcode= "GT"
/stimulustimes = [0= GT]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/trialduration = 2000
</trial>

<trial blank>
/trialcode= "blank"
/stimulustimes = [0=blank]
/validresponse = (" ", noresponse)
/trialduration = 4000
</trial>

<trial IT>
/stimulustimes = [0=blank]
/trialduration = 3000
</trial>

*************************************************************************************************************************************
                                             BLOCKS
*************************************************************************************************************************************
<block ES>
/trials = [1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52=IT;
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53=noreplace(RC,RC,RC,RC,RC,RC,RT,RT,RT,RT,GT,GT,GT,GT,GC,GC,GC,GC);
3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54=blank]
</block>


lauriem4
lauriem4
Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)
Group: Forum Members
Posts: 8, Visits: 4
Hi Dave, 

Thanks for your reply. 
I tried to set erase to false but then the shape doesn't disappear until the next shape comes up. But in between each trial presenting the shape, I have a trial presenting a blank page. 
What I am really trying to achieve is what is described in the help as setting to correct the responsemode. 

"Correct: A correct response may be given at any time. If a valid but incorrect response is given, the response is treated as an error. The first valid response, correct or incorrect, is recorded in the data file. The recorded latency is the that of the correct response"

And what this example states: 

<trial mytrial>
/ stimulusframes = [1=sometext]
/ response = timeout(500)
/ validresponse = ("a", "b")
/ correctresponse = ("a")
</trial>


Please see below the script for the entire experiment. However, with this code, if a participant presses the spacebar while the shape is still on the screen, this is not recorded in the data file.  

 
<defaults>
/ screencolor = (255, 255, 255)
/txbgcolor = (255, 255, 255)
/txcolor = (0, 0, 0)
/fontstyle = ("Arial", 40pt)
</defaults>

<instruct>
/ windowsize = (100%,100%)
/ inputdevice = keyboard
/ prevkey = ("P")
/ nextkey = (28)
/ nextlabel = "Press Enter"
/ finishlabel = "Press Enter"
</instruct>

<htmlpage instructions>
/ file = "C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\A\Instructions ES.htm"
</htmlpage>

<htmlpage instructions1>
/ file = "C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\A\Instructions ES2.htm"
</htmlpage>
*************************************************************************************************************************************
                                             STIMULI
*************************************************************************************************************************************
<picture RC>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Red Circle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<picture RT>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Red Triangle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<picture GC>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Green Circle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<picture GT>
/items = ("C:\Users\lmonier.LIFE\Desktop\Exp 5\ES\Stimuli\Green Triangle.jpg")
/size = (65%, 65%)
/position = (50, 50)
/erase = false
</picture>

<text fixation>
/items = ("+")
/position = (50, 50)
/erase = false
</text>

<text blank>
/items = ("+")
/color = (255, 255, 255)
</text>

*************************************************************************************************************************************
                                             TRIALS
*************************************************************************************************************************************

<trial RC>
/trialcode= "RC"
/stimulustimes = [0= RC]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/response = correct
/trialduration = 2000
</trial>

<trial RT>
/trialcode= "RT"
/stimulustimes = [0= RT]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/response = correct
/trialduration = 2000
</trial>

<trial GC>
/trialcode= "GC"
/stimulustimes = [0= GC]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/response = correct
/trialduration = 2000
</trial>

<trial GT>
/trialcode= "GT"
/stimulustimes = [0= GT]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/response = correct
/trialduration = 2000
</trial> 

<trial blank>
/trialcode= "blank"
/stimulustimes = [0=blank]
/validresponse = (" ", noresponse)
/trialduration = 4000
</trial>

<trial IT>
/stimulustimes = [0=blank]
/trialduration = 3000
</trial>

*************************************************************************************************************************************
                                             BLOCKS
*************************************************************************************************************************************
<block ES>
/trials = [1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52=IT; 
2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53=noreplace(RC,RC,RC,RC,RC,RC,RT,RT,RT,RT,GT,GT,GT,GT,GC,GC,GC,GC); 
3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54=blank]
</block>

<expt ES>
/preinstructions = (instructions, instructions1)
/blocks = [1=ES]
</expt>

<data>
/file = "C:\Users\lmonier.LIFE\Desktop\Exp 5\Data\ES1\logfile.idqat"
/columns = [date,time,group,subject,blocknum,trialnum,trialcode,response,latency,stimulusitem]
/separatefiles = true
</data>


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
If you want the stimulus remain onscreen for the remainder of the /trialduration after a response, you ought to set its /erase attribute to false.

lauriem4
lauriem4
Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)Partner Member (937 reputation)
Group: Forum Members
Posts: 8, Visits: 4
Hi All, 

I am trying to have the first valid response recorded in my data while keeping the trial on the screen until the correct response is given. 

Ps see a shape (e.g. Red circle) and can press the space bar. I wanna have that action recorded. But I do not want the circle to disappear from the screen as soon as the spacebar is pressed. I want the circle to stay on the screen for the full 2000ms trial duration. 

Looking at the help, I thought that by defining valid answers and correct answer and then specifying that response = correct, I would obtain what I needed (as this is what the help states). 

So my code for the trial looks like this: 

<trial RC>
/trialcode= "RC"
/stimulustimes = [0= RC]
/validresponse = (" ", noresponse)
/correctresponse = (noresponse)
/response = correct
/trialduration = 2000
</trial>

However, when looking at the data, it never records when the spacebar is pressed. 


If I remove the line "/response = correct", then as soon as the spacebar is pressed the red circle disappears from the screen. 

Is there something I didn't understand in the help? Or is it impossible to obtain what I want. 

Any help will be greatly appreciated.

I can also copy the whole code if it is necessary.


Laurie 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search