mirror of https://github.com/EspoTek/Labrador.git
24 lines
1.2 KiB
Matlab
24 lines
1.2 KiB
Matlab
function [outputArray] = librador_get_analog_data_sincelast(channel, timeWindow_max_seconds, sampleRate_hz, delay_seconds, filter_mode)
|
|
|
|
if(mod(channel, 1)~=0)
|
|
error('Value of channel must be a whole number');
|
|
end
|
|
|
|
if(mod(filter_mode, 1)~=0)
|
|
error('Value of filter_mode must be a whole number');
|
|
end
|
|
|
|
if(~isa(sampleRate_hz, 'double'))
|
|
error('sampleRate_hz must be of type double.\n(non-programmers, this means a real, numeric value stored in double precision. Type ''help double'' in the console for more info.)');
|
|
end
|
|
|
|
if(~isa(delay_seconds, 'double'))
|
|
error('delay_seconds must be of type double.\n(non-programmers, this means a real, numeric value stored in double precision. Type ''help double'' in the console for more info.)');
|
|
end
|
|
|
|
if(~isa(timeWindow_max_seconds, 'double'))
|
|
error('timeWindow_max_seconds must be of type double.\n(non-programmers, this means a real, numeric value stored in double precision. Type ''help double'' in the console for more info.)');
|
|
end
|
|
|
|
outputArray = matlab_octave_api_librador_get_analog_data_sincelast(channel, timeWindow_max_seconds, sampleRate_hz, delay_seconds, filter_mode);
|