multichannelsystems / McsUsbNet_Examples

C#, Python and Matlab code examples to interact with the McsUsbNet.dll
BSD 2-Clause "Simplified" License
7 stars 2 forks source link

Stop recording after a few seconds #5

Closed amirhosseinqasemi closed 3 years ago

amirhosseinqasemi commented 3 years ago

When I use the Matlab example to read MEA data, it will stop recording after a few seconds. When I check the variable "number" in "run_mea.m", it decreases after a few seconds and equals zero. Therefore, the program stops reading new data from MEA.

armwal commented 3 years ago

Hi, could you give me some details which MEA system you are using?

Thanks Armin

amirhosseinqasemi commented 3 years ago

Hi, It's a USB-ME64-system by MPA8I. We do a recording with a python example well. But, there is a problem with the Matlab example.

armwal commented 3 years ago

Thanks for the bug report, we've tested a USB-ME64 with the Matlab example and we can reproduce this. We are currently investigating what is going on there... I'll keep you updated!

Armin

armwal commented 3 years ago

We've found and fixed the bug responsible for this issue: In the Matlab example, the data was read only from some channels of the device, so after a few seconds, the device memory was full and the recording stopped with an error.

We've pushed an update where this issue should be fixed

amirhosseinqasemi commented 3 years ago

Thanks for your response.