io

class neuxus.nodes.io.LslReceive(prop, value, data_type, sync='local', max_samples=4096, timeout=10.0)[source]

Receive from a LSL stream.

Attributes:
  • input: input port

Args:
  • prop (str): property used to resolve the stream (for example ‘name’)

  • value (str): value associated to prop for resolving stream

  • data_type (str): type of output value among [‘epoch’, ‘signal’, ‘vector’, ‘marker’]

  • sync (string, None): The method used to synchronize timestamps. Use local if you receive the stream from another application on the same computer. Use network if you receive from another computer.

  • max_samples (int): The maximum number of samples to return per call. Default is 4096

  • timeout (float): time for the software to wait the stream

class neuxus.nodes.io.LslSend(input_port, name, type='signal', format='double64', uuid_=None)[source]

Send to a LSL stream.

Attributes:
  • i (Port): Default data input, expects DataFrame.

Args:
  • name (string): The name of the stream.

  • type_ (string): The content type of the stream, .

  • format (string): The format type for each channel. Currently, only double64 and string are supported.

  • uuid (string, None): The unique identifier for the stream. If None, it will be auto-generated.

connect()[source]

Create an outlet for streaming data

update()[source]

Send data found in input port

class neuxus.nodes.io.RdaReceive(rdaport, offset=0.0, host='localhost', timeout=10.0)[source]

Receive a signal from RDA stream

Attributes:
  • output (Port): output port

  • marker_output (Port): output marker port

Args:
  • rdaport (int): rda port to connect with

  • offset (float): offset (in second) to apply to incoming data timestamps, default is 0

  • host (str): RDA host, default is ‘localhost’, it could be the IP adress of the host

  • timeout (float): timeout in sec t get the RDA stream, default is 10

Example:

RdaReceive() RdaReceive(rdaport=52136, offset=.125, host=’159.10.20’)

class neuxus.nodes.io.UdpSend(input_port, ip, port)[source]

Simple UDP client to send some data

Arguments:
  • input_port (Port): inout data port

  • ip (str): IP address of UDP server which receive data

  • port (int): socket port

Example: UdpSend(port895, ip=”127.0.0.1”, port=20001)