Welcome to our user forum (read only mode).
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Channel mapping when streaming from USB-ME64 through MATLAb

Go down

Channel mapping when streaming from USB-ME64 through MATLAb Empty Channel mapping when streaming from USB-ME64 through MATLAb

Post  mcs.ali Mon Jul 24, 2017 5:50 pm

Hello,

I am using a custom MATLAB application to stream data from a 60pMEA200 using USB-ME64. I am having trouble understanding how to request data from specific electrodes, and how the data I get corresponds to each electrode. So, in the code below, how can I know which channel in input_window corresponds to which electrode on the MEA?



Code:
   
    % Set up USB-ME64
    [status,hwchannels]=mea.HWInfo().GetNumberOfHWADCChannels();
    status = mea.SetNumberOfChannels(hwchannels);
    [status, analogchannels, digitalchannels, checksumchannels, timestampchannels, channelsinblock] = mea.GetChannelLayout(0);
    mea.SetSampleRate(f_sampling, 1, 0);
    mea.SetSelectedChannels(channelsinblock, f_sampling, 5000, Mcs.Usb.SampleSizeNet.SampleSize16Unsigned, channelsinblock);
    mea.StartDacq();

    % ...
    % Data collection loop
    for i = 1: channels_in_block - 1
       [d, read] = mea.ChannelBlock_ReadFramesUI16(channels_to_watch(i), n_input_window);
       input_window(i,:)  = double(d) - 32768;
    end

mcs.ali

Posts : 1
Join date : 2017-07-24

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum