Error in my script (it closes itself as soon as I get to the task).


Author
Message
Elow44
Elow44
Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)
Group: Forum Members
Posts: 5, Visits: 9
Hello,
I am new to using inquisit.
I have done a simple reaction time task. I must have an error in my script but can't find it.

I have different types of pictograms that follow each other randomly - 10 times each - (normally it's good) and a cross appears between each pictogram.
The ITIs are random.

When I run my script it closes after the "demographic" block, and when I run the SRTT trial I only have the images without the cross....

I hope I was clear.... Thanks for your help


Attachments
1TRsAlim.iqx (129 views, 26.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
Elow44 - 2/24/2022
Hello,
I am new to using inquisit.
I have done a simple reaction time task. I must have an error in my script but can't find it.

I have different types of pictograms that follow each other randomly - 10 times each - (normally it's good) and a cross appears between each pictogram.
The ITIs are random.

When I run my script it closes after the "demographic" block, and when I run the SRTT trial I only have the images without the cross....

I hope I was clear.... Thanks for your help


You need to provide all files the script requres to run, otherwise nobody will be able to reproduce this and tell you where the mistake is
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
Dave - 2/24/2022
Elow44 - 2/24/2022
Hello,
I am new to using inquisit.
I have done a simple reaction time task. I must have an error in my script but can't find it.

I have different types of pictograms that follow each other randomly - 10 times each - (normally it's good) and a cross appears between each pictogram.
The ITIs are random.

When I run my script it closes after the "demographic" block, and when I run the SRTT trial I only have the images without the cross....

I hope I was clear.... Thanks for your help


You need to provide all files the script requres to run, otherwise nobody will be able to reproduce this and tell you where the mistake is

(1) The crash is because you are referencing a stimulus that does not exist in the script.

<block exemple>
/ ontrialbegin = [
    values.block = 0;
    text.focus.textbgcolor = parameters.screencolor;
    text.focus.textcolor = parameters.focuscolor;
    block.SRTTblock.screencolor = parameters.screencolor;
]
/ trials = [1=instructions; 2-11 = noreplace(HighCalorieFood, LowCalorieFood)]
/ errormessage = true(error,200)
/ responsemode = correct
</block>

You've instructed trials in <block exemple> to display an error message, a stimulus called "error" for 200ms. There is no stimulus called "error" defined anywhere in the script.

(2) The script has other issues.

<trial SRTT>
/ ontrialbegin = [
    
    values.stiminterval = list.stimulusinterval.nextvalue;
    trial.SRTT.insertstimulustime(item.HighCalorieFood, item.LowCalorieFood, values.stiminterval);
]

/ stimulustimes = [0 = focus]
/ beginresponsetime = values.stiminterval
/ validresponse = (" ")
/ correctresponse = (" ")
/ ontrialend = [trial.SRTT.resetstimulusframes();]
/ branch = [return trial.SRTT;]
</trial>

This makes no sense. <item> elements are not stimulus elements and they cannot be inserted into trial's stimulus presentation sequence. Moreover, the syntax is all wrong and it's not even clear what this is supposed to do. insertstimulustime() has two arguments -- the stimulus object to be inserted and the time it is to be inserted at -- not three.

https://www.millisecond.com/support/docs/v6/html/language/functions/insertstimulustime.htm

(3) Nowhere in the script do you actually run <trial SRTT>. Instead you set up and run these two trials:

<trial LowCalorieFood>
/ validresponse = (" ")
/ correctresponse = (" ")
/ stimulusframes = [1 = LowCalorie]
/ posttrialpause = values.stiminterval = list.stimulusinterval.nextvalue

</trial>

<trial HighCalorieFood>
/ validresponse = (" ")
/ correctresponse = (" ")
/ stimulusframes = [1 = HighCalorie]
/ posttrialpause = values.stiminterval = list.stimulusinterval.nextvalue

</trial>



Elow44
Elow44
Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)Associate Member (59 reputation)
Group: Forum Members
Posts: 5, Visits: 9
[citation]
[c] David - 24/02/2022 [/b]
[citation]
[c] David - 24/02/2022 [/b]
[citation]
[c] Elow44 - 24/02/2022 [/b]
Bonjour,
je suis novice dans l'utilisation d'inquisit.
J'ai fait une tâche simple de temps de réaction. Je dois avoir une erreur dans mon script mais je ne la trouve pas.

J'ai différents types de pictogrammes qui se succèdent aléatoirement - 10 fois chacun - (normalement c'est bien) et une croix apparaît entre chaque pictogramme.
Les ITI sont aléatoires.

Lorsque j'exécute mon script, il se ferme après le bloc "démographique", et lorsque j'exécute l'essai SRTT, je n'ai que les images sans la croix...

J'espère avoir été clair... Merci pour votre aide

[/citation]

Vous devez fournir tous les fichiers dont le script a besoin pour s'exécuter, sinon personne ne pourra le reproduire et vous dire où se trouve l'erreur
[/citation]

(1) Le crash est dû au fait que vous faites référence à un stimulus qui n'existe pas dans le script.

<exemple de bloc>
/ ontrialbegin = [
    values.block = 0;
    text.focus.textbgcolor = parameters.screencolor;
    text.focus.textcolor = parameters.focuscolor;
    block.SRTTblock.screencolor = parameters.screencolor;
]
/ essais = [1=instructions ; 2-11 = noreplace(HighCalorieFood, LowCalorieFood)]
/ errormessage = true( error ,200)
/ responsemode = correct
</block>

Vous avez demandé aux essais dans <block exemple> d'afficher un message d'erreur, un stimulus appelé "error" pendant 200 ms. Il n'y a aucun stimulus appelé "erreur" défini n'importe où dans le script.

(2) Le script a d'autres problèmes.

<trial SRTT>
/ ontrialbegin = [
    
    values.stiminterval = list.stimulusinterval.nextvalue;
    trial.SRTT.insertstimulustime(item.HighCalorieFood, item.LowCalorieFood, values.stiminterval);
]

/ stimulustimes = [0 = focus]
/ beginresponsetime = values.stiminterval
/ validresponse = (" ")
/ correctresponse = (" ")
/ ontrialend = [trial.SRTT.resetstimulusframes();]
/ branch = [return trial.SRTT ;]
</trial>

Cela n'a aucun sens. Les éléments <item> ne sont pas des éléments de stimulus et ne peuvent pas être insérés dans la séquence de présentation du stimulus de l'essai. De plus, la syntaxe est fausse et ce n'est même pas clair ce que cela est censé faire.deux arguments -- l' objet stimulus à insérer et l' heure à laquelle il doit être inséré -- pas trois .

https://www.millisecond.com/support/docs/v6/html/language/functions/insertstimulustime.htm

(3) Nulle part dans le script n'exécutez-vous réellement <trial SRTT>. Au lieu de cela, vous configurez et exécutez ces deux essais :

<trial LowCalorieFood>
/ validresponse = (" ")
/ correctresponse = (" ")
/ stimulusframes = [1 = LowCalorie]
/ posttrialpause = values.stiminterval = list.stimulusinterval.nextvalue

</ trial>

<trial HighCalorieFood>
/ validresponse = (" ")
/ correctresponse = (" ")
/ stimulusframes = [1 = HighCalorie]
/ posttrialpause = values.stiminterval = list .stimulusinterval.nextvalue

</trial>


[/citation]

Thank you very much for your reply. I'm going to rewrite my whole script.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search