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.
Attachment | Size |
---|---|
screen_shot_2022-05-27_at_1.15.17_pm.png | 319.66 KB |
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?