Bitbrain SDK 2.8.7
Bitbrain SDK
Loading...
Searching...
No Matches
SD Card recording import

Functions to import recordings from the SD card. More...

Functions

BBT_SDK_API int bbt_device_import_sd_record (const char *input_folder, const char *recording_name, const char *output_folder)
 Imports a recording from the SD Card of any Bitbrain device except from a 64-channels versatile device.
BBT_SDK_API int bbt_device_import_eeg64_sd_record (const char *left_input_folder, const char *right_input_folder, const char *recording_name, const char *output_folder)
 Imports a recording from the SD Card of an 64-channels versatile device.

Detailed Description

Functions to import recordings from the SD card.

All the devices can be configured to record data in the internal SD Card of the device using bbt_device_enable_sd_card, at the same time that the data is transmitted.

Data is the SD card is encoded and requires a specific import process to be decoded and stored in the hard drive of the computer. Functions in this group perform this import process.

The access to the SD Card content may vary from device to device. Some of them have direct phisical access to the SD Card and can be extracted and read in a computer. Some other devices have a virtual SD Card that is accessed through a mass storage profile when connected by USB.

Either way, the import functions need the path to the folder where the recording files are stored in the SD Card and the name of the recording to import, as configured in bbt_device_enable_sd_card. The folders can be safely copied into the hard drive of the computer to perform the import process from there, as long as the content are not modified.

The output of the import process are a set of CSV files with the data from each signal and a JSON file with the metadata of the recording. Each line of the CSV files contains the data from all the channels of the signal at a given time instant.

Function Documentation

◆ bbt_device_import_sd_record()

BBT_SDK_API int bbt_device_import_sd_record ( const char * input_folder,
const char * recording_name,
const char * output_folder )

Imports a recording from the SD Card of any Bitbrain device except from a 64-channels versatile device.

Parameters
input_folderThe path to the folder where the files from the SD Card of the device are
recording_nameThe name of the recording to import, as configured with bbt_device_enable_sd_card
output_folderThe path to the folder in the hard drive of the computer where the imported files will be stored

◆ bbt_device_import_eeg64_sd_record()

BBT_SDK_API int bbt_device_import_eeg64_sd_record ( const char * left_input_folder,
const char * right_input_folder,
const char * recording_name,
const char * output_folder )

Imports a recording from the SD Card of an 64-channels versatile device.

As a complex device, the 64-channels versatile is composed by two interconnected devices that record data in two different SD Cards. As a result, the import process requires the path to the folders in both SD Cards in the correct order. Note that, internally, the left and right devices use the same recording folder and name in their correspoding SD Cards. However, these folders can be different once copied into the hard drive of the computer.

Parameters
left_input_folderThe path to the folder where the files from the SD Card of the left device are
right_input_folderThe path to the folder where the files from the SD Card of the right device are
recording_nameThe name of the recording to import, as configured with bbt_device_enable_sd_card
output_folderThe path to the folder in the hard drive of the computer where the imported files will be stored