Data not streaming and can't figure out why.

5 views (last 30 days)
I am using the Bitalino class toolbox to stream ECG data from a bitalino board and whenever I try to get the data, I end up with an empty vector. I can't figure out why
here's the Bitalino class
I changed the class so instead of bluetooth, it would work with a ble, becasue the Bitalino can only be recognized as a ble, and commented some things out as they keep giving an error
%set(obj.BTObject, 'Tag','Bitalino');
%set(obj.BTObject, 'InputBufferSize',2^16); % This buffer should hold ~8 seconds of data at 1000Hz
%set(obj.BTObject, 'Terminator','');
%set(obj.BTObject, 'ByteOrder', 'bigEndian');
%set(obj.BTObject, 'ObjectVisibility','off');
%fopen(obj.BTObject);
I keep getting this error:
Error using set
Cannot find 'set' method for ble class
How do I resolve this, I have run out of ideas.
and the code I simply wrote this:
The fopen, write also dont work. I don't know I am not familiar with it. Please help
% Create the object
b = Bitalino;
% Start background acquisition
b.startBackground;
% Pause to acquire data for 20 seconds
pause(20);
% Read the data from the device
data = b.read;
% Stop background acquisition of data
b.stopBackground;
% Clean up the bitalino object
delete(b)

Answers (0)

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!