Could not locate surveypage


Author
Message
jacklee-w
jacklee-w
Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)
Group: Forum Members
Posts: 12, Visits: 84
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
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: 105K
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.

jacklee-w
jacklee-w
Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)Expert (1.3K reputation)
Group: Forum Members
Posts: 12, Visits: 84
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!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search