mne_lsl.lsl.resolve_streams🔗

mne_lsl.lsl.resolve_streams(timeout=1.0, name=None, stype=None, source_id=None, minimum=1)[source]🔗

Resolve streams on the network.

This function returns all currently available streams from any outlet on the network. The network is usually the subnet specified at the local router, but may also include a group of machines visible to each other via multicast packets (given that the network supports it), or list of hostnames. These details may optionally be customized by the experimenter in a configuration file (see Network Connectivity in the LSL wiki).

Parameters:
timeoutfloat

Timeout (in seconds) of the operation. If this is too short (e.g. < 0.5 seconds) only a subset (or none) of the outlets that are present on the network may be returned.

namestr | None

Restrict the selected streams to this name.

stypestr | None

Restrict the selected stream to this type.

source_idstr | None

Restrict the selected stream to this source ID.

minimumint

Minimum number of stream to return where restricting the selection. As soon as this minimum is hit, the search will end. Only works if at least one of the 3 identifiers name, stype or source_id is not None.

Returns:
sinfoslist

List of StreamInfo objects found on the network. While a StreamInfo is not bound to an Inlet, the description field remains empty.

Examples using mne_lsl.lsl.resolve_streams🔗

Low-level LSL API

Low-level LSL API

Epoching a Stream in real-time

Epoching a Stream in real-time