Tutorial 3: TMSi + WaveX synchronization

Tutorial 3: TMSi + WaveX synchronization#

Corresponding file for this tutorial: examples_reading_data/example_synchronise_xdf.py

This tutorial covers the second phase of a SAGA + WaveX experiment, i.e. synchronization.

After doing a measurement using LabRecorder, as explained in the previous tutorial, you’ve obtained one or multiple xdf-files. The files contain two streams: one for SAGA and one for WaveX. Synchronization of these two streams, based on their timestamps, can be done using the example_synchronise_xdf, which can be found in the examples_reading_data folder.

After opening the example script, you can edit the input_file and output_file parameters that are shown in the lines of code below:

# Define the input and output file
input_file = join(measurements_dir, "your_input_file.xdf")
output_file = join(measurements_dir, "your_output_file.xdf")

Here, the input_file should be changed to the filename that you’ve collected using LabRecorder, whereas the output_file should be changed to the name of the file that you desire to use further.

After this synchronization process, you can use the xdf-reader to further analyse your synchronized data.