Stimuli question


Author
Message
MilanSchoenmaeckers
MilanSchoenmaeckers
Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)
Group: Forum Members
Posts: 25, Visits: 79
Hi, 

I have a question regarding the script below. When this trial is presented, participants have to remember a letter and press the spacebar when they see a picture of a light bulb turned on. Now I am wondering whether it is possible to show them a picture of a light bulb that is turned off when they perform the valid response whilst the letters stays onscreen? Do I need to make a new trial that gets invoked via the / branch logic, or is there a more efficient way of doing this?

<trial show_letter_acting>
/ ontrialbegin = [values.lettercount+=1]
/ ontrialbegin = [values.lightbulb_state = list.lightbulbstates_acting.nextvalue]
/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]
/ pretrialpause = 200
/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, lightbulb_acting, currentsetsize]
/ trialduration = values.learninginterval
/ inputdevice = keyboard
/ validresponse = (57)
/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter_acting]
/ branch = [trial.InitMathProblem01]
/ recorddata = true
</trial>

Kind regards


Dave
Dave
Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)
Group: Administrators
Posts: 10K, Visits: 53K
MilanSchoenmaeckers - 3/19/2020
Hi, 

I have a question regarding the script below. When this trial is presented, participants have to remember a letter and press the spacebar when they see a picture of a light bulb turned on. Now I am wondering whether it is possible to show them a picture of a light bulb that is turned off when they perform the valid response whilst the letters stays onscreen? Do I need to make a new trial that gets invoked via the / branch logic, or is there a more efficient way of doing this?

<trial show_letter_acting>
/ ontrialbegin = [values.lettercount+=1]
/ ontrialbegin = [values.lightbulb_state = list.lightbulbstates_acting.nextvalue]
/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]
/ pretrialpause = 200
/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, lightbulb_acting, currentsetsize]
/ trialduration = values.learninginterval
/ inputdevice = keyboard
/ validresponse = (57)
/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter_acting]
/ branch = [trial.InitMathProblem01]
/ recorddata = true
</trial>

Kind regards


You can use /responsemessage to display the image upon key press
Dave
Dave
Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)Supreme Being (795K reputation)
Group: Administrators
Posts: 10K, Visits: 53K
Dave - 3/19/2020
MilanSchoenmaeckers - 3/19/2020
Hi, 

I have a question regarding the script below. When this trial is presented, participants have to remember a letter and press the spacebar when they see a picture of a light bulb turned on. Now I am wondering whether it is possible to show them a picture of a light bulb that is turned off when they perform the valid response whilst the letters stays onscreen? Do I need to make a new trial that gets invoked via the / branch logic, or is there a more efficient way of doing this?

<trial show_letter_acting>
/ ontrialbegin = [values.lettercount+=1]
/ ontrialbegin = [values.lightbulb_state = list.lightbulbstates_acting.nextvalue]
/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]
/ pretrialpause = 200
/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, lightbulb_acting, currentsetsize]
/ trialduration = values.learninginterval
/ inputdevice = keyboard
/ validresponse = (57)
/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter_acting]
/ branch = [trial.InitMathProblem01]
/ recorddata = true
</trial>

Kind regards


You can use /responsemessage to display the image upon key press

In essence, something like this:

<picture lightbulb_practice_letter>
/ items = ("lamp_uit.png", "lamp_aan.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ select = values.lightbulb_state
/ erase = false
</picture>

<list lightbulbstates_practice_letter>
/ items = (1,2,1,2,1,2,1,2,1,2)
</list>

<picture lightbulb_nonacting>
/ items = ("lamp_uit.png", "lamp_aan.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ select = values.lightbulb_state
/ erase = false
</picture>

<list lightbulbstates_nonacting>
/ items = (1,1,1,1,1,1,1,1,1,1,1,1,2,2,2)
</list>

<picture lightbulb_acting>
/ items = ("lamp_uit.png", "lamp_aan.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ select = values.lightbulb_state
/ erase = false
</picture>

<list lightbulbstates_acting>
/ items = (2,2,2,2,2,2,2,2,2,2,2,2,1,1,1)
</list>

<picture lightbulb_off>
/ items = ("lamp_uit.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ erase = false
</picture>

with

<trial show_letter_acting>
/ ontrialbegin = [values.lettercount+=1]
/ ontrialbegin = [values.lightbulb_state = list.lightbulbstates_acting.nextvalue]
/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]
/ pretrialpause = 200
/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, lightbulb_acting, currentsetsize]
/ trialduration = values.learninginterval
/ inputdevice = keyboard
/ validresponse = (57)
/ responsemessage = (57, lightbulb_off, 0)
/ responsemessage = (57, letters, 0)

/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter]
/ branch = [trial.InitMathProblem01]
/ recorddata = true
</trial>
MilanSchoenmaeckers
MilanSchoenmaeckers
Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)Associate Member (69 reputation)
Group: Forum Members
Posts: 25, Visits: 79
Dave - 3/19/2020
Dave - 3/19/2020
MilanSchoenmaeckers - 3/19/2020
Hi, 

I have a question regarding the script below. When this trial is presented, participants have to remember a letter and press the spacebar when they see a picture of a light bulb turned on. Now I am wondering whether it is possible to show them a picture of a light bulb that is turned off when they perform the valid response whilst the letters stays onscreen? Do I need to make a new trial that gets invoked via the / branch logic, or is there a more efficient way of doing this?

<trial show_letter_acting>
/ ontrialbegin = [values.lettercount+=1]
/ ontrialbegin = [values.lightbulb_state = list.lightbulbstates_acting.nextvalue]
/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]
/ pretrialpause = 200
/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, lightbulb_acting, currentsetsize]
/ trialduration = values.learninginterval
/ inputdevice = keyboard
/ validresponse = (57)
/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter_acting]
/ branch = [trial.InitMathProblem01]
/ recorddata = true
</trial>

Kind regards


You can use /responsemessage to display the image upon key press

In essence, something like this:

<picture lightbulb_practice_letter>
/ items = ("lamp_uit.png", "lamp_aan.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ select = values.lightbulb_state
/ erase = false
</picture>

<list lightbulbstates_practice_letter>
/ items = (1,2,1,2,1,2,1,2,1,2)
</list>

<picture lightbulb_nonacting>
/ items = ("lamp_uit.png", "lamp_aan.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ select = values.lightbulb_state
/ erase = false
</picture>

<list lightbulbstates_nonacting>
/ items = (1,1,1,1,1,1,1,1,1,1,1,1,2,2,2)
</list>

<picture lightbulb_acting>
/ items = ("lamp_uit.png", "lamp_aan.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ select = values.lightbulb_state
/ erase = false
</picture>

<list lightbulbstates_acting>
/ items = (2,2,2,2,2,2,2,2,2,2,2,2,1,1,1)
</list>

<picture lightbulb_off>
/ items = ("lamp_uit.png")
/ position = (50, 30)
/ size = (20%, 20%)
/ erase = false
</picture>

with

<trial show_letter_acting>
/ ontrialbegin = [values.lettercount+=1]
/ ontrialbegin = [values.lightbulb_state = list.lightbulbstates_acting.nextvalue]
/ ontrialend= [item.PresentedLetters.item=text.Letters.currentitem]
/ pretrialpause = 200
/ stimulusframes = [1=BlackFrame, GrayFrame, Letters, lightbulb_acting, currentsetsize]
/ trialduration = values.learninginterval
/ inputdevice = keyboard
/ validresponse = (57)
/ responsemessage = (57, lightbulb_off, 0)
/ responsemessage = (57, letters, 0)

/ branch = [if(values.lettercount==values.currentsetsize)trial.recall_letter]
/ branch = [trial.InitMathProblem01]
/ recorddata = true
</trial>

Thank you for your help
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search