RTI Python Crashes with FuncAnimation

2 posts / 0 new
Last post
Last seen: 6 months 2 weeks ago
Joined: 05/27/2022
Posts: 1
RTI Python Crashes with FuncAnimation

I am implementing a python script which seeks to plot in real time read data from an RTI python connector.

When I reference a function rather than call a function which uses input.wait(), the python kernel crashes. Is there a reason why this happens?

I added a screenshot of the code. The kernel crashes at the animation call.

Howard's picture
Last seen: 9 hours 40 min ago
Joined: 11/29/2012
Posts: 448

Your code calls take_data() and then passes simulation_data.plot_data to FuncAnimation() which I assumes calls simulation_data.plot_data()?

In any case, since plot_data() calls take_data()...it's likely that the second call to take_data() won't actually get any data.  Will FuncAnimation() seg fault if there's no data?