record different answers in a single trial


Author
Message
derodriguezz
derodriguezz
Expert (1.1K reputation)Expert (1.1K reputation)Expert (1.1K reputation)Expert (1.1K reputation)Expert (1.1K reputation)Expert (1.1K reputation)Expert (1.1K reputation)Expert (1.1K reputation)Expert (1.1K reputation)
Group: Forum Members
Posts: 10, Visits: 51
Hi everyone!
I'm setting a trial in which must be recorder 2 states from the selection in the same unique individual's choice between two cues. I have rectangles as buttons behind each cue, relative to the positions of the states. In this case, I´m coding response as "00"- "01" for the state A (brand: EE-ET) and "02" - "03" for  the state B (valence: positive-negative) of the cue. Actually the coding of the trial is just one of the two squares, that have the same size.

<trial posneg>
/ ontrialbegin = [
  values.EE_hpos = list.random_hpos.nextvalue;
  values.ET_hpos = list.random_hpos.nextvalue;
  values.headerpos_hpos = list.random_hpos.nextvalue;
  values.headerneg_hpos = list.random_hpos.nextvalue;

]
/ ontrialend = [
  if (trial.posneg.response == "02" && values.EE_hpos == values.headerpos_hpos)
  values.headerchosen = text.headerpos.currentitem;
  else if (trial.posneg.response == "03" && values.EE_hpos == values.headerneg_hpos)
  values.headerchosen = text.headerneg.currentitem;
  else if (trial.posneg.response == "02" && values.ET_hpos == values.headerpos_hpos)
  values.headerchosen = text.headerpos.currentitem;
  else if (trial.posneg.response == "03" && values.ET_hpos == values.headerneg_hpos)
  values.headerchosen = text.headerneg.currentitem;

  if (trial.posneg.response == "00" && values.EE_hpos == values.headerpos_hpos)
  values.headerchosen = text.headerpos.currentitem;
  else if (trial.posneg.response == "00" && values.EE_hpos == values.headerneg_hpos)
  values.headerchosen = text.headerneg.currentitem;
  else if (trial.posneg.response == "01" && values.ET_hpos == values.headerpos_hpos)
  values.headerchosen = text.headerpos.currentitem;
  else if (trial.posneg.response == "01" && values.ET_hpos == values.headerneg_hpos)
  values.headerchosen = text.headerneg.currentitem;
]

/ontrialend = [
  values.rt = trial.posneg.latency;

]
/stimulusframes = [1 = 00, 01, 02, 03, question, headerpos,headerneg, EE, ET]
/ validresponse = (02,03,00,01)
/ inputdevice = mouse
</trial>

Thank You Very Much!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
derodriguezz - 7 Years Ago
Dave - 7 Years Ago
derodriguezz - 7 Years Ago
Dave - 7 Years Ago
                     + x [quote] [b] Dave - Thursday, April 5, 2018 [/b] +...
derodriguezz - 7 Years Ago
                         + x [quote] [b] derodriguezz - Thursday, April 5, 2018 [/b]...
Dave - 7 Years Ago
                             + x [quote] [b] Dave - Thursday, April 5, 2018 [/b] +...
derodriguezz - 7 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search