Hi Gonçalo,
I used the following Matlab code to load the data from the file:
datafile = fopen('.\test0.neu');
rawdata = fread(datafile,'uint16');
fclose(datafile);
chanData = reshape(rawdata,64,size(rawdata,1)/64);
The size of the matrices matched the length of the recording.
However, when I plot the waveform, I found that channels 1~32 and 33~64 were exact duplicates.
For example, this is channel 1 and 33 (I added a little offset between them). They are exactly the same.
While channel 1 vesus 2 (or any other channel between 2 and 32) show clear differences:
Furthermore, If I don't break the data down into 64 channels and simply plot the raw binary trace, it looks like that it's going through cylces of 32 samples, rather than 64 sample. And the neighboring two cycles' values are duplicated.
I can record normal data (64 different channels) using the OpenEphys GUI. So I was wondering what I've done wrong in Bonsai. I'm running Bonsai 2.3.1. And my OpenEphys bit file (rhd2000_usb3.bit) is up to date.
Thank you in advance!
Best regard,
Wei
--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/a87120f7-d0e3-4710-be4d-4b9577ade6ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
Hmmm, that is strange indeed. Have you tried using the USB 3.0 bitfile that is included in the Bonsai Ephys example (Tools > Bonsai Gallery > Bonsai – Ephys Example)?
That is the one used for validation of USB 3 support and I’m almost certain I tried it with our 64-channel headstages… Otherwise I'll try to reproduce it over here.
From: Wei Guo
Sent: 25 April 2018 23:05
To: Bonsai Users
Subject: Re: [bonsai-users] Channel duplication problem with Rhd2000EvalBoard
Hi Gonçalo,
Thanks for the quick reply.
I tried it in Bonsai GUI and saw the same problem.
This is the live stream of channels 1 and 2:
And this is channels 1 and 33:
Wei
On Wednesday, April 25, 2018 at 5:54:23 PM UTC-4, goncaloclopes wrote:
Hi Wei and welcome to the forums!
What happens when you plot the data in real-time using Bonsai? Do you also observe such duplicated channels? You can use the visualizer to help you confirm this: if you open the visualizer of AmplifierData node, then right-click on top of the traces, you can find at the bottom an icon in the shape of a grid. If you click on it, you can see the individual channels. Furthermore, if you click on top of individual channel numbers, you can select the channels that you want to view when you go back to the "mixed" view. In this case, you can pick channel 0 and 32 for example.This is a surprising issue, since we routinely record from Bonsai using both OpenEphys and Intan with up to 128 channels with a single SPI cable. However, since you are using the USB 3.0 interface, there are some differences to the USB 2.0 code. We did try it with a variety of different headstages, but it's the only difference I can see. It would be nice to confirm whether this is happening in real-time.
On 25 April 2018 at 22:42, Wei Guo <victor....@gmail.com> wrote:
Hi Gonçalo,
First of all thank you for writing Bonsai. I really enjoy using it. Please keep up the good work!
I recently ran into a problem using Bonsai to record Ephys data with an OpenEphys acquisition board. The neural signals came out of a 64 channel tetrode array and were amplified with an RHD2164 64-channel amplifier/accelerometer board (http://intantech.com/RHD2164_amp_board.html) and fed into the acquisition board with a single SPI cable. I used the following example Bonsai Ephys workflow to record raw binary neural signals at 30000 Hz sampling rate and wrote it into a file with MatrixWriter:
I used the following Matlab code to load the data from the file:
datafile = fopen('.\test0.neu');
rawdata = fread(datafile,'uint16');
fclose(datafile);
chanData = reshape(rawdata,64,size(rawdata,1)/64);
The size of the matrices matched the length of the recording.
However, when I plot the waveform, I found that channels 1~32 and 33~64 were exact duplicates.
For example, this is channel 1 and 33 (I added a little offset between them). They are exactly the same.
While channel 1 vesus 2 (or any other channel between 2 and 32) show clear differences:
Furthermore, If I don't break the data down into 64 channels and simply plot the raw binary trace, it looks like that it's going through cylces of 32 samples, rather than 64 sample. And the neighboring two cycles' values are duplicated.
I can record normal data (64 different channels) using the OpenEphys GUI. So I was wondering what I've done wrong in Bonsai. I'm running Bonsai 2.3.1. And my OpenEphys bit file (rhd2000_usb3.bit) is up to date.
Thank you in advance!
Best regard,
Wei
--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/a87120f7-d0e3-4710-be4d-4b9577ade6ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/21a4f617-2362-45c1-81b7-199d001bbc47%40googlegroups.com.
Hi Gonçalo,
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/f4acb55d-3c14-4e1e-ba6c-52dfaf96e6d5%40googlegroups.com.