- class mne_realtime.FieldTripClient(info=None, host='localhost', port=1972, wait_max=30, tmin=None, tmax=inf, buffer_size=1000, verbose=None)¶
Realtime FieldTrip client.
The measurement info read in from a file. If None, it is guessed from the Fieldtrip Header object.
Hostname (or IP address) of the host where Fieldtrip buffer is running.
Port to use for the connection.
Maximum time (in seconds) to wait for Fieldtrip buffer to start
Time instant to start receiving buffers. If None, start from the latest samples available.
Time instant to stop receiving buffers.
Size of each buffer in terms of number of samples.
- verbosebool |
This software uses the FieldTrip buffer open source library. See http:/www.fieldtriptoolbox.org for details. The FieldTrip buffer is used under the BSD 3-Clause License.
- get_data_as_epoch(n_samples=1024, picks=None)¶
Return last n_samples from current time.
Number of samples to fetch.
Channels to include. Slices and lists of integers will be interpreted as channel indices. In lists, channel type strings (e.g.,
['meg', 'eeg']) will pick channels of those types, channel name strings (e.g.,
['MEG0111', 'MEG2623']will pick the given channels. Can also be the string values “all” to pick all channels, or “data” to pick data channels. None (default) will pick all channels. Note that channels in
info['bads']will be included if their names or indices are explicitly provided.
- epochinstance of
The samples fetched as an Epochs object.
- epochinstance of
Return an iterator over raw buffers.
Generator for iteration over raw buffers.
Register a raw buffer receive callback.
The callback. The raw buffer is passed as the first parameter to callback.
Start the receive thread.
If the measurement has not been started, it will also be started.
The number of channels in the data.
Stop the receive thread.
unused, for compatibility.