UWB-Algorithm/UWBAnimationShow/ximu_matlab_library/RawAnalogueInputDataClass.m

23 lines
706 B
Matlab

classdef RawAnalogueInputDataClass < AnalogueInputDataBaseClass
%% Public 'read-only' properties
properties (SetAccess = private)
FileNameAppendage = '_RawAnalogueInput.csv';
end
%% Public methods
methods (Access = public)
function obj = RawAnalogueInputDataClass(varargin)
fileNamePrefix = varargin{1};
for i = 2:2:nargin
if strcmp(varargin{i}, 'SampleRate'), obj.SampleRate = varargin{i+1};
else error('Invalid argument.');
end
end
obj.Import(fileNamePrefix);
% Set protected parent class variables
obj.ADCunits = 'lsb';
end
end
end