mne.realtime.
FieldTripClient
(info=None, host=’localhost’, port=1972, wait_max=30, tmin=None, tmax=inf, buffer_size=1000, verbose=None)[source]¶Realtime FieldTrip client.
Parameters: | info : dict | None
host : str
port : int
wait_max : float
tmin : float | None
tmax : float
buffer_size : int
verbose : bool, str, int, or None
|
---|
Methods
__hash__ () <==> hash(x) |
|
get_data_as_epoch ([n_samples, picks]) |
Return last n_samples from current time. |
get_measurement_info () |
Return the measurement info. |
iter_raw_buffers () |
Return an iterator over raw buffers. |
register_receive_callback (callback) |
Register a raw buffer receive callback. |
start_receive_thread (nchan) |
Start the receive thread. |
stop_receive_thread ([stop_measurement]) |
Stop the receive thread. |
unregister_receive_callback (callback) |
Unregister a raw buffer receive callback. |
__hash__
() <==> hash(x)¶get_data_as_epoch
(n_samples=1024, picks=None)[source]¶Return last n_samples from current time.
Parameters: | n_samples : int
picks : array-like of int | None
|
---|---|
Returns: | epoch : instance of Epochs
|
See also
get_measurement_info
()[source]¶Return the measurement info.
Returns: | self.info : dict
|
---|
iter_raw_buffers
()[source]¶Return an iterator over raw buffers.
Returns: | raw_buffer : generator
|
---|
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
|
---|