TestPart ID in Output

30 views
Skip to first unread message

Cody DeHaan

unread,
Oct 20, 2013, 3:28:48 PM10/20/13
to scrip...@googlegroups.com
Hello!

I've got a quick question. I'm attempting to track which of the TestParts in my MXML a given row of data in my output comes from. I've specified a TestPart as such:

<TestPart id="Block1" scramble="1" positive="keyboard.P.press" negative="keyboard.Q.press" response="Time.5000" backgroundColor="black" color="0xFFFFFF" fontSize="30" >


However, when I specify protocolFormatItem as such:

protocolFormatItem="%partID%,%itemID%,%response%,%responseTime%" 

 I still get output with %partID% in the output, it's not actually capturing the Part ID. Is it possible to do this at all?

Thanks!

Thomas Schubert

unread,
Oct 22, 2013, 5:11:06 AM10/22/13
to scrip...@googlegroups.com
yes, partID is not defined in the code.

I never had that problem because your any given ID (say, for an item) can only occur once in your mxml. What I do is label the items accordingly, so that their IDs identify completely the part (ie. block), and also the condition (e.g., valence, word vs. non word, presentation up vs. down, etc). I just put it all in the itemID

t
--
You received this message because you are subscribed to the Google Groups "scriptingrt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scriptingrt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
thomas schubert
department of psychology, university of oslo 
schu...@igroup.org
http://www.igroup.org/schubert/

Nick Camp

unread,
May 5, 2014, 2:13:08 PM5/5/14
to scrip...@googlegroups.com
I actually have a related question, I think. Is there any way to generate additional fields that get added to a trial in the .csv file? For example, creating a field "emotion" and assigning each trial a value ("angry", "happy"...) that would show up in the data file? I have enough conditions that a solution that wouldn't involve specifying the entire confluence of conditions in the ID would be more elegant. 

Thanks,
Nick

Thomas Schubert

unread,
May 6, 2014, 9:54:43 AM5/6/14
to scrip...@googlegroups.com
Nick,

that would be possible for a skilled actionscript programmer, but at the moment I don't have one to do that. if you cannot recruit one either, I am afraid you have to make do with the coding in ID approach. I use two approaches for that: either define this through numbers, and then assign conditions through spss syntax depending on ID number, or by putting the condition in the id label, like "comp_anim", and then write spss syntax to test whether "comp" is in the label, and if yes assign condition compatible.

t
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages