If no supply voltage channels are enabled in the GUI, this file will not be written.
The following MATLAB code reads a supply voltage data file and creates a waveform matrix with units of volts:
num_channels = length(supply_voltage_channels);
fileinfo = dir('supply.dat');
num_samples = fileinfo.bytes/(num_channels * 2);
fid = fopen('supply.dat', 'r');
v = fread(fid, [num_channels, num_samples], 'uint16');
fclose(fid);
v = v * 0.0000748;
% convert to volts
Board ADC input data file: auxin.dat
This file contains a matrix of ADC samples from the analog inputs on the SmartBox
the board mode is not equal to zero, other scaling values may apply.)
If no board ADC input channels are enabled in the GUI, this file will not be written.
The following MATLAB code reads an board ADC input data file and creates a waveform matrix with units of volts:
num_channels = length(board_adc_channels);
fileinfo = dir('analogin.dat');
num_samples = fileinfo.bytes/(num_channels * 2);
fid = fopen('analogin.dat', 'r');
v = fread(fid, [num_channels, num_samples], 'uint16');
fclose(fid);
v = v * 0.000050354;
% convert to volts
% supply channel info from header file
% uint16 = 2 bytes
% ADC input info from header file
% uint16 = 2 bytes
NeuroNexus Technologies, Inc. ©2014
Telephone: +1.734.913.8858 | Fax: +1.734.786.0069 |
, in uint16 format. To convert to volts, multiply by 0.000050354. (If
™
p.42
| 655 Fairfield Court, Suite 100, Ann Arbor, Michigan USA
support@neuronexus.com
APPENDIX B
Need help?
Do you have a question about the SmartBox and is the answer not in the manual?
Questions and answers