Skip to content

Question about DataReceiving and Sampling rate #335

@RanjitF

Description

@RanjitF

I am curious about the DataReceiving function

while
[vec, ts]= inlet_data.pull_sample();
end

In my project, I want to store 3 second EEG data. Since the sampling frequency is fixed 5000 Hz, can I write the code like below to obtain accurate 3 second EEG data?

while count ~= 5000 * 3
[vec, ts]= inlet_data.pull_sample();
count = count + 1;
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions