How trexlernoah/tap-rewrite works
Main Components Identification
The system consists of three major components:
• GUI Interface (Tkinter-based menu system)
• Game Interface (Pygame-based subject interaction)
• Hardware Interface (NI-DAQ USB-6001 communication)
[User Interface Layer]
• Menu System (Tkinter)
• Game Interface (Pygame)
[Application Logic Layer]
• Thread Handler
• Event Queue
• Shock Task Processor
[Hardware Interface Layer]
• DAQ Interface
• Coulbourn Shocker Control
[Thread 1]
• Tkinter Menu
• PyGame Experiment
[Thread 2]
• DAQ Interface
• Shock Processing
Component Details
• Blue: User Interface components (Tkinter, Pygame)
• Green: Processing components (Thread Handler, Queue)
• Red: Hardware interface components (DAQ, Shocker)
Key Interactions
Specific data flows:
Menu System → Thread Handler → DAQ Interface
Game Interface → Thread Handler → DAQ Interface
Thread Handler ←→ Event Queue ←→ Shock Task Processor
Technical Specifications
Annotations for:
• ShockTask parameters (milliamps, duration, cooldown)
• Thread communication methods (Queue, Events)
• Hardware specifications (USB-6001, signal types)
Implementation Details
Classes and their relationships:
ThreadHandler
• ↓
ShockTask
• ↓
DAQ Interface