windows display of scanner trigger


Author
Message
nrouhani
nrouhani
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 77, Visits: 251
hello, 

i wrote an inquisit 5 script on a mac to be run in an fMRI experiment that runs the task on a windows device. the fmri scanner waits for a "=" key press to start, but when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial (while it does not do this on a mac). is there any way to prevent this from happening?

thank you!

Below is a short snippet of the code that should run, you have to press "=" for it start.

*************************************************
EXPERIMENT
*************************************************

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

*************************************************
LEARNING
*************************************************

// BLOCKS
<block task>
/ trials = [1=new_room; 2=estimate_nat]
/ errormessage = false
/ skip = [script.groupid>2]
</block>

// TRIALS

// new room
<trial new_room>
/ stimulustimes = [0=blank, newRoomText]
/ trialduration = 6000
/ validresponse = (noresponse)
/ pretrialsignal = (keyboard,13)
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",20)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",80)
/ trialduration = 3000
</openended>


*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = darkgrey
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>


*************************************************
Stimuli Presentation
*************************************************

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

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: 12K, Visits: 89K
nrouhani - 10/13/2022
hello, 

i wrote an inquisit 5 script on a mac to be run in an fMRI experiment that runs the task on a windows device. the fmri scanner waits for a "=" key press to start, but when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial (while it does not do this on a mac). is there any way to prevent this from happening?

thank you!

Below is a short snippet of the code that should run, you have to press "=" for it start.

*************************************************
EXPERIMENT
*************************************************

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

*************************************************
LEARNING
*************************************************

// BLOCKS
<block task>
/ trials = [1=new_room; 2=estimate_nat]
/ errormessage = false
/ skip = [script.groupid>2]
</block>

// TRIALS

// new room
<trial new_room>
/ stimulustimes = [0=blank, newRoomText]
/ trialduration = 6000
/ validresponse = (noresponse)
/ pretrialsignal = (keyboard,13)
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",20)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",80)
/ trialduration = 3000
</openended>


*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = darkgrey
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>


*************************************************
Stimuli Presentation
*************************************************

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

> when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial

Not seeing this when I run the code you provided in Inquisit 5.0.14.0 on Windows. What's the Inquisit 5 version installed on the Windows box you used for this?

nrouhani
nrouhani
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 77, Visits: 251
Dave - 10/13/2022
nrouhani - 10/13/2022
hello, 

i wrote an inquisit 5 script on a mac to be run in an fMRI experiment that runs the task on a windows device. the fmri scanner waits for a "=" key press to start, but when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial (while it does not do this on a mac). is there any way to prevent this from happening?

thank you!

Below is a short snippet of the code that should run, you have to press "=" for it start.

*************************************************
EXPERIMENT
*************************************************

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

*************************************************
LEARNING
*************************************************

// BLOCKS
<block task>
/ trials = [1=new_room; 2=estimate_nat]
/ errormessage = false
/ skip = [script.groupid>2]
</block>

// TRIALS

// new room
<trial new_room>
/ stimulustimes = [0=blank, newRoomText]
/ trialduration = 6000
/ validresponse = (noresponse)
/ pretrialsignal = (keyboard,13)
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",20)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",80)
/ trialduration = 3000
</openended>


*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = darkgrey
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>


*************************************************
Stimuli Presentation
*************************************************

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

> when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial

Not seeing this when I run the code you provided in Inquisit 5.0.14.0 on Windows. What's the Inquisit 5 version installed on the Windows box you used for this?

hi we realized what the problem was which is that the scanner outputs "=" every TR of the scanning experiment (the = is the scanner's trigger), which is standard in an fMRI experiment - is there a way from preventing "=" to display in the answer box? thank you! 
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: 12K, Visits: 89K
nrouhani - 10/17/2022
Dave - 10/13/2022
nrouhani - 10/13/2022
hello, 

i wrote an inquisit 5 script on a mac to be run in an fMRI experiment that runs the task on a windows device. the fmri scanner waits for a "=" key press to start, but when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial (while it does not do this on a mac). is there any way to prevent this from happening?

thank you!

Below is a short snippet of the code that should run, you have to press "=" for it start.

*************************************************
EXPERIMENT
*************************************************

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

*************************************************
LEARNING
*************************************************

// BLOCKS
<block task>
/ trials = [1=new_room; 2=estimate_nat]
/ errormessage = false
/ skip = [script.groupid>2]
</block>

// TRIALS

// new room
<trial new_room>
/ stimulustimes = [0=blank, newRoomText]
/ trialduration = 6000
/ validresponse = (noresponse)
/ pretrialsignal = (keyboard,13)
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",20)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",80)
/ trialduration = 3000
</openended>


*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = darkgrey
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>


*************************************************
Stimuli Presentation
*************************************************

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

> when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial

Not seeing this when I run the code you provided in Inquisit 5.0.14.0 on Windows. What's the Inquisit 5 version installed on the Windows box you used for this?

hi we realized what the problem was which is that the scanner outputs "=" every TR of the scanning experiment (the = is the scanner's trigger), which is standard in an fMRI experiment - is there a way from preventing "=" to display in the answer box? thank you! 

You can try restricting the openended's input per /mask, in which case it will not accept the "=" character.

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",20)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=estimateQ]
/ linelength = 3
/ range = (0,100)
/ mask = positiveintegerorzero
/ numlines = 1
/ responsefontstyle = ("Arial",80)
/ trialduration = 3000
</openended>

Depending on when / how rapidly the scanner repeats the "=" character, however, you might briefly see the character flash up in the input box and/or hear a Windows error sound. (The latter you can get rid of by changing the Windows sound scheme from 'Windows Default' to 'No Sounds'.)



Edited 4 Months Ago by Dave
nrouhani
nrouhani
Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)Distinguished Member (2.6K reputation)
Group: Forum Members
Posts: 77, Visits: 251
Dave - 10/17/2022
nrouhani - 10/17/2022
Dave - 10/13/2022
nrouhani - 10/13/2022
hello, 

i wrote an inquisit 5 script on a mac to be run in an fMRI experiment that runs the task on a windows device. the fmri scanner waits for a "=" key press to start, but when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial (while it does not do this on a mac). is there any way to prevent this from happening?

thank you!

Below is a short snippet of the code that should run, you have to press "=" for it start.

*************************************************
EXPERIMENT
*************************************************

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

*************************************************
LEARNING
*************************************************

// BLOCKS
<block task>
/ trials = [1=new_room; 2=estimate_nat]
/ errormessage = false
/ skip = [script.groupid>2]
</block>

// TRIALS

// new room
<trial new_room>
/ stimulustimes = [0=blank, newRoomText]
/ trialduration = 6000
/ validresponse = (noresponse)
/ pretrialsignal = (keyboard,13)
</trial>

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",20)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=estimateQ]
/ linelength = 3
/ range = (0,100)
/ numlines = 1
/ responsefontstyle = ("Arial",80)
/ trialduration = 3000
</openended>


*************************************************
Background
*************************************************

// screen
<defaults>
/ screencolor = white
/ txcolor = darkgrey
</defaults>

<shape blank>
/ color = darkgrey
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>


*************************************************
Stimuli Presentation
*************************************************

<text newRoomText>
/ items = ("You have traveled to a new location")
/ vjustify = center
/ size = (500,60)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = azure
/ txcolor = darkorange
</text>

<text estimateQ>
/ items = ("please estimate the value of this category (artificial or natural) from 0 to 100 cents")
/ halign = center
/ vjustify = center
/ size = (500,90)
/ fontstyle = ("Helvetica", 2.48%, true, false, false, false, 5, 0)
/ vposition = (30)
/ hposition = (50)
/ txbgcolor = white
/ txcolor = darkgray
/ erase = false
</text>

> when testing this (on a windows device while scanning) the "=" appears in a subsequent answer box on the next trial

Not seeing this when I run the code you provided in Inquisit 5.0.14.0 on Windows. What's the Inquisit 5 version installed on the Windows box you used for this?

hi we realized what the problem was which is that the scanner outputs "=" every TR of the scanning experiment (the = is the scanner's trigger), which is standard in an fMRI experiment - is there a way from preventing "=" to display in the answer box? thank you! 

You can try restricting the openended's input per /mask, in which case it will not accept the "=" character.

<openended estimate_nat>
/ position = (50, 50)
/ buttonlabel = "please enter estimate"
/ fontstyle = ("Arial",20)
/ inputdevice = keyboard
/ validresponse = (noresponse)
/ stimulustimes = [0=estimateQ]
/ linelength = 3
/ range = (0,100)
/ mask = positiveintegerorzero
/ numlines = 1
/ responsefontstyle = ("Arial",80)
/ trialduration = 3000
</openended>

Depending on when / how rapidly the scanner repeats the "=" character, however, you might briefly see the character flash up in the input box and/or hear a Windows error sound. (The latter you can get rid of by changing the Windows sound scheme from 'Windows Default' to 'No Sounds'.)



thank you so much!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search