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
Docs » Switch Task (MMY4, SPA)

This is an old revision of the document!


Switch Task (MMY4, SPA)

also known as nBMSI n-Back Multi-Source Interference. Code shared publicly at https://github.com/labneurocogdevel/MMY4

Use

On the behavioral task computer, open Matlab 1) 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

Practice for lunaid 12345 looks like

cd C:\Users\localadmin\Desktop\SPASwitch_Cog_Inf
nBMSI 12345 green practice
nBMSI 12345 red practice
nBMSI 12345 in/cog1 practice

and actually running like

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

Early Quit

  • use the Escape key to quit early.
  • if something goes very wrong: Alt+Tab then Ctrl+c then sca
    1. Hold Alt and tap Tab until the matlab icon is selected
    2. Hold Control and tap c (Ctrl+c).
    3. type (blindly) sca and then hit enter

Trouble shooting

Undefined

An error may move matlab's working directory to the wrong path (esp. into private). You'll get the error

Undefined function or variable 'nBMSI'.

To fix, cd to the correct directory

cd C:\Users\localadmin\Desktop\SPASwitch_Cog_Inf\private
1)
as of 2023-11-30 this is still Matlab2015 on 32bit windows
Previous Next