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
cmd_port : int
data_port : int
timeout : float
verbose : bool, str, int, or None
|
---|
Methods
__hash__ () <==> hash(x) |
|
get_client_id () |
Get the client ID. |
get_measurement_info () |
Get the measurement information. |
raw_buffers (nchan) |
Return an iterator over raw buffers. |
read_raw_buffer (nchan) |
Read a single buffer with raw data. |
register_receive_callback (callback) |
Register a raw buffer receive callback. |
set_client_alias (alias) |
Set client alias. |
start_measurement () |
Start the measurement. |
start_receive_thread (nchan) |
Start the receive thread. |
stop_measurement () |
Stop the measurement. |
stop_receive_thread ([stop_measurement]) |
Stop the receive thread. |
unregister_receive_callback (callback) |
Unregister a raw buffer receive callback. |
__hash__
() <==> hash(x)¶get_measurement_info
()[source]¶Get the measurement information.
Returns: | info : dict
|
---|
raw_buffers
(nchan)[source]¶Return an iterator over raw buffers.
Parameters: | nchan : int
|
---|---|
Returns: | raw_buffer : generator
|
read_raw_buffer
(nchan)[source]¶Read a single buffer with raw data.
Parameters: | nchan : int
|
---|---|
Returns: | raw_buffer : float array, shape=(nchan, n_times)
|
register_receive_callback
(callback)[source]¶Register a raw buffer receive callback.
Parameters: | callback : callable
|
---|
start_receive_thread
(nchan)[source]¶Start the receive thread.
If the measurement has not been started, it will also be started.
Parameters: | nchan : int
|
---|