None Notebook

This notebook contains material from cbe61622; content is available on Github.

< A.3 Getting Started with Pymata4 | Contents |

Open in Colab

Download

A.4 Scheduling Real-Time Events with Simpy

Simpy is a Python package for discrete-event simulation in Python. Simpy includes a provision for real-time simulation which provides an potentially useful tool for coding laboratory experiments with complex scheduling requirements.

Keep in mind that Python is not a designed for real-time use, and Simpy should not be trusted for applications requiring time accuracy tighter than, say, 100ms. Futher, it is not an asynchronous implementation, so your interpreter will be blocked during the course of the experiment. But for quick-and-dirty applications with modest performance requirements, Simpy real-time may be a simple solution.

A.4.1 Blinkers

A.4.2 Asyncio

< A.3 Getting Started with Pymata4 | Contents |

Open in Colab

Download