main.py 447 B

1234567891011121314151617
  1. import sched as s
  2. import matplotlib.pyplot as plt
  3. from custom import *
  4. # Only ONE FileSink can be used since the data will be dumped
  5. # into this global buffer for display with Matplotlib
  6. # It will have to be cleaned and reworked in future to use better
  7. # mechanism of communication with the main code
  8. DISPBUF = np.zeros(16000)
  9. print("Start")
  10. nb,error = s.scheduler(DISPBUF)
  11. print("Nb sched = %d" % nb)
  12. plt.figure()
  13. plt.plot(DISPBUF)
  14. plt.show()