stimuli.trigger.LSLTrigger🔗
- class stimuli.trigger.LSLTrigger(name)[source]🔗
- Trigger sending values on an LSL outlet. - Make sure you are recording the stream created by the - LSLTriggeralongside your data. e.g. if you use LabRecorder, update the stream list after creating the- LSLTrigger.- Warning - Make sure to close the - StreamOutletby calling the- close()method or by deleting the trigger after use.- Parameters:
- namestr
- Name of the trigger displayed on the LSL network. 
 
- name
 - Attributes - Name of the trigger displayed on the LSL network. - Trigger outlet. - Description of the trigger outlet. - Methods - Notes - The - StreamOutletcreated has the following properties:- Name: - f"{name}"
- Type: - "Markers"
- Number of channels: 1 
- Sampling rate: Irregular 
- Data type: - np.int8
- Source ID: - f"HNP-{name}"
 - The values sent must be in the range of strictly positive integers defined by - np.int8, 1 to 127 included.- signal(value)[source]🔗
- Send a trigger value. - Parameters:
- valueint
- Value of the trigger, between 1 and 255. 
 
- value
 
 - property outlet🔗
- Trigger outlet. - Type:
 
 - property sinfo🔗
- Description of the trigger outlet. - Type: