Skip to content

kassailattice628/BitPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitPlayer

Last Update 2024/1/18


BitPlayer is the Matlab app for

  1. Recoding with DAQ (NI DAQ device)
  2. Video Recording (Point Gray USB Cam) with IMAQ
  3. Visual stimuli with PTB3.

Requirements

DAQ

  • Windows 11

  • Matlab R2022a

    • DAQ toolbox
    • IMAQ toolbox
    • Image Acquisition Toolbox Support Package for Point Grey Hardware
  • NI DAQ (USB 6341 (BNC))

  • USB3 Camera, FLIR Grasshopper3 USB

  • iRecHS2 software (by Dr. Matsuda)

PTB

PTB & DAQ are synchronized by serial communication by monitoring trigger condition

Analysys

  • Developped in Ubuntu 20.04.5 LTS (macOS and Windows not tested)
  • Matlab R2022a
  • Python 3.8 or 3.9
    • reading meatadata from .oif file OIF2TIF
    • pandas, numpy, scipy

Visual Stimulation using PTB3

  1. Simple spot (full screen)
  2. Fine mapping (spot in smaller area)
  3. Random size spot
  4. Moving bar (fixed bar height: 65deg)
  5. Static bar (fixed bar height: 65deg)
  6. Moving Spot
  7. Sinusoidal, Shifting Grating, Gabor
  8. Image Presentation (tested)
  9. V1 serach (Coarse & Fine)
  10. Decode SC_v1 (RandomCheckerPattern + some figures)
  11. 2points, black/white (under development)

How to add new stimulation

  1. Add name of new stimulation @./PTB/CheckParams/gui_ini.m
  2. Add GUI setting
    1. Add position info in GUI function PatternDropDownValueChanged
    2. Add other GUI settings @./PTB/GUI/Set_StimPattern.m
  3. Add procedure of the new stim @./PTB/Stim/VisStimON.m
  4. Add text info during stimu presentation ./PTB/GUI/ShowStimInfo.m
  5. Save stimulus-specific parameters ./PTB/CheckParams/Get_ParamsSave.m

DAQ channel configureation (see daq_ini)

  1. Recording Eye positino singal from iRecHS2 (anohter WindowsPC)
    1. AI0: Pupil Horizontal movement
    2. AI1: Pupil Verticac movement
    3. AI2: Photo sensor
    4. AI3: **** Used for trigger monitor
    5. AI4: Pupil Size (not good)
  2. Video recording of Eye camera (200fps <- 500fps)
  3. Recoding locomotion (Rotary encoder)

Change history

2024/01/18

  • Merge update PTB. Add stimuli for Decording SC.

2023/06-12

  • Add Image Presentation

2023/03/21-23

  • Fix loop structure in DAQ recording.
  • Fix bootstrap in Analysys

2022/03/20

  • Update Analysys.
  • Use version info as txt file.

2022/03/03

  • Running test OK for DAQ+PTB and trigger FV10
  • Data load is OK for Analsys. Need to make stimulus specific analysys.

2022/02/26

  • Developping Analysis app (Analysys + 2P)

2022/01/31

  • Change settings of the capturing video from uncompress AVI to motion jpeg AVI.

2022/02/01

  • Correct Movie setting.
  • Check next number of save-directory.
  • Need to repair DAQ save function: SaveData & SaveTimestamps does not save 1st loop...

2022/02/02

  • Correct capture setting.
  • Delete app.Data and app.TimeStamos. These are temporal file for detecting trigger.
  • But, FIFOBuffer can be used.

About

Matlab app for DAQ(Win) and PTB(Ubuntu)

Resources

License

Stars

Watchers

Forks

Packages

No packages published