Updating a Plot with data From Serial Port on Beaglebone Black

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jasmith44
    New Member
    • Mar 2014
    • 1

    #1

    Updating a Plot with data From Serial Port on Beaglebone Black

    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.

    Thanks
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    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.

    Comment

    Working...