Closed OliverBalfour closed 2 years ago
It turns out this is nontrivial for a few reasons
time.sleep
artificially, the broadcasts still bundle up after all the timers have finished because of a quirk of asyncio's ensure_future
scheduling. This would work fine if we used asyncio.sleep
but that requires we make the interface asyncOverall not worth pursuing, so I'll close this
The fake LabJack simulator class currently toggles pins with no delay, so when you start a sequence on a dev server the pin firing times in the UI are not realistic.
We should probably just sleep in the pin toggle and state reading functions an amount sampled from a normal distribution, where the mean and std dev are roughly similar to how long it takes with the real deal (this doesn't have to be anywhere near perfect, this is a total nitpick). This should take like 10 minutes