rtcog.comm package

Submodules

rtcog.comm.comm_process module

rtcog.comm.comm_process.comm_process(opts, sync, proc_class, shared_responses=None, clock=None, time_path=None, minimal=False)[source]

Main communication process handling experiment setup and data reception.

Parameters:
  • opts (Options) – Configuration options for the experiment run.

  • sync (SyncEvents) – Synchronization events object for interprocess signaling.

  • proc_class (obj) – The processor class to be instantiated.

  • shared_responses (DictProxy, optional) – Shared dictionary for storing participant responses (default is None).

  • clock (SharedClock, optional) – Optional timing object for latency measurements (default is None).

  • time_path (str, optional) – Optional path for saving timing data (default is None).

Returns:

Return code indicating success (0) or failure (1).

Return type:

int

rtcog.comm.receiver_interface module

class rtcog.comm.receiver_interface.CustomReceiverInterface(port=None, show_data=False, verb=0, auto_save=True, clock=None, out_path=None)[source]

Bases: object

Custom AFNI real-time receiver with rtcog extensions.

process_one_TR()[source]

return 0 to continue, 1 on valid termination, -1 on error

process_one_run()[source]

repeatedly: process all incoming data for a single run return 0 on success and 1 on error

save_timing()[source]
class rtcog.comm.receiver_interface.MinimalReceiverInterface(**kwargs)[source]

Bases: CustomReceiverInterface

Receiver interface without any data computation. Used for latency testing.

process_one_TR()[source]

Overridden to only track recv time, not proc time.

Module contents