Millisecond Forums

How do I record randomized numbers that appear on screen?

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

By PileOfTrash - 4/19/2020

Hello! Btw this is my first time using inquisitive and someone's helping me learn it. 

So I'm running a script where I have numbers in an item set run across the screen, and participants make a judgement based off whether or not they think one group's numbers are better than the others.The problem is that I want to find a way to record the numbers that show up onto a separate csv file. 

<trial DemBI_P>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 0);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 1000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 2000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 3000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 4000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 5000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 6000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 7000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 8000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 9000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 10000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 11000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.DemBI_P.resetstimulusframes(7000)]
</trial>

I know you can use <data> to record it but I'm not sure how I can record those numbers (the list.Demplus_S1.nextvalue integers). I'm just not sure what to put with the /columns command.
Thank you!
By Dave - 4/20/2020

PileOfTrash - 4/20/2020
Hello! Btw this is my first time using inquisitive and someone's helping me learn it. 

So I'm running a script where I have numbers in an item set run across the screen, and participants make a judgement based off whether or not they think one group's numbers are better than the others.The problem is that I want to find a way to record the numbers that show up onto a separate csv file. 

<trial DemBI_P>
/ validresponse = ("E", "I")
/ correctresponse = ("I")
/ beginresponsetime = 0
/ontrialbegin = [
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 0);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 1000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 2000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 3000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 4000);
  trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 5000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 6000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 7000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 8000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 9000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 10000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 11000);
    trial.DemBI_P.insertstimulustime(list.Demplus_S1.nextvalue, 12000);]
/ posttrialpause = 500
/ontrialend= [trial.DemBI_P.resetstimulusframes(7000)]
</trial>

I know you can use <data> to record it but I'm not sure how I can record those numbers (the list.Demplus_S1.nextvalue integers). I'm just not sure what to put with the /columns command.
Thank you!

You need to log the respective <text> elements' currentitem properties, not anything to do with the list's nextvalue.