Millisecond Forums

How to edit a white point into the frist trial of a block?

https://www.millisecond.com/forums/Topic29259.aspx

By Theo Ero - 6/17/2020

Hello Inquisit-Team,

I hope you can help me because I am not able to solve the following Problem:
I am programming an Experiment where People see two numbers on the screen. These numbers are either shown in a blue or red Color and the Subjects have to push the key for the red color
For example:

Red Number Left​
- Trial 1: ​1R-2B
- Trial 2: 5R-9B
- Trial 3: 7R-2B
etc.

Red Number right
​- Trial 1: 9B-3R
- Trial 2: 4B-8R
- Trial 3: 8B-1R
etc.
​​
Now I would like to implement a White Point for the first Trial of the first block. It serves as an reminder under which condition the participants have to push the Buttons (here it is the red Color)
For example: If Trial 1 is the first Trial of the first block, the White Point occurs above '1R', so on the left side of the screen

I tried this with the following command:

​<block First_Practiceblock>
/ onblockbegin = [
if (block.First_Practiceblock.currenttrialnumber !=1) { trial.1R-2B; trial.5R-9B;
trial.7R-2B. insertstimulustime(picture.point_left);}
​if (block.First_Practiceblock.currenttrialnumber !=1) { trial.9B-3R; trial.4B-8R;
trial.8B-1R. insertstimulustime(picture.point_right);}

Or do I have to define everything with the /ontrialbegin command?

Thank you for helping!
Theo​​​​​​
​​​​​​​​​​​​​​
By Dave - 6/17/2020

Theo Ero - 6/17/2020
Hello Inquisit-Team,

I hope you can help me because I am not able to solve the following Problem:
I am programming an Experiment where People see two numbers on the screen. These numbers are either shown in a blue or red Color and the Subjects have to push the key for the red color
For example:

Red Number Left
- Trial 1: 1R-2B
- Trial 2: 5R-9B
- Trial 3: 7R-2B
etc.

Red Number right
- Trial 1: 9B-3R
- Trial 2: 4B-8R
- Trial 3: 8B-1R
etc.

Now I would like to implement a White Point for the first Trial of the first block. It serves as an reminder under which condition the participants have to push the Buttons (here it is the red Color)
For example: If Trial 1 is the first Trial of the first block, the White Point occurs above '1R', so on the left side of the screen

I tried this with the following command:

<block First_Practiceblock>
/ onblockbegin = [
if (block.First_Practiceblock.currenttrialnumber !=1) { trial.1R-2B; trial.5R-9B;
trial.7R-2B. insertstimulustime(picture.point_left);}
if (block.First_Practiceblock.currenttrialnumber !=1) { trial.9B-3R; trial.4B-8R;
trial.8B-1R. insertstimulustime(picture.point_right);}

Or do I have to define everything with the /ontrialbegin command?

Thank you for helping!
Theo

Sorry, the /onblockbegin logic you posted doesn't make sense as given and it's not clear how it's supposed to relate to what you intend to do.

First, you only do stuff in there when it's NOT the 1st trial.

if (block.First_Practiceblock.currenttrialnumber !=1)

Then,

if (block.First_Practiceblock.currenttrialnumber !=1) { trial.1R-2B; trial.5R-9B;
trial.7R-2B. insertstimulustime(picture.point_left);}

do nothing at all and it's not clear what it's intended to do.

FInally,

trial.7R-2B. insertstimulustime(picture.point_left);

is incomplete, you're not giving any time at which the picture stimulus should be inserted into the trial's stimulus presentation sequence.

What you should do is indeed use /ontrialbegin, i.e. something like

<trial 1r2b>
/ ontrialbegin = [
    if(script.currentblock == "First_Practiceblock" && block.First_Practiceblock.trialcount <=1) {
        trial.1r2b.insertstimulustime(picture.point_left, 0);
    }
]
...
/ ontrialend = [
    trial.1r2b.resetstimulusframes();
]
</trial>

and so forth.