mne_realtime.RtClient#
- class mne_realtime.RtClient(host, cmd_port=4217, data_port=4218, timeout=1.0, verbose=None)[source]#
Realtime Client.
Client to communicate with mne_rt_server
- Parameters:
- host
str
Hostname (or IP address) of the host where mne_rt_server is running.
- cmd_port
int
Port to use for the command connection.
- data_port
int
Port to use for the data connection.
- timeout
float
Communication timeout in seconds.
- verbosebool |
str
|int
|None
Control verbosity of the logging output. If
None
, use the default verbosity level. See the logging documentation andmne.verbose()
for details. Should only be passed as a keyword argument.
- host
- get_measurement_info()[source]#
Get the measurement information.
- Returns:
- info
dict
The measurement information.
- info
- register_receive_callback(callback)[source]#
Register a raw buffer receive callback.
- Parameters:
- callback
callable()
The callback. The raw buffer is passed as the first parameter to callback.
- callback
- start_receive_thread(nchan)[source]#
Start the receive thread.
If the measurement has not been started, it will also be started.
- Parameters:
- nchan
int
The number of channels in the data.
- nchan
- stop_receive_thread(stop_measurement=False)[source]#
Stop the receive thread.
- Parameters:
- stop_measurementbool
Also stop the measurement.
- unregister_receive_callback(callback)[source]#
Unregister a raw buffer receive callback.
- Parameters:
- callback
callable()
The callback to unregister.
- callback