% readinTestbedData_example.m

foldername = '/Volumes/Persistence Lab/Fault Prognostication/data_logs/Integration-test-2017-02-23';
type = 'intrinsic'; % 'vibration' | 'external' | 'intrinsic'

% List filenames of specific data type
fnames = getTestbedDatafiles(foldername, type);

% Read in data from textfile
filename = [foldername filesep fnames{end}]; % first file on list
data = readinTestbedData(filename);

figure
plot(data.position.val)
