Millisecond Forums

Could not locate surveypage

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

By jacklee-w - 8/31/2017

Hi,

I'm trying to add a surveypage to the beginning of an experiment so that I can display a clock and an image at the same time. But when I go to run, Inquisit is unable to locate any of the surveypages.

I'm setting the surveypages to appear as preinstructions - here is the relevant script:

<expt>
/ subjects = (1 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkST; page.SuppressST)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>

<expt>
/ subjects = (2 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkBU; page.SuppressBU)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>

<expt >
/ subjects = (3 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkHA; page.SuppressHA)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>
*****************************************************************
<surveypage ThinkST>
/ caption = "Before you begin this task, sit and think about the strawberry for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.strawberry, clock]
/ timeout = 120000
</surveypage>

<surveypage ThinkBU>
/ caption = "Before you begin this task, sit and think about the butterfly for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.butterfly, clock]
/ timeout = 120000
</surveypage>

<surveypage ThinkHA>
/ caption = "Before you begin this task, sit and think about the hat for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.hat, clock]
/ timeout = 120000
</surveypage>
***********************************************************
<clock>
/ mode = timer
/ timeout = 120000
</clock>


As ever, any help is greatly appreciated!

Thanks,
Jack
By Dave - 9/1/2017

jacklee-w - Friday, September 1, 2017
Hi,

I'm trying to add a surveypage to the beginning of an experiment so that I can display a clock and an image at the same time. But when I go to run, Inquisit is unable to locate any of the surveypages.

I'm setting the surveypages to appear as preinstructions - here is the relevant script:

<expt>
/ subjects = (1 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkST; page.SuppressST)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>

<expt>
/ subjects = (2 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkBU; page.SuppressBU)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>

<expt >
/ subjects = (3 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkHA; page.SuppressHA)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>
*****************************************************************
<surveypage ThinkST>
/ caption = "Before you begin this task, sit and think about the strawberry for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.strawberry, clock]
/ timeout = 120000
</surveypage>

<surveypage ThinkBU>
/ caption = "Before you begin this task, sit and think about the butterfly for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.butterfly, clock]
/ timeout = 120000
</surveypage>

<surveypage ThinkHA>
/ caption = "Before you begin this task, sit and think about the hat for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.hat, clock]
/ timeout = 120000
</surveypage>
***********************************************************
<clock>
/ mode = timer
/ timeout = 120000
</clock>


As ever, any help is greatly appreciated!

Thanks,
Jack

A <surveypage> is a kind of <trial>. You cannot run it via /preinstructions (it is not an instruction <page>). You need to run it via a <block> just like any other regular <trial>, and then run that block via the <expt>'s /blocks attribute.
By jacklee-w - 9/8/2017

Dave - Friday, September 1, 2017
jacklee-w - Friday, September 1, 2017
Hi,

I'm trying to add a surveypage to the beginning of an experiment so that I can display a clock and an image at the same time. But when I go to run, Inquisit is unable to locate any of the surveypages.

I'm setting the surveypages to appear as preinstructions - here is the relevant script:

<expt>
/ subjects = (1 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkST; page.SuppressST)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>

<expt>
/ subjects = (2 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkBU; page.SuppressBU)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>

<expt >
/ subjects = (3 of 9)
/ groupassignment = groupnumber
/ preinstructions = (surveypage.ThinkHA; page.SuppressHA)
/ blocks = [1=block.myblock]
/ postinstructions = (page.end)
/onexptend = [values.completed = 1]
</expt>
*****************************************************************
<surveypage ThinkST>
/ caption = "Before you begin this task, sit and think about the strawberry for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.strawberry, clock]
/ timeout = 120000
</surveypage>

<surveypage ThinkBU>
/ caption = "Before you begin this task, sit and think about the butterfly for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.butterfly, clock]
/ timeout = 120000
</surveypage>

<surveypage ThinkHA>
/ caption = "Before you begin this task, sit and think about the hat for two minutes.

Press continue when two minutes have passed."
/ showpagenumbers = false
/ nextbuttonposition = (46,90)
/ stimulusframes = [1 = picture.hat, clock]
/ timeout = 120000
</surveypage>
***********************************************************
<clock>
/ mode = timer
/ timeout = 120000
</clock>


As ever, any help is greatly appreciated!

Thanks,
Jack

A <surveypage> is a kind of <trial>. You cannot run it via /preinstructions (it is not an instruction <page>). You need to run it via a <block> just like any other regular <trial>, and then run that block via the <expt>'s /blocks attribute.

Works like a charm.

Thanks again, Dave!