RTI Python Crashes with FuncAnimation

2 posts / 0 new
Last post
Offline
Last seen: 2 years 7 months 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.

Organization:
Howard's picture
Offline
Last seen: 5 days 21 hours ago
Joined: 11/29/2012
Posts: 618

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?