logston / olimex-ekg-emg

A Python package for gathering data from the Olimex EKG/EMG Shield.
Other
17 stars 7 forks source link

"channel_1, *_ = channel_values SytaxError: Invalid sytax" and random serial monitor #11

Open Azi9 opened 7 years ago

Azi9 commented 7 years ago

I have successfully downloaded the olimex-ekg-emg on ubuntu 14.04 and followed all the steps but can not plot anything getting an error:

channel_1, *_ = channel_values SytaxError: Invalid sytax

Note that I am getting random information on serial monitor as seen in figure:

image

I am using your code, 115200 baudrate and everything as you stated.

logston commented 7 years ago

Are you using Python 3.5 or greater?

On Sat, Jun 10, 2017 at 9:47 AM, Azi9 notifications@github.com wrote:

I have successfully downloaded the olimex-ekg-emg on ubuntu 14.04 and followed all the steps but can not plot anything getting an error:

channel1, * = channel_values SytaxError: Invalid sytax

Note that I am getting random information on serial monitor as seen in figure:

[image: image] https://user-images.githubusercontent.com/29334880/27003284-ff192948-4df3-11e7-852e-be979134c1a6.png

I am using your code, 115200 baudrate and everything as you stated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/logston/olimex-ekg-emg/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/AChPZRY9JlfFMLyt6tcJGSuEuMZ23SUeks5sCp5hgaJpZM4N2HgH .

-- Paul Logston plog.paullogston.com github.com/logston

Azi9 commented 7 years ago

No, Python 2.7

logston commented 7 years ago

This package requires 3.5+

On Sat, Jun 10, 2017 at 10:07 AM, Azi9 notifications@github.com wrote:

No, Python 2.7

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/logston/olimex-ekg-emg/issues/11#issuecomment-307567259, or mute the thread https://github.com/notifications/unsubscribe-auth/AChPZafoZlXd5tfwZvybAZEoAgEzTX2Kks5sCqMzgaJpZM4N2HgH .

-- Paul Logston plog.paullogston.com github.com/logston

Azi9 commented 7 years ago

okay I will try and respond, thanks for your fast reply anyway.

Can you tell me if the serial output is right? I don't figure out what is the problem with it ..

Azi9 commented 7 years ago

Update:

I got a plot with "show_exg" command but still the same error when trying with jupyter notebook.

Can I use "show_exg" to plot from data stored in file instead of port?