LNCD

Table of Contents

  • LNCD Home
  • Administration
  • Notebooks
  • Journal Club Presentations
  • Publications
  • Current Projects
  • Completed Projects
  • Current Grants
  • Datasets by Project
  • Brain ROIs and Measures
  • ️Tools And Methods
  • Big Data
  • RA Homepage
  • Undergrad Resources
  • Recent Changes
  • Maintenance
  • Site Map
  • Random Page
LNCD
Admin » Switch Task (MMY4, SPA)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:switchtask [2023/11/30 14:44] – [Switch Task (MMY4, SPA)] willtools:switchtask [2026/08/20 09:37] (current) – [Practice Block] will
Line 1: Line 1:
 ====== Switch Task (MMY4, SPA) ====== ====== Switch Task (MMY4, SPA) ======
-also known as  ''nBMSI''  n-Back Multi-Source Interference+Also known as  ''nBMSI''  n-Back Multi-Source Interference. Original used [[tools:mmy4:switch|MMY4]] but with 3rd n-back trial type. 
 + 
 +Code shared publicly at https://github.com/labneurocogdevel/MMY4 written in [[:tools:matlab]] with [[:tools:psychtoolbox]] and adapted for EEG with [[:tools:psycyhopy]]/python 
 + 
 +Bart's 2016 WPIC poster on the task: {{ :tools:larsen_wpic_2016.pdf |Brain state expression and cognitive flexibility in adolescence and young-adulthood}} 
 + 
 +===== MR ===== 
 +See [[:tools:switchtask:mr]] 
 + 
 +===== Use ===== 
 +On the behavioral task computer, open Matlab ((as of 2023-11-30 this is still Matlab2015 on 32bit windows)) and run ''nBMSI LUNAID RUNTYPE''.  
 + 
 +''LUNAID'' should be the participants 5 digit lunaid and ''RUNTYPE'' is ''green'', ''red'', or ''in/cog1'' to ''in/cog6'' 
 + 
 + 
 + 
 +The desktop icon will launch matlab in the correct directory. Launching matlab is slow 
 + 
 +{{:tools:pasted:20231130-153548.png}} 
 + 
 + 
 +{{:tools:pasted:20231130-153955.png}} 
 + 
 +Practice for lunaid ''12345'' looks like 
 +<code> 
 +cd C:\Users\localadmin\Desktop\SPASwitch_Cog_Inf 
 +nBMSI 12345 green practice 
 +nBMSI 12345 red practice 
 +nBMSI 12345 in/cog1 practice 
 +</code> 
 + 
 +and actually running like 
 +<code> 
 +cd C:\Users\localadmin\Desktop\SPASwitch_Cog_Inf 
 +nBMSI 12345 green 
 +nBMSI 12345 red 
 +nBMSI 12345 in/cog1 
 +nBMSI 12345 in/cog2 
 +nBMSI 12345 in/cog3 
 +nBMSI 12345 in/cog4 
 +nBMSI 12345 in/cog5 
 +nBMSI 12345 in/cog6 
 +</code> 
 + 
 + 
 +In the matlab command window, to save time and keep inputs consistent look to keyboard shortcuts: 
 +  * ''up arrow''key to pull previously run commands. 
 +  * ''ctrl+left arrow'' and ''ctrl+right arrow'' move the input text cursor by word. 
 +  * ''Shift+ctrl+left'' to highlight a word (and type over it to replace) 
 + 
 +==== Practice Block ==== 
 + 
 +The practice block ends when enough correct responses are registered in a row. The [[https://github.com/LabNeuroCogDevel/MMY4/blob/master/private/getSettings.m#L231|threshold setting]] is different for block types: 3 for pure blocks, <del>5</del> 7 for mix. 
 +On 2026-08-18, the number of correct trials to quit the practice mix block was increased from 5 to 7 after noticing a randomly assigned first cog block of 5 trials could result in a participant never seeing a switch. 
 +==== Early Quit ==== 
 + 
 +  * use the ''Escape'' key to quit early. 
 +  * if something goes very wrong: ''Alt+Tab'' then ''Ctrl+c'' then ''sca'' 
 +    - Hold ''Alt'' and tap ''Tab'' until the matlab icon is selected 
 +    - Hold ''Control'' and tap ''c'' (''Ctrl+c'').  
 +    - type (blindly) ''sca'' and then hit ''enter'' 
 ===== Trouble shooting ===== ===== Trouble shooting =====
  
Line 12: Line 73:
 To fix, ''cd'' to the correct directory To fix, ''cd'' to the correct directory
 <code> <code>
-cd C:\Users\localadmin\Desktop\SPASwitch_Cog_Inf\private+cd C:\Users\localadmin\Desktop\SPASwitch_Cog_Inf
 </code> </code>