different trials, made with stimuli from same list


Author
Message
Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Hi everybody
For my task I need different trials for different trials for different blocks. To be specific, I need different trials for practice block 1, practice block 2, practice block 3 (not in the script-piece below) and experimental block since I need different feedbacks etc.
I had trouble running my script, and I thought it was the case since the different trials were made out with stimuli (words, pictures and sounds) from the same list.
Now I made separate lists that hold the same stimuli (e.g. list.irrelevants1 and list.irrelevants2) for different types of blocktrials.
When I run it, I get the message "could not locate the element trial.P2irrelevants in block 2_3" and "trial 3 is unassigned in block 2_3".

I'm a bit lost. Can somebody see what goes wrong here? Thank you in advance, it would help me very much.
Amelie


Here is a piece of the script:
______________________________________________________
LISTS OF irrelevants stimuli / target stimuli/ probes stimuli

<list irrelevants>
/items = (text.wordirrelevants, picture.pictirrelevants)
/selectionmode=random
/maxrunsize= 1
/replace = false
</list>
<list irrelevants2>
/items = (text.wordirrelevants, picture.pictirrelevants)
/selectionmode=random
/maxrunsize= 1
/replace = false
</list>

<list targets>
/items = (text.wordtargets, picture.picttargets)
/selectionmode=random
/maxrunsize= 1
/replace = false
</list>
<list targets2>
/items = (text.wordtargets, picture.picttargets)
/selectionmode=random
/maxrunsize= 1
/replace = false
</list>

<list probes>
/items = (text.wordprobes, picture.pictprobes)
/selectionmode=random
/maxrunsize= 1
/replace = false
</list>
<list probes2>
/items = (text.wordprobes, picture.pictprobes)
/selectionmode=random
/maxrunsize= 1
/replace = false
</list>
<list irrelevants_sounds>
/items = (sound.soundirrelevants)
/selectionmode=random
/maxrunsize = 1
/poolsize = 6
/replace = false
</list>
<list irrelevants_sounds2>
/items = (sound.soundirrelevants)
/selectionmode=random
/maxrunsize = 1
/poolsize = 6
/replace = false
</list>

<list targets_sounds>
/items = (sound.soundtargets)
/selectionmode=random
/maxrunsize = 1
/poolsize = 2
/replace = false
</list>
<list targets_sounds2>
/items = (sound.soundtargets)
/selectionmode=random
/maxrunsize = 1
/poolsize = 2
/replace = false
</list>

<list probes_sounds>
/items = (sound.soundprobes)
/selectionmode=random
/maxrunsize = 1
/poolsize= 2
/replace = false
</list>
<list probes_sounds2>
/items = (sound.soundprobes)
/selectionmode=random
/maxrunsize = 1
/poolsize= 2
/replace = false
</list>

.......

<block practice1>
/trials = [1-30=noreplacenorepeat(trial.Pirrelevants, trial.Pirrelevants,trial.Pirrelevants,trial.Pirrelevants,trial.Pirrelevants,trial.Pirrelevants,
trial.Pirrelevants, trial.Pirrelevants,trial.Pirrelevants,trial.Pirrelevants,trial.Pirrelevants,trial.Pirrelevants,
trial.Pirrelevants_sounds, trial.Pirrelevants_sounds, trial.Pirrelevants_sounds, trial.Pirrelevants_sounds, trial.Pirrelevants_sounds, trial.Pirrelevants_sounds,
trial.Pprobes,trial.Pprobes, trial.Pprobes,trial.Pprobes,trial.Pprobes_sounds,trial.Pprobes_sounds,trial.Ptargets,trial.Ptargets,trial.Ptargets,trial.Ptargets,
trial.Ptargets_sounds,trial.Ptargets_sounds)]
/ recorddata = true
</block>

<block practice2_1>
/trials = [1= practice2; 2= fingers; 3-32=noreplacenorepeat(trial.P2irrelevants, trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,
trial.P2irrelevants, trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,
trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds,
trial.P2probes,trial.P2probes, trial.P2probes,trial.P2probes,trial.P2probes_sounds,trial.P2probes_sounds,trial.P2targets,trial.P2targets,trial.P2targets,trial.P2targets,
trial.P2targets_sounds,trial.P2targets_sounds)]
/ branch = [if ((trial.P2irrelevants.percentcorrect + trial.P2irrelevants_sounds.percentcorrect +
            trial.P2probes.percentcorrect + trial.P2probes_sounds.percentcorrect + trial.Ptargets.percentcorrect
            + trial.P2targets_sounds.percentcorrect)/6 < 50
            || ((trial.P2irrelevants.meanlatency + trial.P2irrelevants_sounds.meanlatency)/2 > 800)) block.practice2_2;]
</block>

<block practice2_2>
/trials = [1= practice2_2; 2= fingers; 3-32=noreplacenorepeat(trial.P2irrelevants, trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,
trial.P2irrelevants, trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,
trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds,
trial.P2probes,trial.P2probes, trial.P2probes,trial.P2probes,trial.P2probes_sounds,trial.P2probes_sounds,trial.P2targets,trial.P2targets,trial.P2targets,trial.P2targets,
trial.P2targets_sounds,trial.P2targets_sounds)]
/ branch = [if ((trial.P2irrelevants.percentcorrect + trial.P2irrelevants_sounds.percentcorrect +
            trial.P2probes.percentcorrect + trial.P2probes_sounds.percentcorrect + trial.Ptargets.percentcorrect
            + trial.P2targets_sounds.percentcorrect)/6 < 50
            || ((trial.P2irrelevants.meanlatency + trial.P2irrelevants_sounds.meanlatency)/2 > 800)) block.practice2_3;]
</block>

<block practice2_3>
/trials = [1= practice2_3; 2= fingers; 3-32=noreplacenorepeat(trial.P2irrelevants, trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,
trial.P2irrelevants, trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,trial.P2irrelevants,
trial.P2irr
elevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds, trial.P2irrelevants_sounds,
trial.P2probes,trial.P2probes, trial.P2probes,trial.P2probes,trial.P2probes_sounds,trial.P2probes_sounds,trial.P2targets,trial.P2targets,trial.P2targets,trial.P2targets,
trial.P2targets_sounds,trial.P2targets_sounds)]
/ branch = [if ((trial.P2irrelevants.percentcorrect + trial.P2irrelevants_sounds.percentcorrect +
            trial.P2probes.percentcorrect + trial.P2probes_sounds.percentcorrect + trial.Ptargets.percentcorrect
            + trial.P2targets_sounds.percentcorrect)/6 < 50
            || ((trial.P2irrelevants.meanlatency + trial.P2irrelevants_sounds.meanlatency)/2 > 800)) block.practicewrong;]
</block>
            

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: 98K
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Amelinq - 11/1/2023
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Plus, it also seems that Inquisit does find the <trial P2irrelevants> at block practice2_2 but not anymore in block practice2_3, or do I see that wrong? Otherwise I would also have had the comment 'could not locate the element P2irrelevants at block practice 2_2", right?

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: 98K
Amelinq - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Plus, it also seems that Inquisit does find the <trial P2irrelevants> at block practice2_2 but not anymore in block practice2_3, or do I see that wrong? Otherwise I would also have had the comment 'could not locate the element P2irrelevants at block practice 2_2", right?

Just attach the full script, please. It's not possible to answer your questions based on piecemeal excerpts that don't give the full picture. (To attach files, use +Insert -> Add File...

Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Dave - 11/1/2023
Amelinq - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Plus, it also seems that Inquisit does find the <trial P2irrelevants> at block practice2_2 but not anymore in block practice2_3, or do I see that wrong? Otherwise I would also have had the comment 'could not locate the element P2irrelevants at block practice 2_2", right?

Just attach the full script, please. It's not possible to answer your questions based on piecemeal excerpts that don't give the full picture. (To attach files, use +Insert -> Add File...

Thank you for looking into it, here's the script:

Attachments
ourCIT-misinformation.iqx (60 views, 33.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: 98K
Amelinq - 11/1/2023
Dave - 11/1/2023
Amelinq - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Plus, it also seems that Inquisit does find the <trial P2irrelevants> at block practice2_2 but not anymore in block practice2_3, or do I see that wrong? Otherwise I would also have had the comment 'could not locate the element P2irrelevants at block practice 2_2", right?

Just attach the full script, please. It's not possible to answer your questions based on piecemeal excerpts that don't give the full picture. (To attach files, use +Insert -> Add File...

Thank you for looking into it, here's the script:



You've a mistake in that block, the trial name is broken up (see above), so the script looks for a nonexistent <trial P2irr>, which is what the error message actually says:


Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Dave - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
Amelinq - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Plus, it also seems that Inquisit does find the <trial P2irrelevants> at block practice2_2 but not anymore in block practice2_3, or do I see that wrong? Otherwise I would also have had the comment 'could not locate the element P2irrelevants at block practice 2_2", right?

Just attach the full script, please. It's not possible to answer your questions based on piecemeal excerpts that don't give the full picture. (To attach files, use +Insert -> Add File...

Thank you for looking into it, here's the script:



You've a mistake in that block, the trial name is broken up (see above), so the script looks for a nonexistent <trial P2irr>, which is what the error message actually says:


Oh dear... :-) Such a stupid fault.
Thank you very much, Dave! Really appreciate you taking the time.
Amelinq
Amelinq
Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)Associate Member (243 reputation)
Group: Forum Members
Posts: 19, Visits: 48
Amelinq - 11/1/2023
Dave - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
Amelinq - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Plus, it also seems that Inquisit does find the <trial P2irrelevants> at block practice2_2 but not anymore in block practice2_3, or do I see that wrong? Otherwise I would also have had the comment 'could not locate the element P2irrelevants at block practice 2_2", right?

Just attach the full script, please. It's not possible to answer your questions based on piecemeal excerpts that don't give the full picture. (To attach files, use +Insert -> Add File...

Thank you for looking into it, here's the script:



You've a mistake in that block, the trial name is broken up (see above), so the script looks for a nonexistent <trial P2irr>, which is what the error message actually says:


Oh dear... :-) Such a stupid fault.
Thank you very much, Dave! Really appreciate you taking the time.

Sorry Dave, now that I sent you the whole script maybe you could answer one more question for me (and hopefully than you will be rid of me).
All practice blocks run perfectly, but when I run a test block (<block test1>, <block test2>, ...) there are some "empty" trials. These are trials without a picture/word/sound, the only thing that shows up in this empty trial is the 'yes' and 'no'. The time out also works for these empty trials. It seems thus that only the stimulus doesn't show up.
All the trials in the blocks are exactly the same as the practice trialsin the practice blocks who work as normal (with no empty trials).
Do you have an idea?



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: 98K
Amelinq - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
Amelinq - 11/1/2023
Amelinq - 11/1/2023
Dave - 11/1/2023
What the error message tells you is that no <trial P2irrelevants> element exists in the script, thus the blocks -- where you reference such a trial element -- cannot run. In other words, the thing you told them to run is not there.

Hi Dave,
yes understand that, but trial.P2irrelevants is defined in the script (where TRIALS PRACTICE 2 is written above). I will put the part where I define the trials here:

TRIALS PRACTICE 1
_________________________________________________________________________________________________________________________________________
<trial Pirrelevants>
/ ontrialbegin = [
  trial.Pirrelevants.resetstimulusframes();
  trial.Pirrelevants.insertstimulustime(list.irrelevants.nextvalue, 200);]    
/branch= [if(trial.Pirrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Ptargets>
/ ontrialbegin = [
  trial.Ptargets.resetstimulusframes();
  trial.Ptargets.insertstimulustime(list.targets.nextvalue, 200);]    
/branch= [if (trial.Ptargets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
//timeout = 1500
/beginresponsetime = 0
</trial>

<trial Pprobes>
/ ontrialbegin = [
  trial.Pprobes.resetstimulusframes();
  trial.Pprobes.insertstimulustime(list.probes.nextvalue, 200);]    
/branch= [if (trial.Pprobes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
//timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 1
<trial Pirrelevants_sounds>
/ ontrialbegin = [
  trial.Pirrelevants_sounds.resetstimulusframes();
  trial.Pirrelevants_sounds.insertstimulustime(list.irrelevants_sounds.nextvalue, 200);]
/branch= [if(trial.Pirrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Ptargets_sounds>
/ ontrialbegin = [
  trial.Ptargets_sounds.resetstimulusframes();
  trial.Ptargets_sounds.insertstimulustime(list.targets_sounds.nextvalue, 200);]
/branch= [if(trial.Ptargets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

<trial Pprobes_sounds>
/ ontrialbegin = [
  trial.Pprobes_sounds.resetstimulusframes();
  trial.Pprobes_sounds.insertstimulustime(list.probes_sounds.nextvalue, 200);]
/branch= [if(trial.Pprobes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
//timeout = 2500
/beginresponsetime = 0
</trial>

TRIALS PRACTICE 2 PHASE (time out, wrong FB)
________________________________________________________________________________________________
<trial P2irrelevants>
/ ontrialbegin = [
  trial.P2irrelevants.resetstimulusframes();
  trial.P2irrelevants.insertstimulustime(list.irrelevants2.nextvalue, 200);]    
/branch= [if(trial.P2irrelevants.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2targets>
/ ontrialbegin = [
  trial.P2targets.resetstimulusframes();
  trial.P2targets.insertstimulustime(list.targets2.nextvalue, 200);]    
/branch= [if (trial.P2targets.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no]
/validresponse = ("s","l")
/correctresponse = ("s") // yes = s-key
/timeout = 1500
/beginresponsetime = 0
</trial>

<trial P2probes>
/ ontrialbegin = [
  trial.P2probes.resetstimulusframes();
  trial.P2probes.insertstimulustime(list.probes2.nextvalue, 200);]    
/branch= [if (trial.P2probes.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no; 800 = tooslow]
/validresponse = ("s","l")
/correctresponse = ("l")
/timeout = 1500
/beginresponsetime = 0
</trial>

TRIAL SOUNDS PRACTICE 2 (time-out, wrong FB)
<trial P2irrelevants_sounds>
/ ontrialbegin = [
  trial.P2irrelevants_sounds.resetstimulusframes();
  trial.P2irrelevants_sounds.insertstimulustime(list.irrelevants_sounds2.nextvalue, 200);]
/branch= [if(trial.P2irrelevants_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2targets_sounds>
/ ontrialbegin = [
  trial.P2targets_sounds.resetstimulusframes();
  trial.P2targets_sounds.insertstimulustime(list.targets_sounds2.nextvalue, 200);]
/branch= [if(trial.P2targets_sounds.responsetext == "l")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("s") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

<trial P2probes_sounds>
/ ontrialbegin = [
  trial.P2probes_sounds.resetstimulusframes();
  trial.P2probes_sounds.insertstimulustime(list.probes_sounds2.nextvalue, 200);]
/branch= [if(trial.P2probes_sounds.responsetext == "s")trial.wrong]
/stimulustimes = [0 = yes, no, soundicon]
/validresponse = ("s","l")
/correctresponse = ("l") // no = l-key
/timeout = 2500
/beginresponsetime = 0
</trial>

Plus, it also seems that Inquisit does find the <trial P2irrelevants> at block practice2_2 but not anymore in block practice2_3, or do I see that wrong? Otherwise I would also have had the comment 'could not locate the element P2irrelevants at block practice 2_2", right?

Just attach the full script, please. It's not possible to answer your questions based on piecemeal excerpts that don't give the full picture. (To attach files, use +Insert -> Add File...

Thank you for looking into it, here's the script:



You've a mistake in that block, the trial name is broken up (see above), so the script looks for a nonexistent <trial P2irr>, which is what the error message actually says:


Oh dear... :-) Such a stupid fault.
Thank you very much, Dave! Really appreciate you taking the time.

Sorry Dave, now that I sent you the whole script maybe you could answer one more question for me (and hopefully than you will be rid of me).
All practice blocks run perfectly, but when I run a test block (<block test1>, <block test2>, ...) there are some "empty" trials. These are trials without a picture/word/sound, the only thing that shows up in this empty trial is the 'yes' and 'no'. The time out also works for these empty trials. It seems thus that only the stimulus doesn't show up.
All the trials in the blocks are exactly the same as the practice trialsin the practice blocks who work as normal (with no empty trials).
Do you have an idea?



I don't have the stimuli (images, sound files, etc.), so I couldn't possibly tell you anything about "empty" tirals. My advice to you is:
- Figure out which <trial> elements this happens with by looking at the data file. I.e. is it always <trial irrelevants>? Or is it <trial probes>? etc.
- Then double- and triple-check the respective <trial> elements, specifically the stimulus insertion logic. Take the below mistake as an example:



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search