mne_realtime.StimServer

class mne_realtime.StimServer(port=4218, n_clients=1)[source]

Stimulation Server.

Server to communicate with StimClient(s).

Parameters
portint

The port to which the stimulation server must bind to.

n_clientsint

The number of clients which will connect to the server.

See also

StimClient
add_trigger(trigger, verbose=None)[source]

Add a trigger.

Parameters
triggerint

The trigger to be added to the queue for sending to StimClient.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

shutdown(verbose=None)[source]

Shutdown the client and server.

Parameters
verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

start(timeout=inf, verbose=None)[source]

Start the server.

Parameters
timeoutfloat

Maximum time to wait for clients to be added.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Examples using mne_realtime.StimServer

Real-time feedback for decoding :: Server Side

Real-time feedback for decoding :: Server Side

Real-time feedback for decoding :: Server Side
Real-time feedback for decoding :: Server Side

Real-time feedback for decoding :: Server Side

Real-time feedback for decoding :: Server Side