-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadaptorProbeInMap_ch2ind.m
More file actions
30 lines (25 loc) · 952 Bytes
/
Copy pathadaptorProbeInMap_ch2ind.m
File metadata and controls
30 lines (25 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Returns a containers.Map object, which for each adaptor channel number
% ID gives an input pin location at the probe end. Designed for the
% Adpt-A64-OM32x2-sm adaptor
% (see https://neuronexus.com/images/Adaptor_Maps/Adpt-A64-OM32x2-sm.pdf).
% In addition also provides a simple pin map and adaptor configuration.
% Please follow Matlab linear indexing convention.
function [adptIMap, adptIPins, conf] = adaptorProbeInMap_ch2ind
adptIMap = containers.Map('KeyType', 'int32', 'ValueType', 'any');
adptIPins = [10 00 00 55;
15 00 00 50;
08 00 00 57;
13 00 00 52;
06 11 54 59;
04 05 60 61;
09 32 33 56;
02 03 62 63;
07 30 35 58;
01 31 34 64];
for i = 1:64
if sum(any(adptIPins == i))
adptIMap(i) = find(adptIPins == i);
end
end
conf.adaptor = 'Adpt-A64-OM32x2-sm';
conf.probeEndIn = adptIPins;