Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: RunExperiment.m
- Revision:
- 1:30408caaef92
- Parent:
- 0:b568b8ff43f2
- Child:
- 2:ccafe893ef50
--- a/RunExperiment.m Wed Aug 12 08:34:57 2015 -0400 +++ b/RunExperiment.m Wed Sep 09 23:18:01 2015 -0400 @@ -18,19 +18,18 @@ % OUTPUT PARAMETERS % output: (float vector) matrix of all data recieved from FRDM % board during the experiment - + if nargin == 4 params = struct(); end - if ~isfiend(params,'callback') + if ~isfield(params,'callback') params.callback = 0; end - if ~isfiend(params,'timeout') + if ~isfield(params,'timeout') params.timeout = 2; end - - + done = 0; data = []; % output data @@ -51,6 +50,7 @@ return end + DatagramLength d = fread(obj, es.Data.DatagramLength); d = typecast(uint8(d),'single'); %length(d)