/ ontrialbegin


Author
Message
Igor Iarrobino
Igor Iarrobino
New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)
Group: Forum Members
Posts: 5, Visits: 12
Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:


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: 12K, Visits: 101K
Igor Iarrobino - 7/2/2024
Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:

Please attach the entire script. To attach files, select +Insert -> Add File

As for the incomplete code snippet you posted, the syntax here is broken:

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

If anything, that ought to read

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  if(values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]
Edited 2 Weeks Ago by Dave
Igor Iarrobino
Igor Iarrobino
New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)New Member (16 reputation)
Group: Forum Members
Posts: 5, Visits: 12
Dave - 7/2/2024
Igor Iarrobino - 7/2/2024
Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:

Please attach the entire script. To attach files, select +Insert -> Add File

As for the incomplete code snippet you posted, the syntax here is broken:

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

If anything, that ought to read

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  if(values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

Hi Dave,
thank you for your kind and quick answer.
I thought of an unwanted interruption of the script.
I was just trying to change the snippet so that I would superimpose the word position at the centre of the emotional face instead of putting it on the top/bottom of it.
Now, you can find attached the entire script.




Attachments
emostroop_leftdisgust_1.iqx (15 views, 57.00 KB)
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: 12K, Visits: 101K
Igor Iarrobino - 7/3/2024
Dave - 7/2/2024
Igor Iarrobino - 7/2/2024
Hi everyone,
I'm Igor and this is my first day in which I'm trying to modify an Inquisit script.
My problem is with the following lines of script:
<trial testE>

<trial testE>
/ inputdevice = keyboard
/ ontrialbegin = [
    values.selectStim = list.testE_itemnumbers.nextvalue;
    values.wordposition = list.wordPositions_testE.nextvalue;
    values.congruence = list.congruency_testE.nextvalue;
    values.correctButton = item.correctButton_testE.item(values.selectStim);
    values.wordposition == 0){
        values.word_y = parameters.center_y;
    }
]

    
The error says that I'm missing a ']'. Perhaps, I put it into the script in the wrong way.
Could you please help me out?
I'm just at the beginning and my head is already exploding! :hehe:

Please attach the entire script. To attach files, select +Insert -> Add File

As for the incomplete code snippet you posted, the syntax here is broken:

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

If anything, that ought to read

/ ontrialbegin = [
  values.selectStim = list.testE_itemnumbers.nextvalue;
  values.wordposition = list.wordPositions_testE.nextvalue;
  values.congruence = list.congruency_testE.nextvalue;
  values.correctButton = item.correctButton_testE.item(values.selectStim);
  if(values.wordposition == 0){
   values.word_y = parameters.center_y;
  }

]

Hi Dave,
thank you for your kind and quick answer.
I thought of an unwanted interruption of the script.
I was just trying to change the snippet so that I would superimpose the word position at the centre of the emotional face instead of putting it on the top/bottom of it.
Now, you can find attached the entire script.


Why so complicated? If you only want a single Y position (center of the screen), just set both the top_y and bottom_y parameter to 50%. You don't need to change anything else.

Also, any inline comments must be preceded by //. You can't just type into elements like so



it ought to be



Generally see the Programmer's Manual available at https://www.millisecond.com/support/Inquisit%20Programmer's%20Manual.pdf

Edited 3 Weeks Ago by Dave
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search