Millisecond Online Community

How to make a certain stimulus disapear after ****ms?

rated by 0 users
This post has 5 Replies | 1 Follower

Top 500 Contributor
Posts 3
Jessy Posted: 09-16-2009 5:32 AM

    I am preparing a procedure containing two kinds of stimulus and a fixation.The sequence of the three item of the procedure was fixed ,and following is the procedure. A stimulus from cell1 dispalys 500ms,followed by a fixation for 100ms ,then a stimulus from cell2 appear until a certain responce.Now the problem is how to make the first stimulus(*)disapear after display of 500ms.

 I am looking forward to reply of someone.Thank you!

Procedure:

---------------------------------------------------------------------------------------
*** DEFAULTS ***
---------------------------------------------------------------------------------------   

<defaults>
/ screencolor = (0,0,0)
/ font = ("Arial", -18, 400, 0, 34)
/ txbgcolor = (0, 0, 0)
/ txcolor = (255,255,255)
/ inputdevice = keyboard
</defaults>

<data>
/ columns = [date time subject trialcode blockcode blocknum trialnum trialdata trialdata latency response]
</data>

------------------------------------------------------------------------------------
*** TEXTS AND TARGETS ***
------------------------------------------------------------------------------------
<text cell1>
/ position = (20,50)
/ erase = true(0,0,0)
/ items = cell1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (255,255,255)
</text>

<item cell1>
 / 1 = "*"
</item>

<text cell2>
/ position = (80,50)
/ erase = true(0,0,0)
/ items = cell2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (255,255,255)
</text>

<item cell2>
 / 1 = "*"
</item>

<text target1>
/ items = target1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ color = (255,255,255)
/ position = (80,50)
</text>

<text target2>
/ items = target2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (255,255,255)
/ position = (20,50)
</text>

<item target2>
/1 = "+"
</item>

<item target1>
/1 = "+"
</item>

<text fixation>
/ items = fixation
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ color = (255,255,255)
/ position = (50,50)
</text>

<item fixation>
/1 = "+"
</item>

<shape erase>
/ color= (0,0,0)
/ size = ( 50%, 50%)
</shape>

------------------------------------------------------------------------------------
*** INSTRUCTION PAGES ***
------------------------------------------------------------------------------------

<instruct>
/ nextkey = (" ")
/ lastlabel = "Press the spacebar to continue"
/ nextlabel = "Press the spacebar to continue"
/ font = ("Arial", -18, 400, 0, 34)
/ screencolor = (255,255,255)
/ txcolor = (0,0,0)
</instruct>
------------------------------------------------------------------------------------
*** TRIALS ***
------------------------------------------------------------------------------------

<trial cell01>
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes =[500=cell1; 1000=fixation; 1300=erase; 1400=noreplace(target1, target2)]
</trial>

<trial cell02>
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes =[500=cell2; 1000=fixation; 1300=erase; 1400=noreplace(target1, target2)]
</trial>


------------------------------------------------------------------------------------
*** BLOCKS ***
------------------------------------------------------------------------------------

<block trials>
/ trials= [1-8 =noreplace(cell01,cell02)]
</block>

------------------------------------------------------------------------------------
*** EXPERIMENT***
------------------------------------------------------------------------------------

<expt>
/blocks=[1=trials]
</expt>

 

Top 10 Contributor
Posts 2,340

You need to erase it with an erase stim that overwrites the item after 500 ms. You already use that approach in your script (<shape erase>), so you just need to apply it to the cell1 stim in the same way.

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Top 500 Contributor
Posts 3

I have tried,but it does not work.

Top 10 Contributor
Posts 2,340

Try this code:

---------------------------------------------------------------------------------------
*** DEFAULTS ***
---------------------------------------------------------------------------------------  

<defaults>
/ screencolor = (0,0,0)
/ font = ("Arial", -18, 400, 0, 34)
/ txbgcolor = (0, 0, 0)
/ txcolor = (255,255,255)
/ inputdevice = keyboard
</defaults>

<data>
/ columns = [date time subject trialcode blockcode blocknum trialnum trialdata trialdata latency response]
</data>

------------------------------------------------------------------------------------
*** TEXTS AND TARGETS ***
------------------------------------------------------------------------------------
<text cell1>
/ position = (20,50)
/ erase = true(0,0,0)
/ items = cell1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (255,255,255)
</text>

<item cell1>
 / 1 = "*"
</item>

<text erasecell1>
/ position = (20,50)
/ erase = true(0,0,0)
/ items = ("   ")
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (0,0,0)
</text>

<text cell2>
/ position = (80,50)
/ erase = true(0,0,0)
/ items = cell2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (255,255,255)
</text>

<item cell2>
 / 1 = "*"
</item>

<text erasecell2>
/ position = (80,50)
/ erase = true(0,0,0)
/ items = ("   ")
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (0,0,0)
</text>

<text target1>
/ items = target1
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ color = (255,255,255)
/ position = (80,50)
</text>

<text target2>
/ items = target2
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0,0,0)
/ color = (255,255,255)
/ position = (20,50)
</text>

<item target2>
/1 = "+"
</item>

<item target1>
/1 = "+"
</item>

<text fixation>
/ items = fixation
/ font = ("Courier New", -35, 700, 0, 49)
/ txbgcolor = (0, 0, 0)
/ color = (255,255,255)
/ position = (50,50)
</text>

<item fixation>
/1 = "+"
</item>

<shape erase>
/ color= (0,0,0)
/ size = ( 50%, 50%)
</shape>

------------------------------------------------------------------------------------
*** INSTRUCTION PAGES ***
------------------------------------------------------------------------------------

<instruct>
/ nextkey = (" ")
/ lastlabel = "Press the spacebar to continue"
/ nextlabel = "Press the spacebar to continue"
/ font = ("Arial", -18, 400, 0, 34)
/ screencolor = (255,255,255)
/ txcolor = (0,0,0)
</instruct>
------------------------------------------------------------------------------------
*** TRIALS ***
------------------------------------------------------------------------------------

<trial cell01>
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes =[500=cell1; 1000=erasecell1, fixation; 1300=erase; 1400=noreplace(target1, target2)]
</trial>

<trial cell02>
/ validresponse = (16,25)
/ correctresponse = (25)
/ stimulustimes =[500=cell2; 1000=erasecell2,fixation; 1300=erase; 1400=noreplace(target1, target2)]
</trial>


------------------------------------------------------------------------------------
*** BLOCKS ***
------------------------------------------------------------------------------------

<block trials>
/ trials= [1-8 =noreplace(cell01,cell02)]
</block>

------------------------------------------------------------------------------------
*** EXPERIMENT***
------------------------------------------------------------------------------------

<expt>
/blocks=[1=trials]
</expt>

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Top 500 Contributor
Posts 3

It works!  Thank you so much!

Sincerely,

Jessy

Top 10 Contributor
Posts 2,340

You're welcome. May all your findings be significant,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Page 1 of 1 (6 items) | RSS
Powered by Community Server (Non-Commercial Edition), by Telligent Systems