Live stream data aquisition using Myo for EMG signals

1 Ansicht (letzte 30 Tage)
FERNANDO SUERO
FERNANDO SUERO am 20 Mai 2019
Hello I am trying to live stream data from my myo to have all 8 channels on it to stream the EMG data it collects,however the code below is just a graph of the 8 channels. How can I make this happen
%% Initializing connection to myo band
hMyo = Inputs.MyoUdp.getInstance();
hMyo.initialize();
%%
channels = 8;
time_s = 3; %This variable time is in seconds
SAMPLE_RATE = 200; %200 = hertz
num_sample = time_s * SAMPLE_RATE;
hMyo.getData(num_sample, 1:channels);
store_hMyo_data = hMyo.getData(num_sample, 1:channels);
%%
%Plot X and Y Values
figure
plot (1:num_sample, store_hMyo_data(:,1));
xlabel ('num_sample')
ylabel ('abtnum')

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by