bsl.triggers.LSLTrigger#

class bsl.triggers.LSLTrigger(name, *, verbose=True)#

Trigger sending values on an LSL outlet.

Make sure you are recording the stream created by the LSLTrigger alongside your data. e.g. if you use LabRecorder, update the stream list after creating the LSLTrigger.

Make sure to close the LSL outlet by calling the close method or by deleting the trigger after use.

Parameters
  • name (str) – Name of the LSL outlet.

  • verbose (bool) – If True, display a logger.info message when a trigger is sent.

Attributes
name

LSL outlet name.

oulet

LSL stream oulet.

sinfo

LSL stream info.

verbose

Methods

close()

Close the LSL outlet.

signal(value)

Send a trigger value.

close()#

Close the LSL outlet.

property name#

LSL outlet name.

Type

str

property oulet#

LSL stream oulet.

Type

pylsl.StreamOutlet

signal(value)#

Send a trigger value.

Parameters

value (int) – Value of the trigger.

property sinfo#

LSL stream info.

Type

pylsl.StreamInfo