
NeuroNexus Technologies, Inc. ©2014
| 655 Fairfield Court, Suite 100, Ann Arbor, Michigan USA
Telephone: +1.734.913.8858 | Fax: +1.734.786.0069 |
APPENDIX B
fclose(fid);
v = v * 0.195;
% convert to microvolts
Auxiliary input data files
Each auxiliary input data file has a filename that begins with
aux
followed by the port and auxiliary channel:
AUX1, AUX2,
or
AUX3.
(If a dual-chip
amplifier board is used,
AUX4, AUX5,
and
AUX6
may be present.) For example:
aux-A-AUX1.dat, aux-B-AUX3.dat,
or
aux-C-AUX2.dat.
Each auxiliary input data file contains the consecutive ADC samples from one enabled SmartLink auxiliary input channel in
uint16
format. To convert
to volts, multiply by 0.0000374.
Although the SmartBox
™
software samples the SmartLink auxiliary input channels at one-fourth the rate of the amplifiers, each auxiliary input sample is
repeated four times in this file so that this data may easily be aligned with the timestamp vector in the
time.dat
file.
The following MATLAB code reads an auxiliary input data file and creates a waveform vector with units of volts:
fileinfo = dir(
‘aux-C-AUX1.dat’
);
num_samples = fileinfo.bytes/2;
% uint16 = 2 bytes
fid = fopen(
‘aux-C-AUX1.dat’
,
‘r’
);
v = fread(fid, num_samples,
‘uint16’
);
fclose(fid);
v = v * 0.0000374;
% convert to volts
Supply voltage data files
Each supply voltage data file has a filename that begins with
vdd
followed by the port and MISO channel:
VDD1
(or
VDD2
if a dual-chip amplifier board
is used). For example:
vdd-A-VDD1.dat, vdd-B-VDD1.dat,
or
vdd-D-VDD2.dat.
p.46