Contents

Aaron Klapheck

% Read Data from Boe-Bot 20-Nov-08
clear, clc, home
fprintf('The date and time: %s \n \n', datestr(now))

Test H2O conductivity for 30 minutes in small glass of hot salt water.

rows = 60; columns = 3; port =  5;

[text, numbers] = GetBS2NumbersAndText(rows, columns, port);

Error Checking

% Double check data size.
fprintf('The size of data = %4.0f x %1.0f \n \n', size(numbers))

% The following lines are used so that the fprintf commands will work.
text1 = cell2mat(text(1,1)); %Stores name for type of sensor data stored
text2 = cell2mat(text(2,1)); %Stores name for type of sensor data stored
text3 = cell2mat(text(3,1)); %Stores name for type of sensor data stored

% These two lines are used to display all the data and labels each data
% column. The number of data columns depends on number of each type of
% measurement used.
fprintf('%s \t %s \t %s\n', text1, text2, text3)
fprintf('%6.0f \t \t \t %5.0f \t \t \t \t %4.0f \n', numbers')