[WARNING] WARNING: DO NOT EDIT THIS FILE DIRECTLY! Use only E-Studio to edit this file. Editing of this file from any other means is not supported and may corrupt the experiment design specification. Technical support will not be able to address any issue in regards to this file format. [Experiment] VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=96 _VersionPersist=6 Root="SessionProc" Author="David Nicholson (PST)" Abstract="In the User script, a Summation object is created to log the \r\noverall accuracy of the trials. A dynamic array is declared to \r\nhold the number of correct response times.\r\n\r\nAn InLine object called Init sets up the Summation object. \r\nThis experiment uses the entire \"0\" based array. For that \r\nreason, the size of the array is defined as TrialList.Size minus 1.\r\nThe AssignVals InLine object checks the response accuracy. \r\nIf the trial is correct, the response time is logged as an array \r\nvalue. If it is incorrect, the size of the dynamic array is \r\ndecreased. This is done to prevent logging a value of \"0\" for the \r\nmedian. When the size of the array object is decreased, the \r\n\"Preserve\" keyword is used to prevent the data from being \r\nerased in the array.\r\n\r\nIn the Sort InLine object, the \"ArraySort\" statement is used to \r\nSort the array in ascending order. The \"Mod\" function is used to \r\ncheck the number of trials that were logged in the array. If \r\nthere is an odd number of items in the array, the array is divided \r\nby 2 to find the median. If there is are even number of items in \r\nthe array, integer division is used. Then the two arrays are \r\nadded together and divided by 2 to get the average." Notes="" Creation=1395342864 [Device0] _VersionPersist=1 OpenDevice=1 Width=640 Height=480 Bpp=16 Name="Display" Class="Display" [Device1] _VersionPersist=1 OpenDevice=1 CollectionMode=1 EmulateDeviceName="" CapsLock=0 NumLock=1 Name="Keyboard" Class="Keyboard" [Device2] _VersionPersist=1 OpenDevice=1 CollectionMode=1 EmulateDeviceName="" OpenMode=0 ShowCursor=0 Name="Mouse" Class="Mouse" [Device3] _VersionPersist=1 OpenDevice=0 Channels=2 Samples=22050 Bps=16 Name="Sound" Class="Sound" [DataFile] WarnBeforeOverwrite=1 WarnIfConvertFailed=1 RemoveERecoveryFile=0 ReceiveFeedbackDuringDataFileConversion=1 LogLevel(2).Name="Block" LogLevel(3).Name="Trial" LogLevel(4).Name="SubTrial" LogLevel(5).Name="LogLevel5" LogLevel(6).Name="LogLevel6" LogLevel(7).Name="LogLevel7" LogLevel(8).Name="LogLevel8" LogLevel(9).Name="LogLevel9" LogLevel(10).Name="LogLevel10" [StartupInfo] DisplaySummary=1 UseDefaults=0 [StartupInfo1] Name="Subject" Prompt="Please enter the Subject Number (1-32767, 0=No Data Logging):" DataType=0 Enabled=1 PromptEnabled=1 Default="1" Min=0 Max=32767 PrivateFlags=268435477 PrivateInfo=1 [StartupInfo2] Name="Session" Prompt="Please enter the Session Number (1-32767):" DataType=0 Enabled=1 PromptEnabled=1 Default="1" Min=1 Max=32767 PrivateFlags=268435477 PrivateInfo=1 [StartupInfo3] Name="Group" Prompt="Please enter Subject's Group (0-32767):" DataType=0 Enabled=0 PromptEnabled=0 Default="1" Min=0 Max=32767 [StartupInfo4] Name="Name" Prompt="Please enter Subject's Name:" DataType=1 Enabled=0 PromptEnabled=0 Default="" MaxLength=255 [StartupInfo5] Name="Age" Prompt="Please enter Subject's Age (0-150):" DataType=0 Enabled=0 PromptEnabled=0 Default="0" Min=0 Max=150 [StartupInfo6] Name="Sex" Prompt="Please enter Subject's Sex:" DataType=2 Enabled=0 PromptEnabled=0 Default="male" Choice(1).Value="male" Choice(2).Value="female" [StartupInfo7] Name="Handedness" Prompt="Enter Subject's Handedness:" DataType=2 Enabled=0 PromptEnabled=0 Default="left" Choice(1).Value="left" Choice(2).Value="right" [StartupInfo8] Name="ResearcherID" Prompt="Please enter Researcher's ID:" DataType=0 Enabled=0 PromptEnabled=0 Default="1" Min=0 Max=32767 [Object0] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _ItemList="Instructions;BlockList;Goodbye" _VersionPersist=1 FlowLines(0).Count=3 FlowLines(0).FlowItem(0).Name="Instructions" FlowLines(0).FlowItem(1).Name="BlockList" FlowLines(0).FlowItem(2).Name="Goodbye" LogData=1 Name="SessionProc" TypeName="Procedure" Tag="" Notes="" [Object1] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Logging("OnsetDelay").Log=0 Logging("OnsetTime").Log=0 Logging("DurationError").Log=0 Logging("PreRelease").Log=0 Logging("Duration").Log=0 Logging("StartTime").Log=0 Logging("OffsetTime").Log=0 Logging("FinishTime").Log=0 Logging("TimingMode").Log=0 Logging("CustomOnsetTime").Log=0 Logging("CustomOffsetTime").Log=0 Logging("ActionDelay").Log=0 Logging("ActionTime").Log=0 Logging("TargetOffsetTime").Log=0 Logging("TargetOnsetTime").Log=0 Logging("OffsetDelay").Log=0 Logging("RTTime").Log=0 Logging("ACC").Log=0 Logging("RT").Log=0 Logging("RESP").Log=0 Logging("CRESP").Log=0 Logging("Tag").Log=0 Input(0)=!Data0 _VersionPersist=1 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Text="You will be given the opportunity to respond to five trials. At the end, the median reaction time and overall accuracy will be shown. \n\nPress any key to begin." ForeColor="black" BackColor="white" BackStyle="opaque" BorderColor="black" BorderWidth="0" X="center" Y="center" Width="100%" Height="100%" XAlign="center" YAlign="center" AlignHorizontal="center" AlignVertical="center" FontName="Courier New" FontSize="18" FontBold="Yes" FontItalic="No" FontUnderline="No" FontStrikeout="No" WordWrap=1 ClearAfter="No" Duration="-1" JumpLabel="" TimingMode=0 PreRelease="0" OnsetSync=1 OffsetSync=0 Name="Instructions" TypeName="TextDisplay" Tag="" Notes="" [Data0] DeviceName="Keyboard" DeviceClass="Keyboard" AllowableInput="{ANY}" CorrectInput="" TimeLimit="" MaxCount="1" InputAction=1 SyncOwnerDuration=1 Enabled=1 FlushInputBuffer="Yes" TerminationInput="" UserTag="" ResponseMode="All" ProcessBackspace="Yes" [Object2] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _ItemList="BlockProc" _VersionPersist=1 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Order=0 OrderBy=0 ResetEveryRun=0 HideLevelsWithZeroWeight=0 CycleDef=0 CycleValueSamples=0 CycleValueCondition="" ExitDef=0 ExitValueCycles=1 ExitValueSamples=1 ExitValueSeconds=0 ExitValueCondition="" LoadMethod=0 Filename="" UserAttributes=0 Attributes("Weight").DefaultValue="1" Attributes("Weight").Visible=1 Attributes("Weight").Width=75 Attributes("Weight").OrderIndex=0 Attributes("Nested").DefaultValue="" Attributes("Nested").Visible=1 Attributes("Nested").Width=75 Attributes("Nested").OrderIndex=1 Attributes("Procedure").DefaultValue="BlockProc" Attributes("Procedure").Visible=1 Attributes("Procedure").Width=75 Attributes("Procedure").OrderIndex=2 Levels=1 Levels(1).ValueString="1\t\tBlockProc\t" Name="BlockList" TypeName="List" Tag="" Notes="" [Object3] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _ItemList="Init;TrialList;Sort;ShowMedian" _VersionPersist=1 FlowLines(0).Count=4 FlowLines(0).FlowItem(0).Name="Init" FlowLines(0).FlowItem(1).Name="TrialList" FlowLines(0).FlowItem(2).Name="Sort" FlowLines(0).FlowItem(3).Name="ShowMedian" LogData=1 Name="BlockProc" TypeName="Procedure" Tag="" Notes="" [Object4] _Version=131072 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _VersionPersist=1 Code="'This initiates the Summation object, OverallAcc, so that it\n'may be referenced within the experiment.\nSet OverallAcc = New Summation\n\n'Initialize the variables \niCounter = 0\n\n'Set how many total trials will be ran to be tracked in our array\n'Note that arrays are 0 based unless you specify otherwise.\nnCount = TrialList.Size - 1\n\n'Dynamic arrays can be redimensioned any number of times.\nReDim RTs(nCount) As Long\n" Name="Init" TypeName="InLine" Tag="" Notes="" [Object5] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _ItemList="TrialProc" _VersionPersist=1 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Order=0 OrderBy=0 ResetEveryRun=0 HideLevelsWithZeroWeight=0 CycleDef=0 CycleValueSamples=0 CycleValueCondition="" ExitDef=0 ExitValueCycles=1 ExitValueSamples=1 ExitValueSeconds=0 ExitValueCondition="" LoadMethod=0 Filename="" UserAttributes=0 Attributes("Weight").DefaultValue="1" Attributes("Weight").Visible=1 Attributes("Weight").Width=75 Attributes("Weight").OrderIndex=0 Attributes("Nested").DefaultValue="" Attributes("Nested").Visible=1 Attributes("Nested").Width=75 Attributes("Nested").OrderIndex=1 Attributes("Procedure").DefaultValue="TrialProc" Attributes("Procedure").Visible=1 Attributes("Procedure").Width=75 Attributes("Procedure").OrderIndex=2 Levels=5 Levels(1).ValueString="1\t\tTrialProc\t" Levels(2).ValueString="1\t\tTrialProc\t" Levels(3).ValueString="1\t\tTrialProc\t" Levels(4).ValueString="1\t\tTrialProc\t" Levels(5).ValueString="1\t\tTrialProc\t" Name="TrialList" TypeName="List" Tag="" Notes="" [Object6] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _ItemList="CollectRTs;FeedbackDisplay1;AssignVals" _VersionPersist=1 FlowLines(0).Count=3 FlowLines(0).FlowItem(0).Name="CollectRTs" FlowLines(0).FlowItem(1).Name="FeedbackDisplay1" FlowLines(0).FlowItem(2).Name="AssignVals" LogData=1 Name="TrialProc" TypeName="Procedure" Tag="" Notes="" [Object7] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Logging("OnsetDelay").Log=0 Logging("OnsetTime").Log=0 Logging("DurationError").Log=0 Logging("PreRelease").Log=0 Logging("Duration").Log=0 Logging("StartTime").Log=0 Logging("OffsetTime").Log=0 Logging("FinishTime").Log=0 Logging("TimingMode").Log=0 Logging("CustomOnsetTime").Log=0 Logging("CustomOffsetTime").Log=0 Logging("ActionDelay").Log=0 Logging("ActionTime").Log=0 Logging("TargetOffsetTime").Log=0 Logging("TargetOnsetTime").Log=0 Logging("OffsetDelay").Log=0 Logging("RTTime").Log=-1 Logging("ACC").Log=-1 Logging("RT").Log=-1 Logging("RESP").Log=-1 Logging("CRESP").Log=-1 Logging("Tag").Log=0 Input(0)=!Data1 _VersionPersist=1 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Text="Press Spacebar to respond.\n\nSpace is correct.\n\nAny other key is incorrect." ForeColor="black" BackColor="white" BackStyle="opaque" BorderColor="black" BorderWidth="0" X="center" Y="center" Width="100%" Height="100%" XAlign="center" YAlign="center" AlignHorizontal="center" AlignVertical="center" FontName="Courier New" FontSize="18" FontBold="Yes" FontItalic="No" FontUnderline="No" FontStrikeout="No" WordWrap=1 ClearAfter="No" Duration="-1" JumpLabel="" TimingMode=0 PreRelease="0" OnsetSync=1 OffsetSync=0 Name="CollectRTs" TypeName="TextDisplay" Tag="" Notes="" [Data1] DeviceName="Keyboard" DeviceClass="Keyboard" AllowableInput="{ANY}" CorrectInput="{SPACE}" TimeLimit="" MaxCount="1" InputAction=1 SyncOwnerDuration=1 Enabled=1 FlushInputBuffer="Yes" TerminationInput="" UserTag="" ResponseMode="All" ProcessBackspace="Yes" [Object8] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=70 Logging("OnsetDelay").Log=0 Logging("OnsetTime").Log=0 Logging("DurationError").Log=0 Logging("PreRelease").Log=0 Logging("Duration").Log=0 Logging("StartTime").Log=0 Logging("OffsetTime").Log=0 Logging("FinishTime").Log=0 Logging("TimingMode").Log=0 Logging("CustomOnsetTime").Log=0 Logging("CustomOffsetTime").Log=0 Logging("ActionDelay").Log=0 Logging("ActionTime").Log=0 Logging("TargetOffsetTime").Log=0 Logging("TargetOnsetTime").Log=0 Logging("OffsetDelay").Log=0 Logging("RTTime").Log=0 Logging("ACC").Log=0 Logging("RT").Log=0 Logging("RESP").Log=0 Logging("CRESP").Log=0 Logging("Tag").Log=0 _VersionPersist=1 States("Correct").X="center" States("Correct").Y="center" States("Correct").Width="100%" States("Correct").Height="100%" States("Correct").XAlign="center" States("Correct").YAlign="center" States("Correct").BackColor="white" States("Correct").BackStyle="opaque" States("Correct").BorderColor="black" States("Correct").BorderWidth="0" States("Correct").ClearAfter="No" States("Correct").Enabled="Yes" States("Correct").ChildCount=3 States("Correct").Objects(1).Type="Text" States("Correct").Objects(1).Text="Correct!" States("Correct").Objects(1).Width="75%" States("Correct").Objects(1).Height="10%" States("Correct").Objects(1).X="center" States("Correct").Objects(1).Y="20%" States("Correct").Objects(1).AlignHorizontal="left" States("Correct").Objects(1).AlignVertical="center" States("Correct").Objects(1).FontName="Courier New" States("Correct").Objects(1).FontSize="18" States("Correct").Objects(1).FontBold="Yes" States("Correct").Objects(1).FontUnderline="No" States("Correct").Objects(1).FontStrikeout="No" States("Correct").Objects(1).FontItalic="No" States("Correct").Objects(1).ForeColor="blue" States("Correct").Objects(1).BackColor="white" States("Correct").Objects(1).BackStyle="transparent" States("Correct").Objects(1).BorderWidth="0" States("Correct").Objects(1).BorderColor="black" States("Correct").Objects(1).XAlign="center" States("Correct").Objects(1).YAlign="center" States("Correct").Objects(1).WordWrap=1 States("Correct").Objects(1).Name="Text1" States("Correct").Objects(2).Type="Text" States("Correct").Objects(2).Text="@RT Seconds Response Time" States("Correct").Objects(2).Width="75%" States("Correct").Objects(2).Height="10%" States("Correct").Objects(2).X="center" States("Correct").Objects(2).Y="35%" States("Correct").Objects(2).AlignHorizontal="left" States("Correct").Objects(2).AlignVertical="center" States("Correct").Objects(2).FontName="Courier New" States("Correct").Objects(2).FontSize="18" States("Correct").Objects(2).FontBold="Yes" States("Correct").Objects(2).FontUnderline="No" States("Correct").Objects(2).FontStrikeout="No" States("Correct").Objects(2).FontItalic="No" States("Correct").Objects(2).ForeColor="blue" States("Correct").Objects(2).BackColor="white" States("Correct").Objects(2).BackStyle="transparent" States("Correct").Objects(2).BorderWidth="0" States("Correct").Objects(2).BorderColor="black" States("Correct").Objects(2).XAlign="center" States("Correct").Objects(2).YAlign="center" States("Correct").Objects(2).WordWrap=1 States("Correct").Objects(2).Name="Text2" States("Correct").Objects(3).Type="Text" States("Correct").Objects(3).Text="@ACC.MEAN Average Percent Correct" States("Correct").Objects(3).Width="75%" States("Correct").Objects(3).Height="10%" States("Correct").Objects(3).X="center" States("Correct").Objects(3).Y="45%" States("Correct").Objects(3).AlignHorizontal="left" States("Correct").Objects(3).AlignVertical="center" States("Correct").Objects(3).FontName="Courier New" States("Correct").Objects(3).FontSize="18" States("Correct").Objects(3).FontBold="Yes" States("Correct").Objects(3).FontUnderline="No" States("Correct").Objects(3).FontStrikeout="No" States("Correct").Objects(3).FontItalic="No" States("Correct").Objects(3).ForeColor="blue" States("Correct").Objects(3).BackColor="white" States("Correct").Objects(3).BackStyle="transparent" States("Correct").Objects(3).BorderWidth="0" States("Correct").Objects(3).BorderColor="black" States("Correct").Objects(3).XAlign="center" States("Correct").Objects(3).YAlign="center" States("Correct").Objects(3).WordWrap=1 States("Correct").Objects(3).Name="Text3" States("Incorrect").X="center" States("Incorrect").Y="center" States("Incorrect").Width="100%" States("Incorrect").Height="100%" States("Incorrect").XAlign="center" States("Incorrect").YAlign="center" States("Incorrect").BackColor="white" States("Incorrect").BackStyle="opaque" States("Incorrect").BorderColor="black" States("Incorrect").BorderWidth="0" States("Incorrect").ClearAfter="No" States("Incorrect").Enabled="Yes" States("Incorrect").ChildCount=3 States("Incorrect").Objects(1).Type="Text" States("Incorrect").Objects(1).Text="Incorrect" States("Incorrect").Objects(1).Width="75%" States("Incorrect").Objects(1).Height="10%" States("Incorrect").Objects(1).X="center" States("Incorrect").Objects(1).Y="20%" States("Incorrect").Objects(1).AlignHorizontal="left" States("Incorrect").Objects(1).AlignVertical="center" States("Incorrect").Objects(1).FontName="Courier New" States("Incorrect").Objects(1).FontSize="18" States("Incorrect").Objects(1).FontBold="Yes" States("Incorrect").Objects(1).FontUnderline="No" States("Incorrect").Objects(1).FontStrikeout="No" States("Incorrect").Objects(1).FontItalic="No" States("Incorrect").Objects(1).ForeColor="red" States("Incorrect").Objects(1).BackColor="white" States("Incorrect").Objects(1).BackStyle="transparent" States("Incorrect").Objects(1).BorderWidth="0" States("Incorrect").Objects(1).BorderColor="black" States("Incorrect").Objects(1).XAlign="center" States("Incorrect").Objects(1).YAlign="center" States("Incorrect").Objects(1).WordWrap=1 States("Incorrect").Objects(1).Name="Text1" States("Incorrect").Objects(2).Type="Text" States("Incorrect").Objects(2).Text="@RT Seconds Response Time" States("Incorrect").Objects(2).Width="75%" States("Incorrect").Objects(2).Height="10%" States("Incorrect").Objects(2).X="center" States("Incorrect").Objects(2).Y="35%" States("Incorrect").Objects(2).AlignHorizontal="left" States("Incorrect").Objects(2).AlignVertical="center" States("Incorrect").Objects(2).FontName="Courier New" States("Incorrect").Objects(2).FontSize="18" States("Incorrect").Objects(2).FontBold="Yes" States("Incorrect").Objects(2).FontUnderline="No" States("Incorrect").Objects(2).FontStrikeout="No" States("Incorrect").Objects(2).FontItalic="No" States("Incorrect").Objects(2).ForeColor="red" States("Incorrect").Objects(2).BackColor="white" States("Incorrect").Objects(2).BackStyle="transparent" States("Incorrect").Objects(2).BorderWidth="0" States("Incorrect").Objects(2).BorderColor="black" States("Incorrect").Objects(2).XAlign="center" States("Incorrect").Objects(2).YAlign="center" States("Incorrect").Objects(2).WordWrap=1 States("Incorrect").Objects(2).Name="Text2" States("Incorrect").Objects(3).Type="Text" States("Incorrect").Objects(3).Text="@ACC.MEAN Average Percent Correct" States("Incorrect").Objects(3).Width="75%" States("Incorrect").Objects(3).Height="10%" States("Incorrect").Objects(3).X="center" States("Incorrect").Objects(3).Y="45%" States("Incorrect").Objects(3).AlignHorizontal="left" States("Incorrect").Objects(3).AlignVertical="center" States("Incorrect").Objects(3).FontName="Courier New" States("Incorrect").Objects(3).FontSize="18" States("Incorrect").Objects(3).FontBold="Yes" States("Incorrect").Objects(3).FontUnderline="No" States("Incorrect").Objects(3).FontStrikeout="No" States("Incorrect").Objects(3).FontItalic="No" States("Incorrect").Objects(3).ForeColor="red" States("Incorrect").Objects(3).BackColor="white" States("Incorrect").Objects(3).BackStyle="transparent" States("Incorrect").Objects(3).BorderWidth="0" States("Incorrect").Objects(3).BorderColor="black" States("Incorrect").Objects(3).XAlign="center" States("Incorrect").Objects(3).YAlign="center" States("Incorrect").Objects(3).WordWrap=1 States("Incorrect").Objects(3).Name="Text3" States("NoResponse").X="center" States("NoResponse").Y="center" States("NoResponse").Width="100%" States("NoResponse").Height="100%" States("NoResponse").XAlign="center" States("NoResponse").YAlign="center" States("NoResponse").BackColor="white" States("NoResponse").BackStyle="opaque" States("NoResponse").BorderColor="black" States("NoResponse").BorderWidth="0" States("NoResponse").ClearAfter="No" States("NoResponse").Enabled="Yes" States("NoResponse").ChildCount=1 States("NoResponse").Objects(1).Type="Text" States("NoResponse").Objects(1).Text="No response detected." States("NoResponse").Objects(1).Width="75%" States("NoResponse").Objects(1).Height="10%" States("NoResponse").Objects(1).X="center" States("NoResponse").Objects(1).Y="20%" States("NoResponse").Objects(1).AlignHorizontal="left" States("NoResponse").Objects(1).AlignVertical="center" States("NoResponse").Objects(1).FontName="Courier New" States("NoResponse").Objects(1).FontSize="18" States("NoResponse").Objects(1).FontBold="Yes" States("NoResponse").Objects(1).FontUnderline="No" States("NoResponse").Objects(1).FontStrikeout="No" States("NoResponse").Objects(1).FontItalic="No" States("NoResponse").Objects(1).ForeColor="red" States("NoResponse").Objects(1).BackColor="white" States("NoResponse").Objects(1).BackStyle="transparent" States("NoResponse").Objects(1).BorderWidth="0" States("NoResponse").Objects(1).BorderColor="black" States("NoResponse").Objects(1).XAlign="center" States("NoResponse").Objects(1).YAlign="center" States("NoResponse").Objects(1).WordWrap=1 States("NoResponse").Objects(1).Name="Text1" States("Pending").X="center" States("Pending").Y="center" States("Pending").Width="100%" States("Pending").Height="100%" States("Pending").XAlign="center" States("Pending").YAlign="center" States("Pending").BackColor="white" States("Pending").BackStyle="opaque" States("Pending").BorderColor="black" States("Pending").BorderWidth="0" States("Pending").ClearAfter="No" States("Pending").Enabled="Yes" States("Pending").ChildCount=0 UseScriptActivation=0 CollectACCStats=1 CollectNoRespACCStats=1 CollectCorrectRTStats=1 CollectIncorrectRTStats=1 ACCDivisor="1.0" ACCFormat="Percent" RTDivisor="1000.0" RTFormat="###0.000" CorrectRTDivisor="1000.0" CorrectRTFormat="###0.000" IncorrectRTDivisor="1000.0" IncorrectRTFormat="###0.000" Duration="1500" JumpLabel="" TimingMode=0 PreRelease="0" OnsetSync=1 OffsetSync=0 InputObjectName="CollectRTs" Name="FeedbackDisplay1" TypeName="FeedbackDisplay" Tag="" Notes="" [Object9] _Version=131072 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _VersionPersist=1 Code="'Only collect RT if response if correct\nIf CollectRTs.ACC = 1 Then\n\t\n\tRTs(iCounter) = CollectRTs.RT\n\t\n\t'increment the array\n\tiCounter = iCounter + 1\n\t\nElse\n\n\t'If subject is incorrect reduce the total size of the array as incorrect responses are not wanted.\n\tnCount = nCount - 1\n\t\n\t'Redimension the array due to an incorrect answer\n\t'Preserve current data in the array.\n\tReDim Preserve RTs(nCount) As Long\n\t\nEnd If\n\n'The AddObservation command adds the ACC value of object \n'CollectRTs to the Summation object, OverallAcc.\nOverallAcc.AddObservation CollectRTs.ACC\n\n\n'The Debug.Print command prints the mean value of the Summation\n'object, OverallAcc, in the Output window.\nDebug.Print OverallAcc.Mean\n\n\n'The OverallACC attribute adds the running calculation of overall\n'accuracy to the data file at the trial level.\nc.SetAttrib \"OverallAcc\", OverallAcc.Mean\n\n\n\n\n\n\n\n" Name="AssignVals" TypeName="InLine" Tag="" Notes="" [Object10] _Version=131072 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 _VersionPersist=1 Code="'Sorts a single-dimensioned array in ascending order\nArraySort RTs()\n\n'UBound returns an Integer containing the upper bound of the \n'specified dimension Of the specified dimension Of the specified array variable.\n'Mod returns the remainder as a whole number.\nIf (ubound(RTs) Mod 2) = 0 Then\n\n\t' odd number of trials (remember array is 0 based)\n\t' for example if there are 5 trials (0,1,2,3,4) then 4 \\ 2 = 2\n\t' array RTs(2) is the third trial (median trial)\n\tmedian = RTs(ubound(RTs) \\ 2)\n\n\nElse\n\n\t' even number of items\n\t'Int returns the integer part of a number.\n\t\t'Alternatively Using a backslash \"\\\" would also return integer division.\n\t\t' for example if we have 6 trials (0,1,2,3,4,5) then 5 / 2 = 2.5 using Int we drop the .5 to get 2\n\t\t' using Int(1 + 5 / 2) we get (1 + 2) = 3\n\t\t' to find the median we now have median = (RTs(2)+RTs(3)) / 2\n\tmedian = (RTs(Int(ubound(RTs) / 2)) + RTs(Int(1 + ubound(RTs) / 2))) / 2\n\nEnd If\n\n'The Median attribute adds the median calculation to the data file at the block level.\nc.SetAttrib \"Median\", median\n\n\n'This sets the attribute, OverallAcc at the block level,\n'and multiplies it by 100 to display as a percentage.\nc.SetAttrib \"OverallAcc\", Format(OverallAcc.Mean*100, \"00.0\")" Name="Sort" TypeName="InLine" Tag="" Notes="" [Object11] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Logging("OnsetDelay").Log=0 Logging("OnsetTime").Log=0 Logging("DurationError").Log=0 Logging("PreRelease").Log=0 Logging("Duration").Log=0 Logging("StartTime").Log=0 Logging("OffsetTime").Log=0 Logging("FinishTime").Log=0 Logging("TimingMode").Log=0 Logging("CustomOnsetTime").Log=0 Logging("CustomOffsetTime").Log=0 Logging("ActionDelay").Log=0 Logging("ActionTime").Log=0 Logging("TargetOffsetTime").Log=0 Logging("TargetOnsetTime").Log=0 Logging("OffsetDelay").Log=0 Logging("RTTime").Log=0 Logging("ACC").Log=0 Logging("RT").Log=0 Logging("RESP").Log=0 Logging("CRESP").Log=0 Logging("Tag").Log=0 Input(0)=!Data2 _VersionPersist=1 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Text="Your median RT on these 5 trials was:\n\n[Median] ms\n\n\nYour overall accuracy was [OverallAcc]%." ForeColor="black" BackColor="white" BackStyle="opaque" BorderColor="black" BorderWidth="0" X="center" Y="center" Width="100%" Height="100%" XAlign="center" YAlign="center" AlignHorizontal="center" AlignVertical="center" FontName="Courier New" FontSize="18" FontBold="Yes" FontItalic="No" FontUnderline="No" FontStrikeout="No" WordWrap=1 ClearAfter="No" Duration="-1" JumpLabel="" TimingMode=0 PreRelease="0" OnsetSync=1 OffsetSync=0 Name="ShowMedian" TypeName="TextDisplay" Tag="" Notes="" [Data2] DeviceName="Keyboard" DeviceClass="Keyboard" AllowableInput="{ANY}" CorrectInput="" TimeLimit="" MaxCount="1" InputAction=1 SyncOwnerDuration=1 Enabled=1 FlushInputBuffer="Yes" TerminationInput="" UserTag="" ResponseMode="All" ProcessBackspace="Yes" [Object12] _Version=65536 _ExtentX=2646 _ExtentY=1323 _StockProps=0 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Logging("OnsetDelay").Log=0 Logging("OnsetTime").Log=0 Logging("DurationError").Log=0 Logging("PreRelease").Log=0 Logging("Duration").Log=0 Logging("StartTime").Log=0 Logging("OffsetTime").Log=0 Logging("FinishTime").Log=0 Logging("TimingMode").Log=0 Logging("CustomOnsetTime").Log=0 Logging("CustomOffsetTime").Log=0 Logging("ActionDelay").Log=0 Logging("ActionTime").Log=0 Logging("TargetOffsetTime").Log=0 Logging("TargetOnsetTime").Log=0 Logging("OffsetDelay").Log=0 Logging("RTTime").Log=0 Logging("ACC").Log=0 Logging("RT").Log=0 Logging("RESP").Log=0 Logging("CRESP").Log=0 Logging("Tag").Log=0 _VersionPersist=1 VersionMajor=1 VersionMinor=2 VersionInternal=1 VersionBuild=69 Text="Goodbye" ForeColor="black" BackColor="white" BackStyle="opaque" BorderColor="black" BorderWidth="0" X="center" Y="center" Width="100%" Height="100%" XAlign="center" YAlign="center" AlignHorizontal="center" AlignVertical="center" FontName="Courier New" FontSize="18" FontBold="Yes" FontItalic="No" FontUnderline="No" FontStrikeout="No" WordWrap=1 ClearAfter="No" Duration="1000" JumpLabel="" TimingMode=0 PreRelease="0" OnsetSync=1 OffsetSync=0 Name="Goodbye" TypeName="TextDisplay" Tag="" Notes="" [UserScript] 'This script declares OverallAcc as a global Summation object. 'This enables OverallAcc to collect a number of data entries 'to later display the user's total accuracy. Dim OverallAcc As Summation 'Declare a dynamic array since we will get the size from TrialList. 'Array's are zero based so for 5 trials you use 4 eg. 0,1,2,3,4 'A Long is capable of holding numbers with up to 10 digits of prescision. Dim RTs() As Long 'Declare incrementing counter Dim iCounter As Integer 'k will hold the total correct trial size Dim nCount As Integer 'A Double is capable of holding real numbers With 15-16 digits Of prescision. Dim median As Double