Group: Forum Members
Posts: 45,
Visits: 224
|
Hello:
I'm building an experiment to run online. Because it involves many steps, things are compartmentalized into different IQX files (the sub-files), which are all "included" in the main IQX file. I would like to save the data stored on a list --whose values are computed in one of the sub IQX file-- to the summary data file, which is defined in the main IQX file.
I guess one way to bring the data, so to say, to the main IQX file is to have the list defined in the main IQX file, and only referred to in the sub IQX file.
However, I haven't figure out a good way to save the data on the list to the summary data file. Would appreciate if you have any suggestions!
I know the size of the lists I want to save so I guess I could store the data on the list into named variables, e.g., xxx001, xxx002, xxx003. I wonder if there is a more general way to do that other than manually assign N times the values, as in values.xxx001 = list.randnum.nextValue, values.xxx002 = list.randnum.nextValue, etc. (after resetting the list so that it starts from the beginning...
Thanks in advance,
EN ---
<text myText> / items = ("<%list.randnum.nextValue%> -- Press the space bar to continue") / fontStyle = ("Arial", 2.08%, false, false, false, false, 5, 1) </text>
<trial myTrial> / preTrialPause = 500 / stimulusTimes = [1=myText] / validResponse = (" ") </trial>
<list randnum> / selectionMode = sequence </list>
<block myBlock> // that would be defined in a separate IQX file / onBlockBegin = [ // List of random numbers list.randnum.appendItem(rand(0, 10)); //1 list.randnum.appendItem(rand(0, 10)); //2 list.randnum.appendItem(rand(0, 10)); //3 list.randnum.appendItem(rand(0, 10)); //4 list.randnum.appendItem(rand(0, 10)); //5 list.randnum.appendItem(rand(0, 10)); //6 list.randnum.appendItem(rand(0, 10)); //7 list.randnum.appendItem(rand(0, 10)); //8 list.randnum.appendItem(rand(0, 10)); //9 list.randnum.appendItem(rand(0, 10)); //10 ]
/ trials = [1-10=myTrial] </block>
<expt myExpt> // I would like to save the values in randnum in the summary data file defined in the IQX where the expt is defined / preInstructions = (myPage) / blocks = [1=myBlock] </expt>
<page myPage> On the following 10 trials, press the space bar </page>
|