How bruskatech/psyforge works
Main Components
a. Core Framework Layer:
• MainManager (central orchestrator)
• InputManager (input handling)
• ErrorNotifier (error management)
• Configuration System (Config, FileManager)
• Threading System (EventLoop, SingleThreadTaskScheduler)
b. Experiment Layer:
• ExperimentBase (base experiment functionality)
• ExperimentSession (session management)
• Trial Management
• Data Collection/Logging
c. External Interfaces:
• NetworkInterface
• ElememInterface (for closed-loop systems)
• SyncBox/PhotoDiodeSyncBox (timing synchronization)
• HostPC Communication
d. UI/Presentation Components:
• TextDisplayer
• VideoPlayer
• SoundRecorder
• GUI Management System
Relationship Flow
[External Hardware] <---> [Network/Device Interfaces] <---> [Core Framework Layer]
• v
[UI Components] <---> [Experiment Layer] <---> [Data Management]
• ^
[Configuration] ----------->|
Important Details
• Thread boundaries and communication channels
• Real-time processing paths (marked with different line styles)
• Configuration flow
• Data collection points
• Error handling paths
• Platform-specific variations
Specific Implementation Notes
• How the EventLoop handles high-frequency inputs (30-60Hz+)
• Where Unity's main thread integrates with the system
• Cross-platform compatibility points
• Integration points with Unity's rendering pipeline