By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,390 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,390 IT Pros & Developers. It's quick & easy.

Updating a Plot with data From Serial Port on Beaglebone Black

P: 1
Hello all,

I am currently trying to get data from a serial port, convert it into an array and plot it on a polar-scatter plot . I also want to update this plot continuously as data is continuously fed into a beaglebone black. I am currently using the putty terminal to run all of the python code I have written in a script in Geany. Unfortunately when I run the code we have to continuously update the plot in a for loop I receive a segmentation fault error. Could this be because I am not allowed to access certain graphics tools through putty? Or could this be an issue with the code I have written? I don't think the code we have written is wrong I just heard that putty won't let you access certain graphics tools in the matplotlib library that would normally be fine in a development environment. Please let me know what you think.

Mar 14 '14 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 626
Python doesn't seg fault so the problem is somewhere else. I would suggest that you run the code in blocks to isolate the error. So start with the beginning block of code only. The next run adds another block of code, etc. You can also test for a finite amount of loops. It could be that after some amount of loops/time you run out of memory, or get recursion errors, etc. depending on the code.
Mar 14 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.