courses:psaw:lab_impl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
courses:psaw:lab_impl [2024/03/05 08:45] – [Prepare for the lab] kktcourses:psaw:lab_impl [2025/05/05 16:02] (current) – [Materials] kkt
Line 59: Line 59:
       - [[https://github.com/labstreaminglayer/App-LabRecorder|App-LabRecorder]] is an application that records the data streams available in the local network. Simply run the LabRecorder. You should see exactly one stream, called ''BioSemi'' -- it is provided by the ''SendData.py'' example.       - [[https://github.com/labstreaminglayer/App-LabRecorder|App-LabRecorder]] is an application that records the data streams available in the local network. Simply run the LabRecorder. You should see exactly one stream, called ''BioSemi'' -- it is provided by the ''SendData.py'' example.
     - Now it's time to work on your own: add LSL handling to the procedure in PsychoPy.     - Now it's time to work on your own: add LSL handling to the procedure in PsychoPy.
-      - Note 1: You can use the [[https://github.com/labstreaminglayer/liblsl-Python/blob/master/pylsl/examples/SendData.py|SendData.py]] code as an inspiration.+      - Note 1: You can use the [[https://github.com/labstreaminglayer/pylsl/blob/main/src/pylsl/examples/SendData.py|SendData.py]] code as an inspiration.
       - Note 2: The use of the LSL consists of two steps. At the beginning (once, before starting the procedure), the appropriate data stream must be prepared using the ''StreamInfo'' and ''StreamOutlet'' classes. Then, in the actual loop handling the stimuli, we send consecutive samples to the stream using the ''push_sample()'' function.       - Note 2: The use of the LSL consists of two steps. At the beginning (once, before starting the procedure), the appropriate data stream must be prepared using the ''StreamInfo'' and ''StreamOutlet'' classes. Then, in the actual loop handling the stimuli, we send consecutive samples to the stream using the ''push_sample()'' function.
       - As a result, the stream you created should appear in LabRecorder.       - As a result, the stream you created should appear in LabRecorder.
  • courses/psaw/lab_impl.1709628342.txt.gz
  • Last modified: 16 months ago
  • by kkt