﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Random EEG triggers</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 18 Sep 2026 20:11:08 GMT</lastBuildDate><ttl>20</ttl><item><title>Random EEG triggers</title><link>https://forums.millisecond.com/Topic35306.aspx</link><description>Hi,&lt;br/&gt;I'm creating an experiment where participants are watching one video at a time and after each video they answer a question by pressing a key.&lt;br/&gt;I'm recording EEG data during the task.&lt;br/&gt;My trial order looks like this: fixation, video, question + answer, fixation, video, etc.&lt;br/&gt;&lt;br/&gt;Since I need to show different videos in a specific order, I created a unique trial where the video is selected based on my order and also I created a conditional statement to send a specific trigger depending on the condition to which each video belongs.&lt;br/&gt;&lt;br/&gt;The script is working fine except for the triggers in the video trials, as they go crazy after a while (not from the beginning) by sending triggers I didn't define and also sending multiple triggers for a single video. Fixation triggers also create similar problems.&lt;br/&gt;&lt;br/&gt;Triggers are working fine for the question trial ("taskMF") and the key response.&lt;br/&gt;I have no clue of what is going wrong, can someone please help me? &lt;br/&gt;Sorry for my bad coding style.&lt;br/&gt;&lt;br/&gt;Thank you very much,&lt;br/&gt;Francesca&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;BLOCKS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstructBlock&amp;gt;&lt;br/&gt;/ trials = [1= instruct;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Pausa1&amp;gt;&lt;br/&gt;/ trials = [1= pausa; 2 = start]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Pausa2&amp;gt;&lt;br/&gt;/ trials = [1= pausa; 2 = start]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Endexp&amp;gt;&lt;br/&gt;/ trials = [1= endexp;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block ExpBlock1&amp;gt;&lt;br/&gt;/ stop = [values.count_sequence == parameters.trialnumber]&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.countblocks += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.practice  = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.blockk = 1]&lt;br/&gt;/ trials = [1 = fixation]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block ExpBlock2&amp;gt;&lt;br/&gt;/ stop = [values.count_sequence == parameters.trialnumber]&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.countblocks += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.practice  = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.blockk = 2]&lt;br/&gt;/ trials = [1 = fixation]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block ExpBlock3&amp;gt;&lt;br/&gt;/ stop = [values.count_sequence == parameters.trialnumber]&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.countblocks += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.practice  = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.blockk = 3]&lt;br/&gt;/ trials = [1 = fixation]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;PORT&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;port fix_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000101") //5&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port C2_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000001") //1&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port C3_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000010") // 2&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port I0_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000011") // 3&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port I3_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000100") // 4&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port correctmark&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("01011000") // 88&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port errormark&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("01100011") // 99&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port blockstart&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00001000", "00001001", "00001010", "00001011") // 8, 9, 10, 11&lt;br/&gt;/ select = sequence&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port blockend&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00001100") // 12&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port questFM&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00101100") // 44&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port reset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;TEXT&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ fontstyle = ("MS Shell Dlg 2", 4.38%, false, false, false, false, 5, 1)&lt;br/&gt;/ color = black&lt;br/&gt;/ txbgcolor = lightgray&lt;br/&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blank&amp;gt;&lt;br/&gt;/ items = (" ")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ fontstyle = ("MS Shell Dlg 2", 4.38%, false, false, false, false, 5, 1)&lt;br/&gt;/ color = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;VALUES &amp;amp; LISTS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;/ trialnumber = 96&lt;br/&gt;/ practicetrials = 16&lt;br/&gt;&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ condition = 0&lt;br/&gt;/ countblocks = 0&lt;br/&gt;/ practice = 0&lt;br/&gt;/ count_sequence = 0&lt;br/&gt;/ actor = 0&lt;br/&gt;/ stimulusname = 0&lt;br/&gt;/ accuracy = 0&lt;br/&gt;/ conditionlabel = 0&lt;br/&gt;/ fix_duration = 0&lt;br/&gt;/ blockk = 0&lt;br/&gt;/ code = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list jittered_fix&amp;gt;&lt;br/&gt;/ items = (1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500)&lt;br/&gt;/ replace = true&lt;br/&gt;/ itemprobabilities = uniform&lt;br/&gt;/ selectionrate = trial &lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuliNames_1&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,&lt;br/&gt;10,11,12,13,14,15,16,17,18,19,&lt;br/&gt;20,21,22,23,24,25,26,27,28,29,&lt;br/&gt;30,31,32,33,34,35,36,37,38,39,&lt;br/&gt;40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,&lt;br/&gt;60,61,62,63,64,65,66,67,68,69,&lt;br/&gt;70,71,72,73,74,75,76,77,78,79,&lt;br/&gt;80,81,82,83,84,85,86,87,88,89,&lt;br/&gt;90,91,92,93,94,95,96&lt;br/&gt;)&lt;br/&gt;/ poolsize = 96&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuliNames_2&amp;gt;&lt;br/&gt;/ items = (96,95,94,93,92,91,&lt;br/&gt;90,89,88,87,86,85,84,83,82,81,&lt;br/&gt;80,79,78,77,76,75,74,73,72,71,&lt;br/&gt;70,69,68,67,66,65,64,63,62,61,&lt;br/&gt;60,59,58,57,56,55,54,53,52,51,&lt;br/&gt;50,49,48,47,46,45,44,43,42,41,&lt;br/&gt;40,39,38,37,36,35,34,33,32,31,&lt;br/&gt;30,29,28,27,26,25,24,23,22,21,&lt;br/&gt;20,19,18,17,16,15,14,13,12,11,&lt;br/&gt;10,9,8,7,6,5,4,3,2,1&lt;br/&gt;)&lt;br/&gt;/ poolsize = 96&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuliNames_3&amp;gt;&lt;br/&gt;/ items = (11,&lt;br/&gt;12,3,13,14,15,16,17,18,19,1,2,4,5,6,7,&lt;br/&gt;8,9,10,24,25,26,27,28,&lt;br/&gt;29,30,20,21,22,23,45,46,&lt;br/&gt;47,48,49,50,33,31,32,63,&lt;br/&gt;34,35,36,37,38,39,40,41,&lt;br/&gt;42,43,44,74,75,76,51,52,&lt;br/&gt;53,54,55,56,57,58,95,60,&lt;br/&gt;61,62,64,65,66,67,68,69,&lt;br/&gt;70,71,72,73,77,78,79,80,&lt;br/&gt;81,82,83,84,85,86,87,88,&lt;br/&gt;89,90,91,92,59,93,94,96&lt;br/&gt;)&lt;br/&gt;/ poolsize = 96&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;TRIALS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instruct&amp;gt;&lt;br/&gt;/ stimulusframes = [1=instructions]&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/ stimulusframes = [1=start , blockstart  ] //&amp;nbsp;****UNCOMMENT****&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial pausa&amp;gt;&lt;br/&gt;/ stimulusframes = [1=pausa , blockend] //  ****UNCOMMENT****&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endexp&amp;gt;&lt;br/&gt;/ stimulusframes = [1=endexp]&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;----------------------------------------------------------------------------------------------&lt;br/&gt;----------------------------------------------------------------------------------------------&lt;br/&gt;&lt;br/&gt;&amp;lt;trial taskMF&amp;gt;&lt;br/&gt;/ stimulusframes = [1= taskMF, questFM; 2 = reset]&lt;br/&gt;/ validresponse = ("x","m")&lt;br/&gt;/ branch = [return trial.end]&lt;br/&gt;/ iscorrectresponse = [trial.taskMF.responsetext == values.actor]&lt;br/&gt;/ correctmessage = true(correctmark,0)&amp;nbsp;&amp;nbsp;&amp;nbsp;// ****UNCOMMENT****&lt;br/&gt;/ errormessage = true(errormark,0) // ****UNCOMMENT****&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fixation&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.actor = 0]&lt;br/&gt;/ ontrialbegin = [ values.fix_duration = list.jittered_fix.nextvalue]&lt;br/&gt;/ ontrialbegin = [ if (values.blockk==1) {values.code = list.stimuliNames_1.nextvalue}&lt;br/&gt;else if ( values.blockk ==2) {values.code = list.stimuliNames_2.nextvalue}&lt;br/&gt;else if ( values.blockk ==3) {values.code = list.stimuliNames_3.nextvalue}]&lt;br/&gt;/ stimulusframes = [1 = fixation , fix_onset; 2 = reset] //&amp;nbsp;****UNCOMMENT****&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ trialduration = values.fix_duration&lt;br/&gt;/ errormessage = false&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ branch = [ if (values.blockk == 1) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.trial_video1}&lt;br/&gt;else if (values.blockk == 2) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.trial_video2}&lt;br/&gt;else if (values.blockk == 3) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.trial_video3}]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( list.stimuliNames_1.currentvalue == 6&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 12&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 13&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 22&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 26&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 31&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 33&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 34&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 39&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 44&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 47&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 49&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 51&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 53&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 61&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 64&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 66&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 67&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 72&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 77&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 82&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 83&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 87&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 92) {&amp;nbsp;values.condition = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;else if ( list.stimuliNames_1.currentvalue== 1&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 3&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 8&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 9&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 16&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 18&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 21&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 23&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 24&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 27&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 30&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 35&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 37&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 40&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 43&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 55&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 57&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 59&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 60&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 69&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 71&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 75&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 78&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 85 ) {&amp;nbsp;values.condition = 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 4&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 5&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 7&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 10&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 11&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 14&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 15&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 17&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 25&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 28&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 36&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 42&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 48&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 63&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 65&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 74&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 76&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 81&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 84&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 86&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 89&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 91&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 94&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 95) {&amp;nbsp;values.condition = 3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;else if ( list.stimuliNames_1.currentvalue== 2&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 19&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 20&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 29&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 32&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 38&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 41&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 45&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 46&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 50&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 52&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 54&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 56&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 58&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 62&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 68&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 70&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 73&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 79&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 80&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 88&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 90&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 93&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 96) {&amp;nbsp;values.condition = 4;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;trial trial_video1&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( list.stimuliNames_1.currentvalue== 6&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 12&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 13&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 22&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 26&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 31&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 33&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 34&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 39&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 44&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 47&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 49&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 51&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 53&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 61&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 64&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 66&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 67&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 72&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 77&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 82&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 83&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 87&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 92) {trial.trial_video1.insertstimulusframe(port.C2_onset, 1)}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 1&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 3&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 8&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 9&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 16&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 18&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 21&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 23&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 24&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 27&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 30&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 35&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 37&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 40&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 43&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 55&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 57&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 59&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 60&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 69&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 71&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 75&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 78&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 85 ) {trial.trial_video1.insertstimulusframe(port.C3_onset, 1)}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 4&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 5&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 7&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 10&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 11&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 14&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 15&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 17&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 25&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 28&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 36&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 42&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 48&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 63&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 65&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 74&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 76&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 81&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 84&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 86&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 89&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 91&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 94&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 95) {trial.trial_video1.insertstimulusframe(port.I0_onset, 1)}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 2&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 19&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 20&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 29&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 32&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 38&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 41&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 45&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 46&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 50&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 52&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 54&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 56&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 58&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 62&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 68&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 70&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 73&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 79&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 80&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 88&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 90&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 93&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 96) {trial.trial_video1.insertstimulusframe(port.I3_onset, 1)};&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;&lt;br/&gt;/ ontrialbegin = [trial.trial_video1.insertstimulusframe(port.reset, 2)&amp;nbsp;&amp;nbsp;]&lt;br/&gt;&lt;br/&gt;/ stimulusframes = [ 1 = video.videolist_1 ]&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ branch = [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.taskMF ]&lt;br/&gt;&lt;br/&gt;/ontrialend = [&lt;br/&gt;values.code = list.stimuliNames_1.currentvalue;&lt;br/&gt; if ( &lt;br/&gt;video.videolist_1.currentitem == "f2AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoI3Watc.mp4") &lt;br/&gt; {values.actor = "x"} else if (&lt;br/&gt;video.videolist_1.currentitem == "m1AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CIoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoI3Watc.mp4")&lt;br/&gt; {values.actor = "m"}&lt;br/&gt; ]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/strong&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ ontrialbegin = [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  values.accuracy = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.actor = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.condition = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionlabel = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.fix_duration = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ stimulusframes = [1 = reset]&lt;br/&gt;/ branch = [return trial.fixation;]&lt;br/&gt;/ errormessage = false&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;STIMULI &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;--------------&lt;br/&gt;items&lt;br/&gt;--------------&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;video videolist_1&amp;gt;&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/items=  (&lt;br/&gt;"m2CupC3Offe.mp4",&lt;br/&gt;"f1CupI3Move.mp4",&lt;br/&gt;"m1KeyC3Offe.mp4",&lt;br/&gt;"f2KeyI0Move.mp4",&lt;br/&gt;"f1PhoI0Watc.mp4",&lt;br/&gt;"m2KeyC2Offe.mp4",&lt;br/&gt;"f1AppI0Move.mp4",&lt;br/&gt;"m2PhoC3Show.mp4",&lt;br/&gt;"f2CupC3Offe.mp4",&lt;br/&gt;"f1KeyI0Move.mp4",&lt;br/&gt;"m2BooI0Watc.mp4",&lt;br/&gt;"f1AppC2Offe.mp4",&lt;br/&gt;"m2PhoC2Show.mp4",&lt;br/&gt;"f2BooI0Watc.mp4",&lt;br/&gt;"f1CupI0Move.mp4",&lt;br/&gt;"m1AppC3Offe.mp4",&lt;br/&gt;"f2CloI0Watc.mp4",&lt;br/&gt;"m1BooC3Show.mp4",&lt;br/&gt;"f2AppI3Move.mp4",&lt;br/&gt;"m2CloI3Watc.mp4",&lt;br/&gt;"f1KeyC3Offe.mp4",&lt;br/&gt;"m1AppC2Offe.mp4",&lt;br/&gt;"f1AppC3Offe.mp4",&lt;br/&gt;"m1CloC3Show.mp4",&lt;br/&gt;"m2AppI0Move.mp4",&lt;br/&gt;"f2KeyC2Offe.mp4",&lt;br/&gt;"m1PhoC3Show.mp4",&lt;br/&gt;"f1CloI0Watc.mp4",&lt;br/&gt;"m2BooI3Watc.mp4",&lt;br/&gt;"f2PhoC3Show.mp4",&lt;br/&gt;"m2CupC2Offe.mp4",&lt;br/&gt;"m1AppI3Move.mp4",&lt;br/&gt;"f2AppC2Offe.mp4",&lt;br/&gt;"m1BooC2Show.mp4",&lt;br/&gt;"f2CloC3Show.mp4",&lt;br/&gt;"m1AppI0Move.mp4",&lt;br/&gt;"m2BooC3Show.mp4",&lt;br/&gt;"f2PhoI3Watc.mp4",&lt;br/&gt;"f1KeyC2Offe.mp4",&lt;br/&gt;"m2AppC3Offe.mp4",&lt;br/&gt;"f2CloI3Watc.mp4",&lt;br/&gt;"m1BooI0Watc.mp4",&lt;br/&gt;"f1PhoC3Show.mp4",&lt;br/&gt;"m2CloC2Show.mp4",&lt;br/&gt;"f2KeyI3Move.mp4",&lt;br/&gt;"m2AppI3Move.mp4",&lt;br/&gt;"m1CupC2Offe.mp4",&lt;br/&gt;"f2PhoI0Watc.mp4",&lt;br/&gt;"f1CloC2Show.mp4",&lt;br/&gt;"m2KeyI3Move.mp4",&lt;br/&gt;"f2BooC2Show.mp4",&lt;br/&gt;"m1CupI3Move.mp4",&lt;br/&gt;"m2AppC2Offe.mp4",&lt;br/&gt;"f1KeyI3Move.mp4",&lt;br/&gt;"m2CloC3Show.mp4",&lt;br/&gt;"f2BooI3Watc.mp4",&lt;br/&gt;"m2KeyC3Offe.mp4",&lt;br/&gt;"f1PhoI3Watc.mp4",&lt;br/&gt;"m1CupC3Offe.mp4",&lt;br/&gt;"f1BooC3Show.mp4",&lt;br/&gt;"f2CloC2Show.mp4",&lt;br/&gt;"m1BooI3Watc.mp4",&lt;br/&gt;"f2AppI0Move.mp4",&lt;br/&gt;"f1PhoC2Show.mp4",&lt;br/&gt;"m2CIoI0Watc.mp4",&lt;br/&gt;"f2PhoC2Show.mp4",&lt;br/&gt;"f1CupC2Offe.mp4",&lt;br/&gt;"m1KeyI3Move.mp4",&lt;br/&gt;"f2AppC3Offe.mp4",&lt;br/&gt;"m2PhoI3Watc.mp4",&lt;br/&gt;"f2BooC3Show.mp4",&lt;br/&gt;"m1KeyC2Offe.mp4",&lt;br/&gt;"f1BooI3Watc.mp4",&lt;br/&gt;"m1CupI0Move.mp4",&lt;br/&gt;"f1CloC3Show.mp4",&lt;br/&gt;"m2CupI0Move.mp4",&lt;br/&gt;"m1PhoC2Show.mp4",&lt;br/&gt;"f1CupC3Offe.mp4",&lt;br/&gt;"m1CloI3Watc.mp4",&lt;br/&gt;"f1AppI3Move.mp4",&lt;br/&gt;"m2CIoI0Watc.mp4",&lt;br/&gt;"f2CupC2Offe.mp4",&lt;br/&gt;"m1CloC2Show.mp4",&lt;br/&gt;"m2CupI0Move.mp4",&lt;br/&gt;"f2KeyC3Offe.mp4",&lt;br/&gt;"m1CloI0Watc.mp4",&lt;br/&gt;"f1BooC2Show.mp4",&lt;br/&gt;"f2CupI3Move.mp4",&lt;br/&gt;"m1KeyI0Move.mp4",&lt;br/&gt;"m2CupI3Move.mp4",&lt;br/&gt;"f1BooI0Watc.mp4",&lt;br/&gt;"m2BooC2Show.mp4",&lt;br/&gt;"m1PhoI3Watc.mp4",&lt;br/&gt;"f2CupI0Move.mp4",&lt;br/&gt;"m2PhoI0Watc.mp4",&lt;br/&gt;"f1CloI3Watc.mp4"&lt;br/&gt;)&lt;br/&gt;&amp;lt;/video&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 13 Apr 2023 17:59:23 GMT</pubDate><dc:creator>Francis&amp;m</dc:creator></item><item><title>RE: Random EEG triggers</title><link>https://forums.millisecond.com/Topic35307.aspx</link><description>&lt;blockquote data-id="35306" class="if-quote-wrapper" unselectable="on" data-guid="1681408093871" id="if_insertedNode_1681408092350" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="35306" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="35306" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="35306" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Francis&amp;amp;m - 4/13/2023&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-35306"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi,&lt;br/&gt;I'm creating an experiment where participants are watching one video at a time and after each video they answer a question by pressing a key.&lt;br/&gt;I'm recording EEG data during the task.&lt;br/&gt;My trial order looks like this: fixation, video, question + answer, fixation, video, etc.&lt;br/&gt;&lt;br/&gt;Since I need to show different videos in a specific order, I created a unique trial where the video is selected based on my order and also I created a conditional statement to send a specific trigger depending on the condition to which each video belongs.&lt;br/&gt;&lt;br/&gt;The script is working fine except for the triggers in the video trials, as they go crazy after a while (not from the beginning) by sending triggers I didn't define and also sending multiple triggers for a single video. Fixation triggers also create similar problems.&lt;br/&gt;&lt;br/&gt;Triggers are working fine for the question trial ("taskMF") and the key response.&lt;br/&gt;I have no clue of what is going wrong, can someone please help me? &lt;br/&gt;Sorry for my bad coding style.&lt;br/&gt;&lt;br/&gt;Thank you very much,&lt;br/&gt;Francesca&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;BLOCKS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;block InstructBlock&amp;gt;&lt;br/&gt;/ trials = [1= instruct;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Pausa1&amp;gt;&lt;br/&gt;/ trials = [1= pausa; 2 = start]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Pausa2&amp;gt;&lt;br/&gt;/ trials = [1= pausa; 2 = start]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block Endexp&amp;gt;&lt;br/&gt;/ trials = [1= endexp;]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block ExpBlock1&amp;gt;&lt;br/&gt;/ stop = [values.count_sequence == parameters.trialnumber]&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.countblocks += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.practice  = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.blockk = 1]&lt;br/&gt;/ trials = [1 = fixation]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block ExpBlock2&amp;gt;&lt;br/&gt;/ stop = [values.count_sequence == parameters.trialnumber]&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.countblocks += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.practice  = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.blockk = 2]&lt;br/&gt;/ trials = [1 = fixation]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block ExpBlock3&amp;gt;&lt;br/&gt;/ stop = [values.count_sequence == parameters.trialnumber]&lt;br/&gt;/ onblockbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.countblocks += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.practice  = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.blockk = 3]&lt;br/&gt;/ trials = [1 = fixation]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;PORT&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;port fix_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000101") //5&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port C2_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000001") //1&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port C3_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000010") // 2&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port I0_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000011") // 3&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port I3_onset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000100") // 4&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port correctmark&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("01011000") // 88&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port errormark&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("01100011") // 99&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port blockstart&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00001000", "00001001", "00001010", "00001011") // 8, 9, 10, 11&lt;br/&gt;/ select = sequence&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port blockend&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00001100") // 12&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port questFM&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00101100") // 44&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;port reset&amp;gt;&lt;br/&gt;/ port = COM6&lt;br/&gt;/ subport = data&lt;br/&gt;/ items = ("00000000")&lt;br/&gt;&amp;lt;/port&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;TEXT&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;text fixation&amp;gt;&lt;br/&gt;/ items = ("+")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ fontstyle = ("MS Shell Dlg 2", 4.38%, false, false, false, false, 5, 1)&lt;br/&gt;/ color = black&lt;br/&gt;/ txbgcolor = lightgray&lt;br/&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text blank&amp;gt;&lt;br/&gt;/ items = (" ")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;/ fontstyle = ("MS Shell Dlg 2", 4.38%, false, false, false, false, 5, 1)&lt;br/&gt;/ color = white&lt;br/&gt;/ txbgcolor = black&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;VALUES &amp;amp; LISTS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;lt;parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;/ trialnumber = 96&lt;br/&gt;/ practicetrials = 16&lt;br/&gt;&lt;br/&gt;&amp;lt;/parameters&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ condition = 0&lt;br/&gt;/ countblocks = 0&lt;br/&gt;/ practice = 0&lt;br/&gt;/ count_sequence = 0&lt;br/&gt;/ actor = 0&lt;br/&gt;/ stimulusname = 0&lt;br/&gt;/ accuracy = 0&lt;br/&gt;/ conditionlabel = 0&lt;br/&gt;/ fix_duration = 0&lt;br/&gt;/ blockk = 0&lt;br/&gt;/ code = 0&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list jittered_fix&amp;gt;&lt;br/&gt;/ items = (1500, 1600, 1700, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2500)&lt;br/&gt;/ replace = true&lt;br/&gt;/ itemprobabilities = uniform&lt;br/&gt;/ selectionrate = trial &lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuliNames_1&amp;gt;&lt;br/&gt;/ items = (1,2,3,4,5,6,7,8,9,&lt;br/&gt;10,11,12,13,14,15,16,17,18,19,&lt;br/&gt;20,21,22,23,24,25,26,27,28,29,&lt;br/&gt;30,31,32,33,34,35,36,37,38,39,&lt;br/&gt;40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,&lt;br/&gt;60,61,62,63,64,65,66,67,68,69,&lt;br/&gt;70,71,72,73,74,75,76,77,78,79,&lt;br/&gt;80,81,82,83,84,85,86,87,88,89,&lt;br/&gt;90,91,92,93,94,95,96&lt;br/&gt;)&lt;br/&gt;/ poolsize = 96&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuliNames_2&amp;gt;&lt;br/&gt;/ items = (96,95,94,93,92,91,&lt;br/&gt;90,89,88,87,86,85,84,83,82,81,&lt;br/&gt;80,79,78,77,76,75,74,73,72,71,&lt;br/&gt;70,69,68,67,66,65,64,63,62,61,&lt;br/&gt;60,59,58,57,56,55,54,53,52,51,&lt;br/&gt;50,49,48,47,46,45,44,43,42,41,&lt;br/&gt;40,39,38,37,36,35,34,33,32,31,&lt;br/&gt;30,29,28,27,26,25,24,23,22,21,&lt;br/&gt;20,19,18,17,16,15,14,13,12,11,&lt;br/&gt;10,9,8,7,6,5,4,3,2,1&lt;br/&gt;)&lt;br/&gt;/ poolsize = 96&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuliNames_3&amp;gt;&lt;br/&gt;/ items = (11,&lt;br/&gt;12,3,13,14,15,16,17,18,19,1,2,4,5,6,7,&lt;br/&gt;8,9,10,24,25,26,27,28,&lt;br/&gt;29,30,20,21,22,23,45,46,&lt;br/&gt;47,48,49,50,33,31,32,63,&lt;br/&gt;34,35,36,37,38,39,40,41,&lt;br/&gt;42,43,44,74,75,76,51,52,&lt;br/&gt;53,54,55,56,57,58,95,60,&lt;br/&gt;61,62,64,65,66,67,68,69,&lt;br/&gt;70,71,72,73,77,78,79,80,&lt;br/&gt;81,82,83,84,85,86,87,88,&lt;br/&gt;89,90,91,92,59,93,94,96&lt;br/&gt;)&lt;br/&gt;/ poolsize = 96&lt;br/&gt;/ select = sequence&lt;br/&gt;/ resetinterval = 0&lt;br/&gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;TRIALS&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;&amp;lt;trial instruct&amp;gt;&lt;br/&gt;/ stimulusframes = [1=instructions]&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial start&amp;gt;&lt;br/&gt;/ stimulusframes = [1=start , blockstart  ] //&amp;nbsp;****UNCOMMENT****&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial pausa&amp;gt;&lt;br/&gt;/ stimulusframes = [1=pausa , blockend] //  ****UNCOMMENT****&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endexp&amp;gt;&lt;br/&gt;/ stimulusframes = [1=endexp]&lt;br/&gt;/ validresponse = (" ")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;----------------------------------------------------------------------------------------------&lt;br/&gt;----------------------------------------------------------------------------------------------&lt;br/&gt;&lt;br/&gt;&amp;lt;trial taskMF&amp;gt;&lt;br/&gt;/ stimulusframes = [1= taskMF, questFM; 2 = reset]&lt;br/&gt;/ validresponse = ("x","m")&lt;br/&gt;/ branch = [return trial.end]&lt;br/&gt;/ iscorrectresponse = [trial.taskMF.responsetext == values.actor]&lt;br/&gt;/ correctmessage = true(correctmark,0)&amp;nbsp;&amp;nbsp;&amp;nbsp;// ****UNCOMMENT****&lt;br/&gt;/ errormessage = true(errormark,0) // ****UNCOMMENT****&lt;br/&gt;/ timeout = 2000&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial fixation&amp;gt;&lt;br/&gt;/ ontrialbegin = [values.actor = 0]&lt;br/&gt;/ ontrialbegin = [ values.fix_duration = list.jittered_fix.nextvalue]&lt;br/&gt;/ ontrialbegin = [ if (values.blockk==1) {values.code = list.stimuliNames_1.nextvalue}&lt;br/&gt;else if ( values.blockk ==2) {values.code = list.stimuliNames_2.nextvalue}&lt;br/&gt;else if ( values.blockk ==3) {values.code = list.stimuliNames_3.nextvalue}]&lt;br/&gt;/ stimulusframes = [1 = fixation , fix_onset; 2 = reset] //&amp;nbsp;****UNCOMMENT****&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ trialduration = values.fix_duration&lt;br/&gt;/ errormessage = false&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ branch = [ if (values.blockk == 1) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.trial_video1}&lt;br/&gt;else if (values.blockk == 2) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.trial_video2}&lt;br/&gt;else if (values.blockk == 3) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.trial_video3}]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( list.stimuliNames_1.currentvalue == 6&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 12&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 13&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 22&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 26&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 31&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 33&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 34&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 39&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 44&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 47&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 49&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 51&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 53&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 61&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 64&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 66&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 67&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 72&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 77&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 82&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 83&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 87&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 92) {&amp;nbsp;values.condition = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;else if ( list.stimuliNames_1.currentvalue== 1&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 3&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 8&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 9&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 16&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 18&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 21&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 23&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 24&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 27&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 30&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 35&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 37&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 40&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 43&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 55&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 57&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 59&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 60&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 69&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 71&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 75&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 78&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 85 ) {&amp;nbsp;values.condition = 2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 4&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 5&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 7&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 10&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 11&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 14&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 15&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 17&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 25&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 28&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 36&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 42&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 48&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 63&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 65&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 74&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 76&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 81&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 84&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 86&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 89&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 91&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 94&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 95) {&amp;nbsp;values.condition = 3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;else if ( list.stimuliNames_1.currentvalue== 2&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 19&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 20&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 29&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 32&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 38&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 41&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 45&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 46&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 50&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 52&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 54&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 56&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 58&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 62&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 68&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 70&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 73&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 79&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 80&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 88&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 90&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 93&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 96) {&amp;nbsp;values.condition = 4;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&amp;lt;trial trial_video1&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( list.stimuliNames_1.currentvalue== 6&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 12&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 13&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 22&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 26&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 31&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 33&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 34&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 39&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 44&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 47&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 49&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 51&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 53&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 61&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 64&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 66&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 67&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 72&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 77&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 82&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 83&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 87&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 92) {trial.trial_video1.insertstimulusframe(port.C2_onset, 1)}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 1&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 3&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 8&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 9&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 16&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 18&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 21&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 23&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 24&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 27&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 30&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 35&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 37&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 40&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 43&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 55&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 57&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 59&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 60&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 69&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 71&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 75&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 78&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 85 ) {trial.trial_video1.insertstimulusframe(port.C3_onset, 1)}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 4&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 5&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 7&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 10&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 11&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 14&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 15&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 17&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 25&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 28&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 36&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 42&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 48&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 63&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 65&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 74&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 76&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 81&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 84&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 86&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 89&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 91&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 94&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 95) {trial.trial_video1.insertstimulusframe(port.I0_onset, 1)}&lt;br/&gt;&lt;br/&gt; else if ( list.stimuliNames_1.currentvalue== 2&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 19&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 20&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 29&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 32&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 38&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 41&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 45&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 46&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 50&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 52&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 54&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 56&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 58&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 62&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 68&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 70&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 73&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 79&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 80&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 88&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 90&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 93&lt;br/&gt;|| list.stimuliNames_1.currentvalue== 96) {trial.trial_video1.insertstimulusframe(port.I3_onset, 1)};&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;]&lt;br/&gt;&lt;br/&gt;/ ontrialbegin = [trial.trial_video1.insertstimulusframe(port.reset, 2)&amp;nbsp;&amp;nbsp;]&lt;br/&gt;&lt;br/&gt;/ stimulusframes = [ 1 = video.videolist_1 ]&lt;br/&gt;/ trialduration = 2500&lt;br/&gt;/ recorddata = true&lt;br/&gt;/ branch = [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return trial.taskMF ]&lt;br/&gt;&lt;br/&gt;/ontrialend = [&lt;br/&gt;values.code = list.stimuliNames_1.currentvalue;&lt;br/&gt; if ( &lt;br/&gt;video.videolist_1.currentitem == "f2AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f2PhoI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "f1PhoI3Watc.mp4") &lt;br/&gt; {values.actor = "x"} else if (&lt;br/&gt;video.videolist_1.currentitem == "m1AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m1PhoI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2AppI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2BooI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CIoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CloC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CloC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CloI3Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2CupI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyC2Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyC3Offe.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyI0Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2KeyI3Move.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoC2Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoC3Show.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoI0Watc.mp4"||&lt;br/&gt;video.videolist_1.currentitem == "m2PhoI3Watc.mp4")&lt;br/&gt; {values.actor = "m"}&lt;br/&gt; ]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/strong&gt;&amp;lt;trial end&amp;gt;&lt;br/&gt;/ ontrialbegin = [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.count_sequence += 1;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  values.accuracy = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.actor = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.condition = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.conditionlabel = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;values.fix_duration = 0;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;/ stimulusframes = [1 = reset]&lt;br/&gt;/ branch = [return trial.fixation;]&lt;br/&gt;/ errormessage = false&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&amp;nbsp;STIMULI &lt;br/&gt;**************************************************************************************************************&lt;br/&gt;**************************************************************************************************************&lt;br/&gt;&lt;br/&gt;--------------&lt;br/&gt;items&lt;br/&gt;--------------&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;video videolist_1&amp;gt;&lt;br/&gt;/ size = (100%, 100%)&lt;br/&gt;/ select = sequence&lt;br/&gt;/items=  (&lt;br/&gt;"m2CupC3Offe.mp4",&lt;br/&gt;"f1CupI3Move.mp4",&lt;br/&gt;"m1KeyC3Offe.mp4",&lt;br/&gt;"f2KeyI0Move.mp4",&lt;br/&gt;"f1PhoI0Watc.mp4",&lt;br/&gt;"m2KeyC2Offe.mp4",&lt;br/&gt;"f1AppI0Move.mp4",&lt;br/&gt;"m2PhoC3Show.mp4",&lt;br/&gt;"f2CupC3Offe.mp4",&lt;br/&gt;"f1KeyI0Move.mp4",&lt;br/&gt;"m2BooI0Watc.mp4",&lt;br/&gt;"f1AppC2Offe.mp4",&lt;br/&gt;"m2PhoC2Show.mp4",&lt;br/&gt;"f2BooI0Watc.mp4",&lt;br/&gt;"f1CupI0Move.mp4",&lt;br/&gt;"m1AppC3Offe.mp4",&lt;br/&gt;"f2CloI0Watc.mp4",&lt;br/&gt;"m1BooC3Show.mp4",&lt;br/&gt;"f2AppI3Move.mp4",&lt;br/&gt;"m2CloI3Watc.mp4",&lt;br/&gt;"f1KeyC3Offe.mp4",&lt;br/&gt;"m1AppC2Offe.mp4",&lt;br/&gt;"f1AppC3Offe.mp4",&lt;br/&gt;"m1CloC3Show.mp4",&lt;br/&gt;"m2AppI0Move.mp4",&lt;br/&gt;"f2KeyC2Offe.mp4",&lt;br/&gt;"m1PhoC3Show.mp4",&lt;br/&gt;"f1CloI0Watc.mp4",&lt;br/&gt;"m2BooI3Watc.mp4",&lt;br/&gt;"f2PhoC3Show.mp4",&lt;br/&gt;"m2CupC2Offe.mp4",&lt;br/&gt;"m1AppI3Move.mp4",&lt;br/&gt;"f2AppC2Offe.mp4",&lt;br/&gt;"m1BooC2Show.mp4",&lt;br/&gt;"f2CloC3Show.mp4",&lt;br/&gt;"m1AppI0Move.mp4",&lt;br/&gt;"m2BooC3Show.mp4",&lt;br/&gt;"f2PhoI3Watc.mp4",&lt;br/&gt;"f1KeyC2Offe.mp4",&lt;br/&gt;"m2AppC3Offe.mp4",&lt;br/&gt;"f2CloI3Watc.mp4",&lt;br/&gt;"m1BooI0Watc.mp4",&lt;br/&gt;"f1PhoC3Show.mp4",&lt;br/&gt;"m2CloC2Show.mp4",&lt;br/&gt;"f2KeyI3Move.mp4",&lt;br/&gt;"m2AppI3Move.mp4",&lt;br/&gt;"m1CupC2Offe.mp4",&lt;br/&gt;"f2PhoI0Watc.mp4",&lt;br/&gt;"f1CloC2Show.mp4",&lt;br/&gt;"m2KeyI3Move.mp4",&lt;br/&gt;"f2BooC2Show.mp4",&lt;br/&gt;"m1CupI3Move.mp4",&lt;br/&gt;"m2AppC2Offe.mp4",&lt;br/&gt;"f1KeyI3Move.mp4",&lt;br/&gt;"m2CloC3Show.mp4",&lt;br/&gt;"f2BooI3Watc.mp4",&lt;br/&gt;"m2KeyC3Offe.mp4",&lt;br/&gt;"f1PhoI3Watc.mp4",&lt;br/&gt;"m1CupC3Offe.mp4",&lt;br/&gt;"f1BooC3Show.mp4",&lt;br/&gt;"f2CloC2Show.mp4",&lt;br/&gt;"m1BooI3Watc.mp4",&lt;br/&gt;"f2AppI0Move.mp4",&lt;br/&gt;"f1PhoC2Show.mp4",&lt;br/&gt;"m2CIoI0Watc.mp4",&lt;br/&gt;"f2PhoC2Show.mp4",&lt;br/&gt;"f1CupC2Offe.mp4",&lt;br/&gt;"m1KeyI3Move.mp4",&lt;br/&gt;"f2AppC3Offe.mp4",&lt;br/&gt;"m2PhoI3Watc.mp4",&lt;br/&gt;"f2BooC3Show.mp4",&lt;br/&gt;"m1KeyC2Offe.mp4",&lt;br/&gt;"f1BooI3Watc.mp4",&lt;br/&gt;"m1CupI0Move.mp4",&lt;br/&gt;"f1CloC3Show.mp4",&lt;br/&gt;"m2CupI0Move.mp4",&lt;br/&gt;"m1PhoC2Show.mp4",&lt;br/&gt;"f1CupC3Offe.mp4",&lt;br/&gt;"m1CloI3Watc.mp4",&lt;br/&gt;"f1AppI3Move.mp4",&lt;br/&gt;"m2CIoI0Watc.mp4",&lt;br/&gt;"f2CupC2Offe.mp4",&lt;br/&gt;"m1CloC2Show.mp4",&lt;br/&gt;"m2CupI0Move.mp4",&lt;br/&gt;"f2KeyC3Offe.mp4",&lt;br/&gt;"m1CloI0Watc.mp4",&lt;br/&gt;"f1BooC2Show.mp4",&lt;br/&gt;"f2CupI3Move.mp4",&lt;br/&gt;"m1KeyI0Move.mp4",&lt;br/&gt;"m2CupI3Move.mp4",&lt;br/&gt;"f1BooI0Watc.mp4",&lt;br/&gt;"m2BooC2Show.mp4",&lt;br/&gt;"m1PhoI3Watc.mp4",&lt;br/&gt;"f2CupI0Move.mp4",&lt;br/&gt;"m2PhoI0Watc.mp4",&lt;br/&gt;"f1CloI3Watc.mp4"&lt;br/&gt;)&lt;br/&gt;&amp;lt;/video&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="35306"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;When you insert stimuli into a trial's stimulus presentation sequence those insertions &lt;strong&gt;persist &lt;/strong&gt;across instances of this trial, &lt;strong&gt;unless &lt;/strong&gt;you explicitly reset that trial's stimulus presentation sequence to its original state by calling the resetstimulusframes() function.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/current/html/language/functions/resetstimulusframes.htm"&gt;https://www.millisecond.com/support/docs/current/html/language/functions/resetstimulusframes.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;That is, if you insert stimulus A in the trial's 1st instance, and stimulus B in the trial's second instance, then the 2nd instance will display both stimulus A and B.&lt;br/&gt;&lt;br/&gt;That is what is happening here with your triggers. Your trial isn't just presenting a single specific trigger, it's presenting multiple overlapping ones.&lt;br/&gt;&lt;br/&gt;Observe what happens in the below examples with visual stimuli. The same is true for any other type of stimulus, including &amp;lt;port&amp;gt;.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-3 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.mytrial.insertstimulusframe(list.stimuli.nextvalue, 1);&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=clearscreen]&lt;br/&gt;&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text a&amp;gt;&lt;br/&gt;/ items = ("A")&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b&amp;gt;&lt;br/&gt;/ items = ("B")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text c&amp;gt;&lt;br/&gt;/ items = ("C")&lt;br/&gt;/ position = (50%, 55%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuli&amp;gt;&lt;br/&gt;/ items = (text.a, text.b, text.c)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;vs.&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-3 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.mytrial.resetstimulusframes();&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trial.mytrial.insertstimulusframe(list.stimuli.nextvalue, 1);&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=clearscreen]&lt;br/&gt;&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text a&amp;gt;&lt;br/&gt;/ items = ("A")&lt;br/&gt;/ position = (50%, 45%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text b&amp;gt;&lt;br/&gt;/ items = ("B")&lt;br/&gt;/ position = (50%, 50%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text c&amp;gt;&lt;br/&gt;/ items = ("C")&lt;br/&gt;/ position = (50%, 55%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list stimuli&amp;gt;&lt;br/&gt;/ items = (text.a, text.b, text.c)&lt;br/&gt;/ selectionmode = sequence&lt;br/&gt;&amp;lt;/list&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;</description><pubDate>Thu, 13 Apr 2023 17:59:23 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>