NMRC Go/Nogo Task

Flow Diagram

Flow Diagram of the Software

_images/flowdiagram1.png _images/flowdiagram2.png

Hardware Framework

Hardware Framework

_images/HardwareFramework.png

IO8 Channel Connection

_images/IO8PinConnection.png

Interface Go

Function Wait_Reach():

Output Member Variables:

gotargetTouchstate: GoTargetTouchState.goHit, GoTargetTouchState.goClose, or GoTargetTouchState.goMiss

Shuffle Trials

function:

private void Shuffle_GonogoTrials(int gotrialnum, int nogotrialnum)

Output Member Variables:

targetType_List: new List<TargetType>(), Go or Nogo for each trial

Issues

  1. noGo Task: Hold all the time, thus no delay for the following trial.

  2. Some Miss is misclassified into Close.

  3. ~~Add audio~~

Presentation Class

Namespace: GonoGoTask_wpfVer

Inheritance: System.Windows.Window

Properties

Interface Related

t_Ready_List

List<float>

len = ntrials, random t_Ready for each trial, generated in function Shuffle_GonogoTrials

t_Cue_List

List<float>

len = ntrials, random t_Cue for each trial, generated in function Shuffle_GonogoTrials

t_noGoShow_List

List<float>

len = ntrials, random t_noGoShow for each trial, generated in function Shuffle_GonogoTrials

Touch Points Related

Property

Data Type

Used Function

tMax_1Touch

List<float>

the Duration for One Touch (set 10ms)

touchPoints_Id

HashSet<int>

Unique Touch Point Id within Each Touch Duration

Added/Removed: Touch_FrameReported()

downPoints_Pos

List<double[]>

the X, Y position of Each Touchdown Point within Each Touch Duration (tMax_1Touch)

Added: Touch_FrameReported() Used/Removed: calc_GoTargetTouchState()

Methods

Wait_Reach():

Output Member Variables:

gotargetTouchstate: GoTargetTouchState.goHit, GoTargetTouchState.goClose, or GoTargetTouchState.goMiss