fixation cross in go nogo task #1873
Unanswered
mathieudev88
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Hey @mathieudev88. Can you please copy the relevant bits of code into the post so folks don't have to download a zip file? |
Beta Was this translation helpful? Give feedback.
3 replies
-
I think the problem is that this for loop creates a set of test stimuli... for (var i = 0; i < num_go_stim; i++) {
test_stimuli_block.push(fixation_block)
test_stimuli_block.push({
stimulus: '<div class = centerbox><div id = ' + stims[0][1] + '></div></div>',
data: {
correct_response: correct_responses[0][1],
condition: correct_responses[0][0],
trial_id: 'test_block'
}
})
} ... which are then randomly repeated with this line of code: var test_trials = jsPsych.randomization.repeat(test_stimuli_block, 35); So You need to instead insert the fixation cross in the part of the experiment that is using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Im starting in jsPsych, I would like to add a fixation cross in this go nogo task (task from experimental factory), see in the attached file.
I create the variable "fixation_block" in the script but I don't know how can I add the cross just before each stimulus in this script :
I have tried with this line "test_stimuli_block.push(fixation_block)" just before the line "test_stimuli_block.push({" but no success :
And the test_block variable :
Do you have any ideas how can I implement the fixation cross in this script ?
Thanks in advance
go-nogo-fixation cross.zip
Mat
Beta Was this translation helpful? Give feedback.
All reactions