Start external Website from Inquisit Lab + Random Image Presantation


Author
Message
SpoHo
SpoHo
Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)
Group: Forum Members
Posts: 27, Visits: 115
Hi,

We got 2 Problems with our Script. I've been trying to solve them for the whole week, but i'm kind of stuck right now.
#1: We want to present 5 images at the same time on an instructions page.

We tried it as following: 


<item brands>
/1 = "brand1.jpg"
/2 = "brand2.jpg"
/3 = "brand3.jpg"
/4 = "brand4.jpg"
/5 = "brand5.jpg"
</item>

<picture pct1>
/items = brands
/select = noreplacenorepeat
/ hposition = 15%
/ vposition = 40%
</picture>

<picture pct2>
/items = brands
/select = noreplacenorepeat
/ hposition = 50%
/ vposition = 40%
</picture>

<picture mineralwasser3>
/items = brands
/select = noreplacenorepeat
/ hposition = 85%
/ vposition = 40%
</picture>

<picture pct4>
/items = markenmineralwasser
/select = noreplacenorepeat
/ hposition = 35%
/ vposition = 60%
</picture>

<picture pct5>
/items = brands
/select = noreplacenorepeat
/ hposition = 65%
/ vposition = 60%
</picture>

<surveypage instr2>
/stimulusframes = [1=pct1;2=pct2;3=pct3;4=pct4;5=pct5;]
/ caption = "the 5 random brands:"
</surveypage>


The problem: The brands may repeat during the presentation. My guess is, that after the source for one picture element is drawn randomly without replacement or repeat, the current brand is not being stored anywhere, and for the next picture the draw will be reset again. I think that could be fixed by using a <list> element, but I could not get it to work that way at all. 


Problem #2:
We want to have a little survey at the and - handled by questback's unipark system. I figured out how to start the IAT via batch file, and start unipark afterwards. But unfortunately, I have no possibility to hand over any kind of userid to the website, as I could do it with a web experiment. Do you have any tips on a proper approach for me? 

Thanks in advance,
SpoHo


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: 104K
Re. #1: No. The problem is that each <picture> represents its own selection pool, independent of all the others. What you've essentially set up there is 5 identical decks of 5 cards and expecting that drawing one card from each deck will result in drawing 5 different cards. What you need to do is sample from a *single* selection pool:

<trial mytrial>
/ stimulusframes = [1=a,b,c]
...
</trial>

<picture a>
/ items = myitems
/ select = list.mylist.nextindex
/ position = (25%, 50%)
</picture>

<picture b>
/ items = myitems
/ select = list.mylist.nextindex
/ position = (50%, 50%)
</picture>

<picture c>
/ items = myitems
/ select = list.mylist.nextindex
/ position = (75%, 50%)
</picture>

<item myitems>
/ 1 = "Brand1.jpg"
/ 2 = "Brand2.jpg"
/ 3 = "Brand3.jpg"
</item>

<list mylist>
/ poolsize = 3
/ selectionrate = always
</list>

Re. #2: Yes, you need to write a *Windows* batch file (or some shell script equivalent under OSX). See the "How to Launch Inquisit Using Command Line Parameters" and "Running Sequences of Inquisit Scripts and Other Applications" topics in the documentation. You would pass the identifier you want to use as a parameter into those scripts, have Inquisit use it as subject id and included it in the URL to the survey provider as a standard query parameter (just as you would on the web).

SpoHo
SpoHo
Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)Esteemed Member (2.1K reputation)
Group: Forum Members
Posts: 27, Visits: 115
thanks a lot!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search